@@ 79-87 (lines=9) @@ | ||
76 | * @param \OC\Files\Storage\Storage (optional) the storage to pass to the watcher |
|
77 | * @return \OC\Files\Cache\Propagator |
|
78 | */ |
|
79 | public function getPropagator($storage = null) { |
|
80 | if (!$storage) { |
|
81 | $storage = $this; |
|
82 | } |
|
83 | if (!isset($this->propagator)) { |
|
84 | $this->propagator = new HomePropagator($storage, \OC::$server->getDatabaseConnection()); |
|
85 | } |
|
86 | return $this->propagator; |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Returns the owner of this home storage |
@@ 343-353 (lines=11) @@ | ||
340 | return new \OCA\Files_Sharing\Scanner($storage); |
|
341 | } |
|
342 | ||
343 | public function getPropagator($storage = null) { |
|
344 | if (isset($this->propagator)) { |
|
345 | return $this->propagator; |
|
346 | } |
|
347 | ||
348 | if (!$storage) { |
|
349 | $storage = $this; |
|
350 | } |
|
351 | $this->propagator = new \OCA\Files_Sharing\SharedPropagator($storage, \OC::$server->getDatabaseConnection()); |
|
352 | return $this->propagator; |
|
353 | } |
|
354 | ||
355 | public function getOwner($path) { |
|
356 | return $this->superShare->getShareOwner(); |