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