BaikalAdmin\Controller\Settings\System::execute PHP Метод

execute() публичный Метод

public execute ( )
    function execute()
    {
        $this->oModel = new \Baikal\Model\Config\System(PROJECT_PATH_SPECIFIC . "config.system.php");
        # Assert that config file is writable
        if (!$this->oModel->writable()) {
            throw new \Exception("System config file is not writable;" . __FILE__ . " > " . __LINE__);
        }
        $this->oForm = $this->oModel->formForThisModelInstance(["close" => false, "hook.morphology" => [$this, "morphologyHook"], "hook.validation" => [$this, "validationHook"]]);
        if ($this->oForm->submitted()) {
            $this->oForm->execute();
        }
    }