/** * @return string the associated array data file location (must be writable, to make use of the saving functionalities) */ public function fileName() { $name = !empty($this->_filename) ? $this->_filename : 'mbmenus'; return MenuBuilderModule::getInstance()->getDataFilePath() . '.' . $name; }
/** * Remove the itemid from all menus->nestedconfig * * @return bool */ protected function afterDelete() { parent::afterDelete(); MenuBuilderModule::getInstance()->getDataAdapter()->removeItemFromMenus($this->itemid); return true; }