Author: Michael Slusarz (slusarz@horde.org)
示例#1
0
 /**
  * @param array $params  Additional configuration parameters:
  *   - cache: (Horde_Cache) [REQUIRED] Cache object.
  *   - prefix: (string) Cache prefix.
  */
 public function __construct($user, array $params = array())
 {
     if (!isset($params['cache'])) {
         throw new InvalidArgumentException('Missing cache parameter.');
     }
     parent::__construct($user, array_merge(array('prefix' => ''), $params));
     $this->_params['cprefix'] = implode('|', array($this->_params['user'], $this->_params['prefix']));
 }
示例#2
0
 /**
  */
 public function __construct($user, array $params = array())
 {
     parent::__construct($user, $params);
     $this->_key = 'horde_prefs_cache_' . $this->_params['user'];
 }