示例#1
0
 public function __construct()
 {
     parent::__construct($this);
     if (!SessionService::getInstance()->get('modelName')) {
         URLService::redirect(\GLOBALVAR\ROOT . "?core=models");
     }
     //$this->formParametrs($this->type);
     if (!in_array($this->type, $this->corectType)) {
         $this->type = 'mesh';
     }
     $this->setConfPatch();
     $this->data = ParametersData::readConfData($this->dir, $this->file);
     if (!empty($this->data)) {
         $this->setAmount();
         $this->fce = $this->getConfigValue();
     } else {
         $this->msg = "Parameters are not confirmed!";
     }
     $this->conf_mesh = SessionService::getInstance()->get('config_mesh');
     $this->conf_water = SessionService::getInstance()->get('config_water');
     $this->conf_global = SessionService::getInstance()->get('config_global');
 }