1 | <?php |
||
9 | class DataListExtension extends \Extension { |
||
10 | |||
11 | /** |
||
12 | * Returns the first element in a data list, that has the given url segment. |
||
13 | * |
||
14 | * Works in the same way as DataList::byID. |
||
15 | * |
||
16 | * @param string $url the url segment |
||
17 | * @return \DataObject the object, that has the given url segment |
||
18 | */ |
||
19 | public function byURL($url) { |
||
23 | } |
||
24 |