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

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

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