Horde_Core_HashTable_Vfs::_set PHP Méthode

_set() protected méthode

protected _set ( $key, $val, array $opts )
$opts array 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;
    }