1 | <?php |
||
14 | class StaticPageContentMenuItem extends MenuItem |
||
15 | { |
||
16 | protected $staticPageName; |
||
17 | |||
18 | /** |
||
19 | * Construct a new menu item. It requires its routeName, options and |
||
20 | * the menu the item is assigned to. |
||
21 | * |
||
22 | * SimpleContentMenuItem requires the following routeName notation: |
||
23 | * routeName/pageName |
||
24 | * |
||
25 | * @see MenuItem::__construct() |
||
26 | * |
||
27 | * @throws OptionRequiredException |
||
28 | * |
||
29 | * @param string $routeName |
||
30 | * @param array $options |
||
31 | * @param Menu $menu |
||
32 | */ |
||
33 | public function __construct($routeName, array $options, Menu $menu) |
||
49 | |||
50 | /** |
||
51 | * Add variable values defined in $addRequestVariables to the given |
||
52 | * urlParameters. This can be used to pass through generally available |
||
53 | * request parameters. |
||
54 | * |
||
55 | * @param array $urlParameters |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | protected function addRequestVariablesToUrlParameters(array $urlParameters) |
||
66 | |||
67 | /** |
||
68 | * Add a child to the menu using item data. |
||
69 | * |
||
70 | * Possible value for position are: |
||
71 | * * 'last': insert at last position (append), this is the default |
||
72 | * * 'first': insert at first position |
||
73 | * * positive number (e.g. 2): insert at this position, count starts at 0 |
||
74 | * * negative number (e.g. -1): insert at this position from the END of the children backwards |
||
75 | * |
||
76 | * @param string $routeName |
||
77 | * @param array $options |
||
78 | * @param string $position |
||
79 | * |
||
80 | * @return MenuItem The generated item |
||
81 | */ |
||
82 | public function addChildByData($routeName, $options, $position = 'last') |
||
90 | } |
||
91 |