| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | protected function getAllowedAttributes() |
||
| 18 | { |
||
| 19 | $menuitemAllowedAttributes = array( |
||
| 20 | '/^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 | return array_merge( |
||
| 30 | $menuitemAllowedAttributes, |
||
| 31 | parent::getAllowedAttributes() |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |