Since: 1.2.0
Author: Michael Slusarz (slusarz@horde.org)
Inheritance: extends Horde_HashTable_Base
Example #1
0
File: Temp.php Project: horde/horde
 /**
  */
 public function exists()
 {
     return $this->_ht->exists($this->_id);
 }
Example #2
0
 /**
  * @param array $opts  Additional option honored in this driver:
  *   - filename: (boolean) If true, $val is a filename containing the
  *               data to be saved rather than the data itself.
  */
 protected function _set($key, $val, $opts)
 {
     if (empty($opts['filename'])) {
         return parent::_set($key, $val, $opts);
     }
     try {
         $this->_vfs->write($this->_params['vfspath'], $key, $val, true);
     } catch (Horde_Vfs_Exception $e) {
         return false;
     }
     return true;
 }