/** * Common tasks for all actions. */ public function before_filter(&$action, &$args) { parent::before_filter($action, $args); // user must have root permission $GLOBALS['perm']->check('root'); // set navigation Navigation::activateItem('/admin/config/datafields'); PageLayout::setTitle(_('Verwaltung von generischen Datenfeldern')); // Set variables used by (almost) all actions $this->allclasses = DataField::getDataClass(); $this->class_filter = Request::option('class_filter', null); $this->createSidebar($action); }