1 | <?php |
||
19 | class Dashboard extends Admin\View\ViewAbstract |
||
20 | { |
||
21 | /** |
||
22 | * options of the panel |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | |||
27 | protected $_optionArray = |
||
28 | [ |
||
29 | 'className' => |
||
30 | [ |
||
31 | 'list' => 'rs-admin-list-dashboard', |
||
32 | 'item' => 'rs-admin-item-dashboard' |
||
33 | ] |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * init the class |
||
38 | * |
||
39 | * @since 4.1.0 |
||
40 | * |
||
41 | * @param array $optionArray options of the dashboard |
||
42 | * |
||
43 | * @return self |
||
44 | */ |
||
45 | |||
46 | public function init(array $optionArray = []) : self |
||
51 | |||
52 | /** |
||
53 | * render the view |
||
54 | * |
||
55 | * @since 4.1.0 |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | |||
60 | public function render() : string |
||
100 | } |
||
101 |
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: