public function setup() { $this->auth_realm = CMS::$admin_realm; if (isset(CMS::$cfg->vars->use_tinymce)) { $s = trim(CMS::$cfg->vars->use_tinymce); if ($s == '' || $s == '0') { $this->use_tinymce = false; } } return parent::setup()->use_views_from(CMS::views_path('admin/vars')); }
public function setup() { $this->orm_module = $this->getp('orm_module'); $this->admin_module = $this->getp('admin_module'); $this->schema_module = $this->getp('schema_module'); $this->orm_fields = $this->getp('orm_fields'); $this->admin_fields = $this->getp('admin_fields'); $this->component = $this->getp('component'); $this->component_module = "Component.{$this->component}"; $this->admin_tabs = (bool) $this->getp('admin_tabs', 0); $this->item_name = "{$this->orm_module}.Item"; $this->urls = WS::env()->urls->cmscomponentfactory; $this->auth_realm = CMS::$admin_realm; return parent::setup()->use_views_from(CMS::views_path('admin/factory'))->render_defaults('tables', 'urls', 'table', 'fields', 'key_field'); }
/** * @return CMS_Controller_PageView */ public function setup() { return parent::setup()->render_defaults('perpage'); }
public function setup() { $this->setup_config(); return parent::setup(); }