public function __construct($sPath = '') { $this->setSettings(\Sylma::get('schema/token')); if ($sPath) { $this->setPath($sPath); } }
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); }
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); } }
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; }
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(); }
protected function loadSettings() { //$this->setSettings(include('arguments.xml.php')); $this->setSettings(\Sylma::get('path')); }
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; }
public function __construct() { $this->setDirectory(__FILE__); $this->setSettings(\Sylma::get('modules/captcha')); $this->generate(); }
public function __construct($args, $post, $contexts) { $this->setDirectory(__FILE__); $this->setSettings(\Sylma::get('modules/rebuild')); $this->aContexts = array('contexts' => $contexts, 'post' => $post, 'arguments' => $args); }