__construct() public method

Constructor.
public __construct ( string $user, string $id = null )
$user string Attachment owner.
$id string Attachment identifier.
Exemplo n.º 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;
 }
Exemplo n.º 2
0
 /**
  */
 public function __construct($user, $id = null)
 {
     global $injector;
     parent::__construct($user, $id);
     /* Default to linked storage. */
     $factory = $injector->getInstance('IMP_Factory_ComposeAtc');
     $this->_storage = new $factory->classLinked($this->_user, $this->_id);
 }
Exemplo n.º 3
0
Arquivo: Temp.php Projeto: horde/horde
 /**
  */
 public function __construct($user, $id = null)
 {
     parent::__construct($user, $id);
     $this->_ht = new Horde_Core_HashTable_PersistentSession();
 }
Exemplo n.º 4
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()));
 }