/** */ public function __construct($user, $id = null) { global $injector; parent::__construct($user, $id); $this->_vfs = $injector->getInstance('Horde_Core_Factory_Vfs')->create(); $this->_vfspath = self::VFS_LINK_ATTACH_PATH . '/' . $this->_user; }
/** * Get/create the delete token. * * @param boolean $create Create token if it doesn't exist? * * @return string The delete token, or null if it doesn't exist. */ protected function _getDeleteToken($create = false) { $md = $this->_atc->getMetadata(); if (is_null($md->dtoken)) { if (!$create) { return null; } $md->dtoken = strval(new Horde_Support_Uuid()); try { $this->_atc->saveMetadata($md); } catch (Exception $e) { } } return $md->dtoken; }
/** */ public function __construct($user, $id = null) { parent::__construct($user, $id); $this->_ht = new Horde_Core_HashTable_PersistentSession(); }
/** */ public function gc() { $this->_storage->gc(); }
/** */ public function __construct($user, $id = null) { global $conf, $injector; parent::__construct($user, $id); $this->_vfs = $conf['compose']['use_vfs'] ? $injector->getInstance('Horde_Core_Factory_Vfs')->create() : new Horde_Vfs_File(array('vfsroot' => Horde::getTempDir())); }