IMP_Sentmail::__construct PHP Method

__construct() public method

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

Usage Example

示例#1
0
文件: Mongo.php 项目: raz0rsdge/horde
 /**
  * @param array $params  Parameters:
  *   - collection: (string) The name of the sentmail collection.
  *   - mongo_db: (Horde_Mongo_Client) [REQUIRED] The DB instance.
  */
 public function __construct(array $params = array())
 {
     if (!isset($params['mongo_db'])) {
         throw new InvalidArgumentException('Missing mongo_db parameter.');
     }
     parent::__construct(array_merge(array('collection' => 'imp_sentmail'), $params));
     $this->_db = $this->_params['mongo_db']->selectCollection(null, $this->_params['collection']);
 }
All Usage Examples Of IMP_Sentmail::__construct