public function before() { parent::before(); if (!$this->execute) { return; } $this->isConfigDirWritable = is_writable($this->vulnConfigDir); }
public function before() { parent::before(); if (!$this->modelName) { $this->modelName = $this->get_real_class($this); } if (!$this->alias) { $this->alias = strtolower($this->modelName); } if (!$this->modelNamePlural) { $this->modelNamePlural = $this->modelName . 's'; } if (!$this->modelNameSingle) { $this->modelNameSingle = $this->modelName; } $this->view->modelNameSingle = $this->modelNameSingle; $this->view->pageTitle = $this->modelNamePlural; $this->view->pageHeader = $this->modelNamePlural; $this->view->alias = $this->alias; $this->prepareModelFields(); }