Horde_Cache_Storage_Base::__construct PHP Méthode

__construct() public méthode

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

Usage Example

Exemple #1
0
 /**
  * Constructor.
  *
  * @param array $params  Parameters:
  * <pre>
  *   - stack: (array) [REQUIRED] An array of storage instances to loop
  *            through, in order of priority. The last entry is considered
  *            the 'master' driver, for purposes of writes.
  * </pre>
  */
 public function __construct(array $params = array())
 {
     if (!isset($params['stack'])) {
         throw new InvalidArgumentException('Missing stack parameter.');
     }
     parent::__construct($params);
 }
All Usage Examples Of Horde_Cache_Storage_Base::__construct