Author: Michael Slusarz (slusarz@horde.org)
Inheritance: implements ArrayAccess, implements Serializable
Beispiel #1
0
 /**
  * @param array $params  Additional configuration parameters:
  * <pre>
  *   - vfs: (Horde_Vfs_Base) [REQUIRED] VFS object.
  *   - vfspath: (string) VFS path to use.
  * </pre>
  */
 public function __construct(array $params = array())
 {
     if (!isset($params['vfs'])) {
         throw new InvalidArgumentException('Missing vfs parameter.');
     }
     parent::__construct(array_merge(array('vfspath' => 'hashtable_vfs'), $params));
 }
Beispiel #2
0
 /**
  * @param array $params  Additional configuration parameters:
  * <pre>
  *   - memcache: (Horde_Memcache) [REQUIRED] Memcache object.
  * </pre>
  */
 public function __construct(array $params = array())
 {
     if (!isset($params['memcache'])) {
         throw new InvalidArgumentException('Missing memcache parameter.');
     }
     parent::__construct($params);
 }
Beispiel #3
0
 /**
  * @param array $params  Additional configuration parameters:
  * <pre>
  *   - predis: (Predis\Client) [REQUIRED] Predis client object.
  * </pre>
  */
 public function __construct(array $params = array())
 {
     if (!isset($params['predis'])) {
         throw InvalidArgumentException('Missing predis parameter.');
     }
     parent::__construct($params);
     register_shutdown_function(array($this, 'shutdown'));
 }