__construct() public method

public __construct ( )
Exemplo n.º 1
0
 /**
  * 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));
 }
Exemplo n.º 2
0
 public function __construct($arguments = null)
 {
     parent::__construct(array('datadir' => \OC_Helper::tmpFolder()));
 }
Exemplo n.º 3
0
 public function __construct($arguments = null)
 {
     parent::__construct(array('datadir' => \OC::$server->getTempManager()->getTemporaryFolder()));
 }
Exemplo n.º 4
0
 /**
  * Constructor
  *
  * @param array $options
  *
  * @since   1.0
  */
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     return;
 }