__construct() 공개 메소드

public __construct ( )
예제 #1
0
파일: home.php 프로젝트: Kevin-ZK/vaneDisk
 /**
  * Construct a Home storage instance
  * @param array $arguments array with "user" containing the
  * storage owner and "legacy" containing "true" if the storage is
  * a legacy storage with "local::" URL instead of the new "home::" one.
  */
 public function __construct($arguments)
 {
     $this->user = $arguments['user'];
     $datadir = $this->user->getHome();
     if (isset($arguments['legacy']) && $arguments['legacy']) {
         // legacy home id (<= 5.0.12)
         $this->id = 'local::' . $datadir . '/';
     } else {
         $this->id = 'home::' . $this->user->getUID();
     }
     parent::__construct(array('datadir' => $datadir));
 }
예제 #2
0
파일: temporary.php 프로젝트: loulancn/core
 public function __construct($arguments = null)
 {
     parent::__construct(array('datadir' => \OC_Helper::tmpFolder()));
 }
예제 #3
0
파일: temporary.php 프로젝트: TechArea/core
 public function __construct($arguments = null)
 {
     parent::__construct(array('datadir' => \OC::$server->getTempManager()->getTemporaryFolder()));
 }
예제 #4
0
파일: Media.php 프로젝트: molajo/filesystem
 /**
  * Constructor
  *
  * @param array $options
  *
  * @since   1.0
  */
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     return;
 }