Author: Michael Slusarz (slusarz@horde.org)
Example #1
0
 /**
  */
 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;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
File: Temp.php Project: horde/horde
 /**
  */
 public function __construct($user, $id = null)
 {
     parent::__construct($user, $id);
     $this->_ht = new Horde_Core_HashTable_PersistentSession();
 }
Example #4
0
 /**
  */
 public function gc()
 {
     $this->_storage->gc();
 }
Example #5
0
 /**
  */
 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()));
 }