| @@ 87-95 (lines=9) @@ | ||
| 84 | * @param \OC\Files\Storage\Storage (optional) the storage to pass to the watcher |
|
| 85 | * @return \OC\Files\Cache\Propagator |
|
| 86 | */ |
|
| 87 | public function getPropagator($storage = null) { |
|
| 88 | if (!$storage) { |
|
| 89 | $storage = $this; |
|
| 90 | } |
|
| 91 | if (!isset($this->propagator)) { |
|
| 92 | $this->propagator = new HomePropagator($storage, \OC::$server->getDatabaseConnection()); |
|
| 93 | } |
|
| 94 | return $this->propagator; |
|
| 95 | } |
|
| 96 | ||
| 97 | ||
| 98 | /** |
|
| @@ 337-347 (lines=11) @@ | ||
| 334 | return new \OCA\Files_Sharing\Scanner($storage); |
|
| 335 | } |
|
| 336 | ||
| 337 | public function getPropagator($storage = null) { |
|
| 338 | if (isset($this->propagator)) { |
|
| 339 | return $this->propagator; |
|
| 340 | } |
|
| 341 | ||
| 342 | if (!$storage) { |
|
| 343 | $storage = $this; |
|
| 344 | } |
|
| 345 | $this->propagator = new \OCA\Files_Sharing\SharedPropagator($storage, \OC::$server->getDatabaseConnection()); |
|
| 346 | return $this->propagator; |
|
| 347 | } |
|
| 348 | ||
| 349 | public function getOwner($path) { |
|
| 350 | return $this->superShare->getShareOwner(); |
|