OpendataCH/Transport — pull request #57 by benib (2012-04-09 20:26:25+00:00)
Title: add ResultLimit feature, implements ideas from #29

this implements some things discussed in issue #29.
default is to return all fields. if fields parameter is set, only the defined fields are returned as long as there is a check in the code, where the field is added to the result. this can be done like:
```
if (ResultLimit::includeField('from')) {
// add from stuff to result
}
```
these checks are implemented in Transport\Entity\Schedule\Connection for the fields "from", "to" and "journey" to show how this works.

Tree like fields are also possible, eg:
```
http://sbb.local/v1/connections?from=008501120&to=008501008&fields[]=to&fields[]=from/geo
```
in that case, ResultLimit::includeField('from') returnes true, as there is a more specific field set.

any comments are appreciated.