Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
17 | 1 | protected function getAllowedAttributes() |
|
18 | { |
||
19 | $menuitemAllowedAttributes = array( |
||
20 | 1 | '/^type$/i' => Attribute::CI_ENUM . '("","command","checkbox","radio"|"command")', |
|
21 | '/^label$/i' => Attribute::CS_STRING, |
||
22 | '/^icon$/i' => Attribute::CS_STRING, |
||
23 | '/^disabled$/i' => Attribute::BOOL, |
||
24 | '/^checked$/i' => Attribute::BOOL, |
||
25 | '/^radiogroup$/i' => Attribute::CS_STRING, |
||
26 | '/^default$/i' => Attribute::CS_STRING |
||
27 | ); |
||
28 | |||
29 | 1 | return array_merge( |
|
30 | 1 | $menuitemAllowedAttributes, |
|
31 | 1 | parent::getAllowedAttributes() |
|
32 | ); |
||
33 | } |
||
34 | } |
||
35 |