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