See the enclosed file LICENSE for license information (BSD). If you did not did not receive this file, see http://www.horde.org/licenses/bsd.
Author: Marko Djukic (marko@oblo.com)
Author: Daniel Collins (horde_dev@argentproductions.com)
コード例 #1
0
ファイル: Application.php プロジェクト: horde/horde
 protected function _init()
 {
     $this->driver = Vilma_Driver::factory();
     // Get the currently active domain, possibly storing a change into the
     // session.
     // Domain is passed in by ID, which may or may not be the
     // the same as the actual DNS domain name.
     $domain_id = Horde_Util::getFormData('domain_id');
     if (strlen($domain_id)) {
         $domain = $this->driver->getDomain($domain_id);
         if (!empty($domain['domain_name'])) {
             $this->curdomain = $domain;
             Vilma::setCurDomain($domain);
         }
     } elseif ($domain = $GLOBALS['session']->get('vilma', 'domain')) {
         $this->curdomain = $domain;
     }
 }
コード例 #2
0
ファイル: Sql.php プロジェクト: horde/horde
 /**
  * Constructor.
  *
  * @param array $params  Any parameters needed for this driver.
  */
 public function __construct($params)
 {
     parent::__construct($params);
     $this->_initialize();
 }