コード例 #1
0
ファイル: Token.php プロジェクト: TheProjecter/sylma
 public function __construct($sPath = '')
 {
     $this->setSettings(\Sylma::get('schema/token'));
     if ($sPath) {
         $this->setPath($sPath);
     }
 }
コード例 #2
0
ファイル: Manager.php プロジェクト: TheProjecter/sylma
 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);
 }
コード例 #3
0
ファイル: Windower.php プロジェクト: TheProjecter/sylma
 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);
     }
 }
コード例 #4
0
ファイル: Domed.php プロジェクト: TheProjecter/sylma
 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;
 }
コード例 #5
0
ファイル: Handler.php プロジェクト: TheProjecter/sylma
 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();
 }
コード例 #6
0
ファイル: Basic.php プロジェクト: TheProjecter/sylma
 protected function loadSettings()
 {
     //$this->setSettings(include('arguments.xml.php'));
     $this->setSettings(\Sylma::get('path'));
 }
コード例 #7
0
ファイル: Basic.php プロジェクト: TheProjecter/sylma
 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;
 }
コード例 #8
0
ファイル: Generator.php プロジェクト: TheProjecter/sylma
 public function __construct()
 {
     $this->setDirectory(__FILE__);
     $this->setSettings(\Sylma::get('modules/captcha'));
     $this->generate();
 }
コード例 #9
0
ファイル: Main.php プロジェクト: TheProjecter/sylma
 public function __construct($args, $post, $contexts)
 {
     $this->setDirectory(__FILE__);
     $this->setSettings(\Sylma::get('modules/rebuild'));
     $this->aContexts = array('contexts' => $contexts, 'post' => $post, 'arguments' => $args);
 }