Ejemplo n.º 1
0
 public function __construct($sPath = '')
 {
     $this->setSettings(\Sylma::get('schema/token'));
     if ($sPath) {
         $this->setPath($sPath);
     }
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     $this->setDirectory(__FILE__);
     $this->setArguments(include 'settings.xml.php');
     $this->getArguments()->merge(\Sylma::get('users'));
     $user = $this->createUser();
     $user->load();
     $this->setUser($user);
 }
Ejemplo n.º 3
0
 protected function setupDevice()
 {
     $args = \Sylma::get(self::DEVICE_SETTINGS);
     if ($args->read('enable', false)) {
         $device = $this->create('device');
         \Sylma::setManager('device', $device);
         $device->setSettings($args);
     }
 }
Ejemplo n.º 4
0
 public function parseRoot(dom\element $el)
 {
     $this->loadRootDocument();
     $aNS = array();
     foreach (\Sylma::get('render/namespaces') as $ns) {
         $aNS[$ns->read('uri')] = $ns->read('prefix', false);
     }
     $this->aNamespaces = $aNS;
 }
Ejemplo n.º 5
0
 public function __construct()
 {
     $this->setDirectory(__FILE__);
     $this->setSettings('settings.xml');
     $device = $this->create('device');
     $device->setSettings(\Sylma::get(self::DEVICE_SETTINGS));
     \Sylma::setManager('device', $device);
     parent::__construct();
 }
Ejemplo n.º 6
0
 protected function loadSettings()
 {
     //$this->setSettings(include('arguments.xml.php'));
     $this->setSettings(\Sylma::get('path'));
 }
Ejemplo n.º 7
0
 protected function send(array $aResult)
 {
     $bResult = false;
     try {
         if (\Sylma::read('exception/database/enable') && \Sylma::get('database/default', false)) {
             $bResult = !$this->insert($aResult);
         }
     } catch (core\exception $e) {
     }
     if (!$bResult) {
         $bResult = $this->mail($aResult);
     }
     return $bResult;
 }
Ejemplo n.º 8
0
 public function __construct()
 {
     $this->setDirectory(__FILE__);
     $this->setSettings(\Sylma::get('modules/captcha'));
     $this->generate();
 }
Ejemplo n.º 9
0
 public function __construct($args, $post, $contexts)
 {
     $this->setDirectory(__FILE__);
     $this->setSettings(\Sylma::get('modules/rebuild'));
     $this->aContexts = array('contexts' => $contexts, 'post' => $post, 'arguments' => $args);
 }