@@ -30,30 +30,30 @@ |
||
30 | 30 | |
31 | 31 | class Server implements IIconSection { |
32 | 32 | |
33 | - /** @var IL10N */ |
|
34 | - private $l; |
|
33 | + /** @var IL10N */ |
|
34 | + private $l; |
|
35 | 35 | |
36 | - /** @var IURLGenerator */ |
|
37 | - private $urlGenerator; |
|
36 | + /** @var IURLGenerator */ |
|
37 | + private $urlGenerator; |
|
38 | 38 | |
39 | - public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | - $this->l = $l; |
|
41 | - $this->urlGenerator = $urlGenerator; |
|
42 | - } |
|
39 | + public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | + $this->l = $l; |
|
41 | + $this->urlGenerator = $urlGenerator; |
|
42 | + } |
|
43 | 43 | |
44 | - public function getIcon(): string { |
|
45 | - return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg'); |
|
46 | - } |
|
44 | + public function getIcon(): string { |
|
45 | + return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg'); |
|
46 | + } |
|
47 | 47 | |
48 | - public function getID(): string { |
|
49 | - return 'server'; |
|
50 | - } |
|
48 | + public function getID(): string { |
|
49 | + return 'server'; |
|
50 | + } |
|
51 | 51 | |
52 | - public function getName(): string { |
|
53 | - return $this->l->t('Basic settings'); |
|
54 | - } |
|
52 | + public function getName(): string { |
|
53 | + return $this->l->t('Basic settings'); |
|
54 | + } |
|
55 | 55 | |
56 | - public function getPriority(): int { |
|
57 | - return 1; |
|
58 | - } |
|
56 | + public function getPriority(): int { |
|
57 | + return 1; |
|
58 | + } |
|
59 | 59 | } |
@@ -30,30 +30,30 @@ |
||
30 | 30 | |
31 | 31 | class Overview implements IIconSection { |
32 | 32 | |
33 | - /** @var IL10N */ |
|
34 | - private $l; |
|
33 | + /** @var IL10N */ |
|
34 | + private $l; |
|
35 | 35 | |
36 | - /** @var IURLGenerator */ |
|
37 | - private $urlGenerator; |
|
36 | + /** @var IURLGenerator */ |
|
37 | + private $urlGenerator; |
|
38 | 38 | |
39 | - public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | - $this->l = $l; |
|
41 | - $this->urlGenerator = $urlGenerator; |
|
42 | - } |
|
39 | + public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | + $this->l = $l; |
|
41 | + $this->urlGenerator = $urlGenerator; |
|
42 | + } |
|
43 | 43 | |
44 | - public function getIcon(): string { |
|
45 | - return $this->urlGenerator->imagePath('settings', 'admin.svg'); |
|
46 | - } |
|
44 | + public function getIcon(): string { |
|
45 | + return $this->urlGenerator->imagePath('settings', 'admin.svg'); |
|
46 | + } |
|
47 | 47 | |
48 | - public function getID(): string { |
|
49 | - return 'overview'; |
|
50 | - } |
|
48 | + public function getID(): string { |
|
49 | + return 'overview'; |
|
50 | + } |
|
51 | 51 | |
52 | - public function getName(): string { |
|
53 | - return $this->l->t('Overview'); |
|
54 | - } |
|
52 | + public function getName(): string { |
|
53 | + return $this->l->t('Overview'); |
|
54 | + } |
|
55 | 55 | |
56 | - public function getPriority(): int { |
|
57 | - return 0; |
|
58 | - } |
|
56 | + public function getPriority(): int { |
|
57 | + return 0; |
|
58 | + } |
|
59 | 59 | } |
@@ -30,30 +30,30 @@ |
||
30 | 30 | |
31 | 31 | class SyncClients implements IIconSection { |
32 | 32 | |
33 | - /** @var IL10N */ |
|
34 | - private $l; |
|
33 | + /** @var IL10N */ |
|
34 | + private $l; |
|
35 | 35 | |
36 | - /** @var IURLGenerator */ |
|
37 | - private $urlGenerator; |
|
36 | + /** @var IURLGenerator */ |
|
37 | + private $urlGenerator; |
|
38 | 38 | |
39 | - public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | - $this->l = $l; |
|
41 | - $this->urlGenerator = $urlGenerator; |
|
42 | - } |
|
39 | + public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | + $this->l = $l; |
|
41 | + $this->urlGenerator = $urlGenerator; |
|
42 | + } |
|
43 | 43 | |
44 | - public function getIcon() { |
|
45 | - return $this->urlGenerator->imagePath('core', 'clients/phone.svg'); |
|
46 | - } |
|
44 | + public function getIcon() { |
|
45 | + return $this->urlGenerator->imagePath('core', 'clients/phone.svg'); |
|
46 | + } |
|
47 | 47 | |
48 | - public function getID(): string { |
|
49 | - return 'sync-clients'; |
|
50 | - } |
|
48 | + public function getID(): string { |
|
49 | + return 'sync-clients'; |
|
50 | + } |
|
51 | 51 | |
52 | - public function getName(): string { |
|
53 | - return $this->l->t('Mobile & desktop'); |
|
54 | - } |
|
52 | + public function getName(): string { |
|
53 | + return $this->l->t('Mobile & desktop'); |
|
54 | + } |
|
55 | 55 | |
56 | - public function getPriority(): int { |
|
57 | - return 15; |
|
58 | - } |
|
56 | + public function getPriority(): int { |
|
57 | + return 15; |
|
58 | + } |
|
59 | 59 | } |
@@ -30,30 +30,30 @@ |
||
30 | 30 | |
31 | 31 | class Security implements IIconSection { |
32 | 32 | |
33 | - /** @var IL10N */ |
|
34 | - private $l; |
|
33 | + /** @var IL10N */ |
|
34 | + private $l; |
|
35 | 35 | |
36 | - /** @var IURLGenerator */ |
|
37 | - private $urlGenerator; |
|
36 | + /** @var IURLGenerator */ |
|
37 | + private $urlGenerator; |
|
38 | 38 | |
39 | - public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | - $this->l = $l; |
|
41 | - $this->urlGenerator = $urlGenerator; |
|
42 | - } |
|
39 | + public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | + $this->l = $l; |
|
41 | + $this->urlGenerator = $urlGenerator; |
|
42 | + } |
|
43 | 43 | |
44 | - public function getIcon() { |
|
45 | - return $this->urlGenerator->imagePath('settings', 'password.svg'); |
|
46 | - } |
|
44 | + public function getIcon() { |
|
45 | + return $this->urlGenerator->imagePath('settings', 'password.svg'); |
|
46 | + } |
|
47 | 47 | |
48 | - public function getID(): string { |
|
49 | - return 'security'; |
|
50 | - } |
|
48 | + public function getID(): string { |
|
49 | + return 'security'; |
|
50 | + } |
|
51 | 51 | |
52 | - public function getName(): string { |
|
53 | - return $this->l->t('Security'); |
|
54 | - } |
|
52 | + public function getName(): string { |
|
53 | + return $this->l->t('Security'); |
|
54 | + } |
|
55 | 55 | |
56 | - public function getPriority(): int { |
|
57 | - return 5; |
|
58 | - } |
|
56 | + public function getPriority(): int { |
|
57 | + return 5; |
|
58 | + } |
|
59 | 59 | } |
@@ -30,30 +30,30 @@ |
||
30 | 30 | |
31 | 31 | class PersonalInfo implements IIconSection { |
32 | 32 | |
33 | - /** @var IL10N */ |
|
34 | - private $l; |
|
33 | + /** @var IL10N */ |
|
34 | + private $l; |
|
35 | 35 | |
36 | - /** @var IURLGenerator */ |
|
37 | - private $urlGenerator; |
|
36 | + /** @var IURLGenerator */ |
|
37 | + private $urlGenerator; |
|
38 | 38 | |
39 | - public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | - $this->l = $l; |
|
41 | - $this->urlGenerator = $urlGenerator; |
|
42 | - } |
|
39 | + public function __construct(IL10N $l, IURLGenerator $urlGenerator) { |
|
40 | + $this->l = $l; |
|
41 | + $this->urlGenerator = $urlGenerator; |
|
42 | + } |
|
43 | 43 | |
44 | - public function getIcon() { |
|
45 | - return $this->urlGenerator->imagePath('core', 'actions/user.svg'); |
|
46 | - } |
|
44 | + public function getIcon() { |
|
45 | + return $this->urlGenerator->imagePath('core', 'actions/user.svg'); |
|
46 | + } |
|
47 | 47 | |
48 | - public function getID(): string { |
|
49 | - return 'personal-info'; |
|
50 | - } |
|
48 | + public function getID(): string { |
|
49 | + return 'personal-info'; |
|
50 | + } |
|
51 | 51 | |
52 | - public function getName(): string { |
|
53 | - return $this->l->t('Personal info'); |
|
54 | - } |
|
52 | + public function getName(): string { |
|
53 | + return $this->l->t('Personal info'); |
|
54 | + } |
|
55 | 55 | |
56 | - public function getPriority(): int { |
|
57 | - return 0; |
|
58 | - } |
|
56 | + public function getPriority(): int { |
|
57 | + return 0; |
|
58 | + } |
|
59 | 59 | } |
@@ -34,35 +34,35 @@ |
||
34 | 34 | |
35 | 35 | class Password implements ISettings { |
36 | 36 | |
37 | - /** @var IUserManager */ |
|
38 | - private $userManager; |
|
37 | + /** @var IUserManager */ |
|
38 | + private $userManager; |
|
39 | 39 | |
40 | - /** @var string|null */ |
|
41 | - private $uid; |
|
40 | + /** @var string|null */ |
|
41 | + private $uid; |
|
42 | 42 | |
43 | - public function __construct(IUserManager $userManager, |
|
44 | - ?string $UserId) { |
|
45 | - $this->userManager = $userManager; |
|
46 | - $this->uid = $UserId; |
|
47 | - } |
|
43 | + public function __construct(IUserManager $userManager, |
|
44 | + ?string $UserId) { |
|
45 | + $this->userManager = $userManager; |
|
46 | + $this->uid = $UserId; |
|
47 | + } |
|
48 | 48 | |
49 | - public function getForm(): TemplateResponse { |
|
50 | - $user = $this->userManager->get($this->uid); |
|
51 | - $passwordChangeSupported = false; |
|
52 | - if ($user !== null) { |
|
53 | - $passwordChangeSupported = $user->canChangePassword(); |
|
54 | - } |
|
49 | + public function getForm(): TemplateResponse { |
|
50 | + $user = $this->userManager->get($this->uid); |
|
51 | + $passwordChangeSupported = false; |
|
52 | + if ($user !== null) { |
|
53 | + $passwordChangeSupported = $user->canChangePassword(); |
|
54 | + } |
|
55 | 55 | |
56 | - return new TemplateResponse('settings', 'settings/personal/security/password', [ |
|
57 | - 'passwordChangeSupported' => $passwordChangeSupported, |
|
58 | - ]); |
|
59 | - } |
|
56 | + return new TemplateResponse('settings', 'settings/personal/security/password', [ |
|
57 | + 'passwordChangeSupported' => $passwordChangeSupported, |
|
58 | + ]); |
|
59 | + } |
|
60 | 60 | |
61 | - public function getSection(): string { |
|
62 | - return 'security'; |
|
63 | - } |
|
61 | + public function getSection(): string { |
|
62 | + return 'security'; |
|
63 | + } |
|
64 | 64 | |
65 | - public function getPriority(): int { |
|
66 | - return 10; |
|
67 | - } |
|
65 | + public function getPriority(): int { |
|
66 | + return 10; |
|
67 | + } |
|
68 | 68 | } |
@@ -32,15 +32,15 @@ |
||
32 | 32 | use Doctrine\DBAL\TransactionIsolationLevel; |
33 | 33 | |
34 | 34 | class SetTransactionIsolationLevel implements EventSubscriber { |
35 | - /** |
|
36 | - * @param ConnectionEventArgs $args |
|
37 | - * @return void |
|
38 | - */ |
|
39 | - public function postConnect(ConnectionEventArgs $args) { |
|
40 | - $args->getConnection()->setTransactionIsolation(TransactionIsolationLevel::READ_COMMITTED); |
|
41 | - } |
|
35 | + /** |
|
36 | + * @param ConnectionEventArgs $args |
|
37 | + * @return void |
|
38 | + */ |
|
39 | + public function postConnect(ConnectionEventArgs $args) { |
|
40 | + $args->getConnection()->setTransactionIsolation(TransactionIsolationLevel::READ_COMMITTED); |
|
41 | + } |
|
42 | 42 | |
43 | - public function getSubscribedEvents() { |
|
44 | - return [Events::postConnect]; |
|
45 | - } |
|
43 | + public function getSubscribedEvents() { |
|
44 | + return [Events::postConnect]; |
|
45 | + } |
|
46 | 46 | } |
@@ -32,42 +32,42 @@ |
||
32 | 32 | */ |
33 | 33 | interface ICalendarProvider { |
34 | 34 | |
35 | - /** |
|
36 | - * Provides the appId of the plugin |
|
37 | - * |
|
38 | - * @since 19.0.0 |
|
39 | - * @return string AppId |
|
40 | - */ |
|
41 | - public function getAppId(): string; |
|
35 | + /** |
|
36 | + * Provides the appId of the plugin |
|
37 | + * |
|
38 | + * @since 19.0.0 |
|
39 | + * @return string AppId |
|
40 | + */ |
|
41 | + public function getAppId(): string; |
|
42 | 42 | |
43 | - /** |
|
44 | - * Fetches all calendars for a given principal uri |
|
45 | - * |
|
46 | - * @since 19.0.0 |
|
47 | - * @param string $principalUri E.g. principals/users/user1 |
|
48 | - * @return ExternalCalendar[] Array of all calendars |
|
49 | - */ |
|
50 | - public function fetchAllForCalendarHome(string $principalUri): array; |
|
43 | + /** |
|
44 | + * Fetches all calendars for a given principal uri |
|
45 | + * |
|
46 | + * @since 19.0.0 |
|
47 | + * @param string $principalUri E.g. principals/users/user1 |
|
48 | + * @return ExternalCalendar[] Array of all calendars |
|
49 | + */ |
|
50 | + public function fetchAllForCalendarHome(string $principalUri): array; |
|
51 | 51 | |
52 | - /** |
|
53 | - * Checks whether plugin has a calendar for a given principalUri and calendarUri |
|
54 | - * |
|
55 | - * @since 19.0.0 |
|
56 | - * @param string $principalUri E.g. principals/users/user1 |
|
57 | - * @param string $calendarUri E.g. personal |
|
58 | - * @return bool True if calendar for principalUri and calendarUri exists, false otherwise |
|
59 | - */ |
|
60 | - public function hasCalendarInCalendarHome(string $principalUri, string $calendarUri): bool; |
|
52 | + /** |
|
53 | + * Checks whether plugin has a calendar for a given principalUri and calendarUri |
|
54 | + * |
|
55 | + * @since 19.0.0 |
|
56 | + * @param string $principalUri E.g. principals/users/user1 |
|
57 | + * @param string $calendarUri E.g. personal |
|
58 | + * @return bool True if calendar for principalUri and calendarUri exists, false otherwise |
|
59 | + */ |
|
60 | + public function hasCalendarInCalendarHome(string $principalUri, string $calendarUri): bool; |
|
61 | 61 | |
62 | - /** |
|
63 | - * Fetches a calendar for a given principalUri and calendarUri |
|
64 | - * Returns null if calendar does not exist |
|
65 | - * |
|
66 | - * @since 19.0.0 |
|
67 | - * @param string $principalUri E.g. principals/users/user1 |
|
68 | - * @param string $calendarUri E.g. personal |
|
69 | - * @return ExternalCalendar|null Calendar if it exists, null otherwise |
|
70 | - */ |
|
71 | - public function getCalendarInCalendarHome(string $principalUri, string $calendarUri): ?ExternalCalendar; |
|
62 | + /** |
|
63 | + * Fetches a calendar for a given principalUri and calendarUri |
|
64 | + * Returns null if calendar does not exist |
|
65 | + * |
|
66 | + * @since 19.0.0 |
|
67 | + * @param string $principalUri E.g. principals/users/user1 |
|
68 | + * @param string $calendarUri E.g. personal |
|
69 | + * @return ExternalCalendar|null Calendar if it exists, null otherwise |
|
70 | + */ |
|
71 | + public function getCalendarInCalendarHome(string $principalUri, string $calendarUri): ?ExternalCalendar; |
|
72 | 72 | |
73 | 73 | } |
@@ -27,147 +27,147 @@ |
||
27 | 27 | use OCP\Files\NotFoundException; |
28 | 28 | |
29 | 29 | class NonExistingFolder extends Folder { |
30 | - /** |
|
31 | - * @param string $newPath |
|
32 | - * @throws \OCP\Files\NotFoundException |
|
33 | - */ |
|
34 | - public function rename($newPath) { |
|
35 | - throw new NotFoundException(); |
|
36 | - } |
|
37 | - |
|
38 | - public function delete() { |
|
39 | - throw new NotFoundException(); |
|
40 | - } |
|
41 | - |
|
42 | - public function copy($newPath) { |
|
43 | - throw new NotFoundException(); |
|
44 | - } |
|
45 | - |
|
46 | - public function touch($mtime = null) { |
|
47 | - throw new NotFoundException(); |
|
48 | - } |
|
49 | - |
|
50 | - public function getId() { |
|
51 | - if ($this->fileInfo) { |
|
52 | - return parent::getId(); |
|
53 | - } else { |
|
54 | - throw new NotFoundException(); |
|
55 | - } |
|
56 | - } |
|
57 | - |
|
58 | - public function stat() { |
|
59 | - throw new NotFoundException(); |
|
60 | - } |
|
61 | - |
|
62 | - public function getMTime() { |
|
63 | - if ($this->fileInfo) { |
|
64 | - return parent::getMTime(); |
|
65 | - } else { |
|
66 | - throw new NotFoundException(); |
|
67 | - } |
|
68 | - } |
|
69 | - |
|
70 | - public function getSize($includeMounts = true) { |
|
71 | - if ($this->fileInfo) { |
|
72 | - return parent::getSize($includeMounts); |
|
73 | - } else { |
|
74 | - throw new NotFoundException(); |
|
75 | - } |
|
76 | - } |
|
77 | - |
|
78 | - public function getEtag() { |
|
79 | - if ($this->fileInfo) { |
|
80 | - return parent::getEtag(); |
|
81 | - } else { |
|
82 | - throw new NotFoundException(); |
|
83 | - } |
|
84 | - } |
|
85 | - |
|
86 | - public function getPermissions() { |
|
87 | - if ($this->fileInfo) { |
|
88 | - return parent::getPermissions(); |
|
89 | - } else { |
|
90 | - throw new NotFoundException(); |
|
91 | - } |
|
92 | - } |
|
93 | - |
|
94 | - public function isReadable() { |
|
95 | - if ($this->fileInfo) { |
|
96 | - return parent::isReadable(); |
|
97 | - } else { |
|
98 | - throw new NotFoundException(); |
|
99 | - } |
|
100 | - } |
|
101 | - |
|
102 | - public function isUpdateable() { |
|
103 | - if ($this->fileInfo) { |
|
104 | - return parent::isUpdateable(); |
|
105 | - } else { |
|
106 | - throw new NotFoundException(); |
|
107 | - } |
|
108 | - } |
|
109 | - |
|
110 | - public function isDeletable() { |
|
111 | - if ($this->fileInfo) { |
|
112 | - return parent::isDeletable(); |
|
113 | - } else { |
|
114 | - throw new NotFoundException(); |
|
115 | - } |
|
116 | - } |
|
117 | - |
|
118 | - public function isShareable() { |
|
119 | - if ($this->fileInfo) { |
|
120 | - return parent::isShareable(); |
|
121 | - } else { |
|
122 | - throw new NotFoundException(); |
|
123 | - } |
|
124 | - } |
|
125 | - |
|
126 | - public function get($path) { |
|
127 | - throw new NotFoundException(); |
|
128 | - } |
|
129 | - |
|
130 | - public function getDirectoryListing() { |
|
131 | - throw new NotFoundException(); |
|
132 | - } |
|
133 | - |
|
134 | - public function nodeExists($path) { |
|
135 | - return false; |
|
136 | - } |
|
137 | - |
|
138 | - public function newFolder($path) { |
|
139 | - throw new NotFoundException(); |
|
140 | - } |
|
141 | - |
|
142 | - public function newFile($path, $content = null) { |
|
143 | - throw new NotFoundException(); |
|
144 | - } |
|
145 | - |
|
146 | - public function search($pattern) { |
|
147 | - throw new NotFoundException(); |
|
148 | - } |
|
149 | - |
|
150 | - public function searchByMime($mime) { |
|
151 | - throw new NotFoundException(); |
|
152 | - } |
|
153 | - |
|
154 | - public function searchByTag($tag, $userId) { |
|
155 | - throw new NotFoundException(); |
|
156 | - } |
|
157 | - |
|
158 | - public function getById($id) { |
|
159 | - throw new NotFoundException(); |
|
160 | - } |
|
161 | - |
|
162 | - public function getFreeSpace() { |
|
163 | - throw new NotFoundException(); |
|
164 | - } |
|
165 | - |
|
166 | - public function isCreatable() { |
|
167 | - if ($this->fileInfo) { |
|
168 | - return parent::isCreatable(); |
|
169 | - } else { |
|
170 | - throw new NotFoundException(); |
|
171 | - } |
|
172 | - } |
|
30 | + /** |
|
31 | + * @param string $newPath |
|
32 | + * @throws \OCP\Files\NotFoundException |
|
33 | + */ |
|
34 | + public function rename($newPath) { |
|
35 | + throw new NotFoundException(); |
|
36 | + } |
|
37 | + |
|
38 | + public function delete() { |
|
39 | + throw new NotFoundException(); |
|
40 | + } |
|
41 | + |
|
42 | + public function copy($newPath) { |
|
43 | + throw new NotFoundException(); |
|
44 | + } |
|
45 | + |
|
46 | + public function touch($mtime = null) { |
|
47 | + throw new NotFoundException(); |
|
48 | + } |
|
49 | + |
|
50 | + public function getId() { |
|
51 | + if ($this->fileInfo) { |
|
52 | + return parent::getId(); |
|
53 | + } else { |
|
54 | + throw new NotFoundException(); |
|
55 | + } |
|
56 | + } |
|
57 | + |
|
58 | + public function stat() { |
|
59 | + throw new NotFoundException(); |
|
60 | + } |
|
61 | + |
|
62 | + public function getMTime() { |
|
63 | + if ($this->fileInfo) { |
|
64 | + return parent::getMTime(); |
|
65 | + } else { |
|
66 | + throw new NotFoundException(); |
|
67 | + } |
|
68 | + } |
|
69 | + |
|
70 | + public function getSize($includeMounts = true) { |
|
71 | + if ($this->fileInfo) { |
|
72 | + return parent::getSize($includeMounts); |
|
73 | + } else { |
|
74 | + throw new NotFoundException(); |
|
75 | + } |
|
76 | + } |
|
77 | + |
|
78 | + public function getEtag() { |
|
79 | + if ($this->fileInfo) { |
|
80 | + return parent::getEtag(); |
|
81 | + } else { |
|
82 | + throw new NotFoundException(); |
|
83 | + } |
|
84 | + } |
|
85 | + |
|
86 | + public function getPermissions() { |
|
87 | + if ($this->fileInfo) { |
|
88 | + return parent::getPermissions(); |
|
89 | + } else { |
|
90 | + throw new NotFoundException(); |
|
91 | + } |
|
92 | + } |
|
93 | + |
|
94 | + public function isReadable() { |
|
95 | + if ($this->fileInfo) { |
|
96 | + return parent::isReadable(); |
|
97 | + } else { |
|
98 | + throw new NotFoundException(); |
|
99 | + } |
|
100 | + } |
|
101 | + |
|
102 | + public function isUpdateable() { |
|
103 | + if ($this->fileInfo) { |
|
104 | + return parent::isUpdateable(); |
|
105 | + } else { |
|
106 | + throw new NotFoundException(); |
|
107 | + } |
|
108 | + } |
|
109 | + |
|
110 | + public function isDeletable() { |
|
111 | + if ($this->fileInfo) { |
|
112 | + return parent::isDeletable(); |
|
113 | + } else { |
|
114 | + throw new NotFoundException(); |
|
115 | + } |
|
116 | + } |
|
117 | + |
|
118 | + public function isShareable() { |
|
119 | + if ($this->fileInfo) { |
|
120 | + return parent::isShareable(); |
|
121 | + } else { |
|
122 | + throw new NotFoundException(); |
|
123 | + } |
|
124 | + } |
|
125 | + |
|
126 | + public function get($path) { |
|
127 | + throw new NotFoundException(); |
|
128 | + } |
|
129 | + |
|
130 | + public function getDirectoryListing() { |
|
131 | + throw new NotFoundException(); |
|
132 | + } |
|
133 | + |
|
134 | + public function nodeExists($path) { |
|
135 | + return false; |
|
136 | + } |
|
137 | + |
|
138 | + public function newFolder($path) { |
|
139 | + throw new NotFoundException(); |
|
140 | + } |
|
141 | + |
|
142 | + public function newFile($path, $content = null) { |
|
143 | + throw new NotFoundException(); |
|
144 | + } |
|
145 | + |
|
146 | + public function search($pattern) { |
|
147 | + throw new NotFoundException(); |
|
148 | + } |
|
149 | + |
|
150 | + public function searchByMime($mime) { |
|
151 | + throw new NotFoundException(); |
|
152 | + } |
|
153 | + |
|
154 | + public function searchByTag($tag, $userId) { |
|
155 | + throw new NotFoundException(); |
|
156 | + } |
|
157 | + |
|
158 | + public function getById($id) { |
|
159 | + throw new NotFoundException(); |
|
160 | + } |
|
161 | + |
|
162 | + public function getFreeSpace() { |
|
163 | + throw new NotFoundException(); |
|
164 | + } |
|
165 | + |
|
166 | + public function isCreatable() { |
|
167 | + if ($this->fileInfo) { |
|
168 | + return parent::isCreatable(); |
|
169 | + } else { |
|
170 | + throw new NotFoundException(); |
|
171 | + } |
|
172 | + } |
|
173 | 173 | } |