1 | <?php |
||
13 | class WidgetContentControllerExtension extends Extension |
||
14 | { |
||
15 | /** |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | private static $allowed_actions = array( |
||
20 | 'handleWidget' |
||
21 | ); |
||
22 | |||
23 | /** |
||
24 | * Handles widgets attached to a page through one or more {@link WidgetArea} |
||
25 | * elements. |
||
26 | * |
||
27 | * Iterated through each $has_one relation with a {@link WidgetArea} and |
||
28 | * looks for connected widgets by their database identifier. |
||
29 | * |
||
30 | * Assumes URLs in the following format: <URLSegment>/widget/<Widget-ID>. |
||
31 | * |
||
32 | * @return RequestHandler |
||
33 | */ |
||
34 | public function handleWidget() |
||
79 | } |
||
80 |
This check marks private properties in classes that are never used. Those properties can be removed.