1 | <?php |
||
8 | class Page extends \KodiComponents\Navigation\Page implements PageInterface |
||
9 | { |
||
10 | /** |
||
11 | * Menu item related model class. |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $model; |
||
15 | |||
16 | /** |
||
17 | * Menu item by url id. |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $aliasId; |
||
21 | |||
22 | /** |
||
23 | * @param string|null $modelClass |
||
24 | */ |
||
25 | 1 | public function __construct($modelClass = null) |
|
35 | |||
36 | /** |
||
37 | * Set Alias Id. |
||
38 | */ |
||
39 | public function setAliasId() |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getAliasId() |
||
54 | |||
55 | /** |
||
56 | * @return ModelConfigurationInterface |
||
57 | */ |
||
58 | 1 | public function getModelConfiguration() |
|
66 | |||
67 | /** |
||
68 | * @return bool |
||
69 | */ |
||
70 | 1 | public function hasModel() |
|
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getId() |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getTitle() |
||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getUrl() |
||
110 | |||
111 | /** |
||
112 | * @return \Closure |
||
113 | */ |
||
114 | public function getAccessLogic() |
||
126 | |||
127 | /** |
||
128 | * @param string|null $view |
||
129 | * |
||
130 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
131 | */ |
||
132 | public function render($view = null) |
||
142 | |||
143 | /** |
||
144 | * @param string $model |
||
145 | * |
||
146 | * @return $this |
||
147 | */ |
||
148 | 1 | protected function setModel($model) |
|
154 | } |
||
155 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: