function __construct($db_config) { // Call constructor of the super class to initialize db connection: parent::__construct($db_config); // Check config $this->initialized = $this->get_account(); }
function __construct($db_config, $amavis_host, $amavis_port) { // Call constructor of the super class parent::__construct($db_config); // Check for account catchall and adjust user_email accordingly if (isset($this->rc->amacube->catchall) && $this->rc->amacube->catchall == true) { $this->user_email = substr(strrchr($this->user_email, "@"), 0); } // Apply amavis database settings $this->amavis_host = $amavis_host; $this->amavis_port = $amavis_port; }
function __construct($db_config) { // Call constructor of the super class parent::__construct($db_config); // Check for account catchall and adjust user_email accordingly if (isset($this->rc->amacube->catchall) && $this->rc->amacube->catchall == true) { $this->user_email = substr(strrchr($this->user_email, "@"), 0); } // Read config from DB $this->initialized = $this->read_from_db(); // Verify policy config from database if ($this->initialized) { $this->verify_policy_array(); } }