Ingo_Transport_Base::__construct PHP Method

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array Configuration parameters.
    public function __construct(array $params = array())
    {
        $this->_params = array_merge($this->_params, $params);
    }

Usage Example

Beispiel #1
0
 /**
  * Constructor.
  *
  * @throws Ingo_Exception
  */
 public function __construct(array $params = array())
 {
     if (!Horde_Util::extensionExists('ldap')) {
         throw new Ingo_Exception(_("LDAP support is required but the LDAP module is not available or not loaded."));
     }
     $default_params = array('hostspec' => 'localhost', 'port' => 389, 'script_attribute' => 'mailSieveRuleSource');
     parent::__construct(array_merge($default_params, $params));
 }
All Usage Examples Of Ingo_Transport_Base::__construct