Пример #1
0
 /**
  *
  * WebMethod queries the catalogo
  * @param string $data
  */
 function catalogo($value)
 {
     $objectController = new ControllerService();
     $result = $objectController->parseXML(utf8_encode($value));
     $result = str_replace('<?xml version="1.0"?>', '', $result);
     return $result;
 }
Пример #2
0
 public function __construct()
 {
     if (!SessionService::getInstance()->get('modelName')) {
         URLService::redirect(\GLOBALVAR\ROOT);
     }
     parent::__construct($this);
 }
Пример #3
0
 public function __construct()
 {
     if (!SessionService::getInstance()->get('modelName')) {
         URLService::redirect(\GLOBALVAR\ROOT . "?core=models");
     }
     $this->dir = \GLOBALVAR\USERDEPO_PATH . "/" . SessionService::getInstance()->get('userName') . "/" . SessionService::getInstance()->get('modelName');
     parent::__construct($this);
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct($this);
     // neopravneny pristup
     if (!$this->user->isLogged()) {
         // presmerovani na prihlaseni
         URLService::redirect(\GLOBALVAR\ROOT);
     }
 }
Пример #5
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');
 }
Пример #6
0
 public function __construct()
 {
     $this->doctrine = new DoctrineInit();
     $this->idLocation = SessionService::getInstance()->get('idLocation');
     parent::__construct($this);
 }
Пример #7
0
 public function __construct()
 {
     $this->doctrine = new DoctrineInit();
     parent::__construct($this);
 }
Пример #8
0
 public function __construct()
 {
     parent::__construct($this);
 }