__construct() 공개 메소드

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()));
 }