public function handle_setParametrs($post) { $this->setConfPatch(); if (!ParametersData::writeconfig($post, $this->input[$this->type], $this->dir . $this->file, $this->type)) { SessionService::getInstance()->clear('config_' . $this->type); $this->msg = "Error can't save config file."; } else { SessionService::getInstance()->set('config_' . $this->type, 'true'); $this->msg = "Parametrization succeed."; } }
/** * Main Constructor * * @access public * @return void */ public function __construct() { parent::__construct(); $this->setDefaults(); }