Пример #1
0
 public function __construct($arguments)
 {
     parent::__construct($arguments);
     if (isset($arguments['data'])) {
         $this->data = $arguments['data'];
     }
 }
Пример #2
0
 /**
  * @param array $parameters
  */
 public function __construct($parameters)
 {
     parent::__construct($parameters);
     $this->scannerFactory = $parameters['scannerFactory'];
     $this->l10n = $parameters['l10n'];
     $this->logger = $parameters['logger'];
 }
Пример #3
0
 /**
  * @param array $parameters
  * @param \OC\Encryption\Manager $encryptionManager
  * @param \OC\Encryption\Util $util
  * @param \OC\Log $logger
  * @param \OC\Encryption\File $fileHelper
  * @param string $uid user who perform the read/write operation (null for public access)
  */
 public function __construct($parameters, \OC\Encryption\Manager $encryptionManager = null, \OC\Encryption\Util $util = null, \OC\Log $logger = null, \OC\Encryption\File $fileHelper = null, $uid = null)
 {
     $this->mountPoint = $parameters['mountPoint'];
     $this->mount = $parameters['mount'];
     $this->encryptionManager = $encryptionManager;
     $this->util = $util;
     $this->logger = $logger;
     $this->uid = $uid;
     $this->fileHelper = $fileHelper;
     $this->unencryptedSize = array();
     parent::__construct($parameters);
 }
Пример #4
0
 /**
  * @param array $parameters
  * @param IManager $encryptionManager
  * @param Util $util
  * @param ILogger $logger
  * @param IFile $fileHelper
  * @param string $uid
  * @param IStorage $keyStorage
  * @param Update $update
  * @param Manager $mountManager
  */
 public function __construct($parameters, IManager $encryptionManager = null, Util $util = null, ILogger $logger = null, IFile $fileHelper = null, $uid = null, IStorage $keyStorage = null, Update $update = null, Manager $mountManager = null)
 {
     $this->mountPoint = $parameters['mountPoint'];
     $this->mount = $parameters['mount'];
     $this->encryptionManager = $encryptionManager;
     $this->util = $util;
     $this->logger = $logger;
     $this->uid = $uid;
     $this->fileHelper = $fileHelper;
     $this->keyStorage = $keyStorage;
     $this->unencryptedSize = array();
     $this->update = $update;
     $this->mountManager = $mountManager;
     parent::__construct($parameters);
 }
Пример #5
0
 /**
  * get a cache instance for the storage
  *
  * @param string $path
  * @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache
  * @return \OC\Files\Cache\Cache
  */
 public function getCache($path = '', $storage = null)
 {
     if (!$storage) {
         $storage = $this;
     }
     $sourceCache = parent::getCache($path, $storage);
     return new CachePermissionsMask($sourceCache, $this->mask);
 }
Пример #6
0
 function __construct($parameters, IUserManager $userManager = null)
 {
     $this->mountPoint = $parameters['mountPoint'];
     $this->userManager = $userManager;
     parent::__construct($parameters);
 }
Пример #7
0
 public function getId()
 {
     return 'link:' . parent::getId() . ':' . $this->rootPath;
 }
Пример #8
0
 function __construct($parameters)
 {
     $this->mountPoint = $parameters['mountPoint'];
     parent::__construct($parameters);
 }