function attach(uiElement &$element) { // only uiMgmtBigMenuItems can be attached to uiMgmtBigMenus if ($element->getClassName() == "uiMgmtBigMenuItem") { parent::attach(&$element); } }