__construct() public method

Constructor.
public __construct ( string $user, string $id = null )
$user string Attachment owner.
$id string Attachment identifier.
示例#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;
 }
示例#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);
 }
示例#3
0
文件: Temp.php 项目: horde/horde
 /**
  */
 public function __construct($user, $id = null)
 {
     parent::__construct($user, $id);
     $this->_ht = new Horde_Core_HashTable_PersistentSession();
 }
示例#4
0
文件: Vfs.php 项目: DSNS-LAB/Dmail
 /**
  */
 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()));
 }