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; } }
/** * Constructor. * * @param array $params Any parameters needed for this driver. */ public function __construct($params) { parent::__construct($params); $this->_initialize(); }