@@ -32,13 +32,13 @@ |
||
32 | 32 | */ |
33 | 33 | class DoesNotExistException extends \Exception { |
34 | 34 | |
35 | - /** |
|
36 | - * Constructor |
|
37 | - * @param string $msg the error message |
|
38 | - * @since 7.0.0 |
|
39 | - */ |
|
40 | - public function __construct($msg){ |
|
41 | - parent::__construct($msg); |
|
42 | - } |
|
35 | + /** |
|
36 | + * Constructor |
|
37 | + * @param string $msg the error message |
|
38 | + * @since 7.0.0 |
|
39 | + */ |
|
40 | + public function __construct($msg){ |
|
41 | + parent::__construct($msg); |
|
42 | + } |
|
43 | 43 | |
44 | 44 | } |
@@ -31,224 +31,224 @@ |
||
31 | 31 | */ |
32 | 32 | abstract class Entity { |
33 | 33 | |
34 | - public $id; |
|
34 | + public $id; |
|
35 | 35 | |
36 | - private $_updatedFields = array(); |
|
37 | - private $_fieldTypes = array('id' => 'integer'); |
|
36 | + private $_updatedFields = array(); |
|
37 | + private $_fieldTypes = array('id' => 'integer'); |
|
38 | 38 | |
39 | 39 | |
40 | - /** |
|
41 | - * Simple alternative constructor for building entities from a request |
|
42 | - * @param array $params the array which was obtained via $this->params('key') |
|
43 | - * in the controller |
|
44 | - * @return Entity |
|
45 | - * @since 7.0.0 |
|
46 | - */ |
|
47 | - public static function fromParams(array $params) { |
|
48 | - $instance = new static(); |
|
40 | + /** |
|
41 | + * Simple alternative constructor for building entities from a request |
|
42 | + * @param array $params the array which was obtained via $this->params('key') |
|
43 | + * in the controller |
|
44 | + * @return Entity |
|
45 | + * @since 7.0.0 |
|
46 | + */ |
|
47 | + public static function fromParams(array $params) { |
|
48 | + $instance = new static(); |
|
49 | 49 | |
50 | - foreach($params as $key => $value) { |
|
51 | - $method = 'set' . ucfirst($key); |
|
52 | - $instance->$method($value); |
|
53 | - } |
|
50 | + foreach($params as $key => $value) { |
|
51 | + $method = 'set' . ucfirst($key); |
|
52 | + $instance->$method($value); |
|
53 | + } |
|
54 | 54 | |
55 | - return $instance; |
|
56 | - } |
|
55 | + return $instance; |
|
56 | + } |
|
57 | 57 | |
58 | 58 | |
59 | - /** |
|
60 | - * Maps the keys of the row array to the attributes |
|
61 | - * @param array $row the row to map onto the entity |
|
62 | - * @since 7.0.0 |
|
63 | - */ |
|
64 | - public static function fromRow(array $row){ |
|
65 | - $instance = new static(); |
|
59 | + /** |
|
60 | + * Maps the keys of the row array to the attributes |
|
61 | + * @param array $row the row to map onto the entity |
|
62 | + * @since 7.0.0 |
|
63 | + */ |
|
64 | + public static function fromRow(array $row){ |
|
65 | + $instance = new static(); |
|
66 | 66 | |
67 | - foreach($row as $key => $value){ |
|
68 | - $prop = ucfirst($instance->columnToProperty($key)); |
|
69 | - $setter = 'set' . $prop; |
|
70 | - $instance->$setter($value); |
|
71 | - } |
|
67 | + foreach($row as $key => $value){ |
|
68 | + $prop = ucfirst($instance->columnToProperty($key)); |
|
69 | + $setter = 'set' . $prop; |
|
70 | + $instance->$setter($value); |
|
71 | + } |
|
72 | 72 | |
73 | - $instance->resetUpdatedFields(); |
|
73 | + $instance->resetUpdatedFields(); |
|
74 | 74 | |
75 | - return $instance; |
|
76 | - } |
|
75 | + return $instance; |
|
76 | + } |
|
77 | 77 | |
78 | 78 | |
79 | - /** |
|
80 | - * @return array with attribute and type |
|
81 | - * @since 7.0.0 |
|
82 | - */ |
|
83 | - public function getFieldTypes() { |
|
84 | - return $this->_fieldTypes; |
|
85 | - } |
|
79 | + /** |
|
80 | + * @return array with attribute and type |
|
81 | + * @since 7.0.0 |
|
82 | + */ |
|
83 | + public function getFieldTypes() { |
|
84 | + return $this->_fieldTypes; |
|
85 | + } |
|
86 | 86 | |
87 | 87 | |
88 | - /** |
|
89 | - * Marks the entity as clean needed for setting the id after the insertion |
|
90 | - * @since 7.0.0 |
|
91 | - */ |
|
92 | - public function resetUpdatedFields(){ |
|
93 | - $this->_updatedFields = array(); |
|
94 | - } |
|
95 | - |
|
96 | - /** |
|
97 | - * Generic setter for properties |
|
98 | - * @since 7.0.0 |
|
99 | - */ |
|
100 | - protected function setter($name, $args) { |
|
101 | - // setters should only work for existing attributes |
|
102 | - if(property_exists($this, $name)){ |
|
103 | - if($this->$name === $args[0]) { |
|
104 | - return; |
|
105 | - } |
|
106 | - $this->markFieldUpdated($name); |
|
107 | - |
|
108 | - // if type definition exists, cast to correct type |
|
109 | - if($args[0] !== null && array_key_exists($name, $this->_fieldTypes)) { |
|
110 | - settype($args[0], $this->_fieldTypes[$name]); |
|
111 | - } |
|
112 | - $this->$name = $args[0]; |
|
113 | - |
|
114 | - } else { |
|
115 | - throw new \BadFunctionCallException($name . |
|
116 | - ' is not a valid attribute'); |
|
117 | - } |
|
118 | - } |
|
119 | - |
|
120 | - /** |
|
121 | - * Generic getter for properties |
|
122 | - * @since 7.0.0 |
|
123 | - */ |
|
124 | - protected function getter($name) { |
|
125 | - // getters should only work for existing attributes |
|
126 | - if(property_exists($this, $name)){ |
|
127 | - return $this->$name; |
|
128 | - } else { |
|
129 | - throw new \BadFunctionCallException($name . |
|
130 | - ' is not a valid attribute'); |
|
131 | - } |
|
132 | - } |
|
133 | - |
|
134 | - |
|
135 | - /** |
|
136 | - * Each time a setter is called, push the part after set |
|
137 | - * into an array: for instance setId will save Id in the |
|
138 | - * updated fields array so it can be easily used to create the |
|
139 | - * getter method |
|
140 | - * @since 7.0.0 |
|
141 | - */ |
|
142 | - public function __call($methodName, $args){ |
|
143 | - $attr = lcfirst( substr($methodName, 3) ); |
|
144 | - |
|
145 | - if(strpos($methodName, 'set') === 0){ |
|
146 | - $this->setter($attr, $args); |
|
147 | - } elseif(strpos($methodName, 'get') === 0) { |
|
148 | - return $this->getter($attr); |
|
149 | - } else { |
|
150 | - throw new \BadFunctionCallException($methodName . |
|
151 | - ' does not exist'); |
|
152 | - } |
|
153 | - |
|
154 | - } |
|
155 | - |
|
156 | - |
|
157 | - /** |
|
158 | - * Mark am attribute as updated |
|
159 | - * @param string $attribute the name of the attribute |
|
160 | - * @since 7.0.0 |
|
161 | - */ |
|
162 | - protected function markFieldUpdated($attribute){ |
|
163 | - $this->_updatedFields[$attribute] = true; |
|
164 | - } |
|
165 | - |
|
166 | - |
|
167 | - /** |
|
168 | - * Transform a database columnname to a property |
|
169 | - * @param string $columnName the name of the column |
|
170 | - * @return string the property name |
|
171 | - * @since 7.0.0 |
|
172 | - */ |
|
173 | - public function columnToProperty($columnName){ |
|
174 | - $parts = explode('_', $columnName); |
|
175 | - $property = null; |
|
176 | - |
|
177 | - foreach($parts as $part){ |
|
178 | - if($property === null){ |
|
179 | - $property = $part; |
|
180 | - } else { |
|
181 | - $property .= ucfirst($part); |
|
182 | - } |
|
183 | - } |
|
184 | - |
|
185 | - return $property; |
|
186 | - } |
|
187 | - |
|
188 | - |
|
189 | - /** |
|
190 | - * Transform a property to a database column name |
|
191 | - * @param string $property the name of the property |
|
192 | - * @return string the column name |
|
193 | - * @since 7.0.0 |
|
194 | - */ |
|
195 | - public function propertyToColumn($property){ |
|
196 | - $parts = preg_split('/(?=[A-Z])/', $property); |
|
197 | - $column = null; |
|
198 | - |
|
199 | - foreach($parts as $part){ |
|
200 | - if($column === null){ |
|
201 | - $column = $part; |
|
202 | - } else { |
|
203 | - $column .= '_' . lcfirst($part); |
|
204 | - } |
|
205 | - } |
|
206 | - |
|
207 | - return $column; |
|
208 | - } |
|
209 | - |
|
210 | - |
|
211 | - /** |
|
212 | - * @return array array of updated fields for update query |
|
213 | - * @since 7.0.0 |
|
214 | - */ |
|
215 | - public function getUpdatedFields(){ |
|
216 | - return $this->_updatedFields; |
|
217 | - } |
|
218 | - |
|
219 | - |
|
220 | - /** |
|
221 | - * Adds type information for a field so that its automatically casted to |
|
222 | - * that value once its being returned from the database |
|
223 | - * @param string $fieldName the name of the attribute |
|
224 | - * @param string $type the type which will be used to call settype() |
|
225 | - * @since 7.0.0 |
|
226 | - */ |
|
227 | - protected function addType($fieldName, $type){ |
|
228 | - $this->_fieldTypes[$fieldName] = $type; |
|
229 | - } |
|
230 | - |
|
231 | - |
|
232 | - /** |
|
233 | - * Slugify the value of a given attribute |
|
234 | - * Warning: This doesn't result in a unique value |
|
235 | - * @param string $attributeName the name of the attribute, which value should be slugified |
|
236 | - * @return string slugified value |
|
237 | - * @since 7.0.0 |
|
238 | - */ |
|
239 | - public function slugify($attributeName){ |
|
240 | - // toSlug should only work for existing attributes |
|
241 | - if(property_exists($this, $attributeName)){ |
|
242 | - $value = $this->$attributeName; |
|
243 | - // replace everything except alphanumeric with a single '-' |
|
244 | - $value = preg_replace('/[^A-Za-z0-9]+/', '-', $value); |
|
245 | - $value = strtolower($value); |
|
246 | - // trim '-' |
|
247 | - return trim($value, '-'); |
|
248 | - } else { |
|
249 | - throw new \BadFunctionCallException($attributeName . |
|
250 | - ' is not a valid attribute'); |
|
251 | - } |
|
252 | - } |
|
88 | + /** |
|
89 | + * Marks the entity as clean needed for setting the id after the insertion |
|
90 | + * @since 7.0.0 |
|
91 | + */ |
|
92 | + public function resetUpdatedFields(){ |
|
93 | + $this->_updatedFields = array(); |
|
94 | + } |
|
95 | + |
|
96 | + /** |
|
97 | + * Generic setter for properties |
|
98 | + * @since 7.0.0 |
|
99 | + */ |
|
100 | + protected function setter($name, $args) { |
|
101 | + // setters should only work for existing attributes |
|
102 | + if(property_exists($this, $name)){ |
|
103 | + if($this->$name === $args[0]) { |
|
104 | + return; |
|
105 | + } |
|
106 | + $this->markFieldUpdated($name); |
|
107 | + |
|
108 | + // if type definition exists, cast to correct type |
|
109 | + if($args[0] !== null && array_key_exists($name, $this->_fieldTypes)) { |
|
110 | + settype($args[0], $this->_fieldTypes[$name]); |
|
111 | + } |
|
112 | + $this->$name = $args[0]; |
|
113 | + |
|
114 | + } else { |
|
115 | + throw new \BadFunctionCallException($name . |
|
116 | + ' is not a valid attribute'); |
|
117 | + } |
|
118 | + } |
|
119 | + |
|
120 | + /** |
|
121 | + * Generic getter for properties |
|
122 | + * @since 7.0.0 |
|
123 | + */ |
|
124 | + protected function getter($name) { |
|
125 | + // getters should only work for existing attributes |
|
126 | + if(property_exists($this, $name)){ |
|
127 | + return $this->$name; |
|
128 | + } else { |
|
129 | + throw new \BadFunctionCallException($name . |
|
130 | + ' is not a valid attribute'); |
|
131 | + } |
|
132 | + } |
|
133 | + |
|
134 | + |
|
135 | + /** |
|
136 | + * Each time a setter is called, push the part after set |
|
137 | + * into an array: for instance setId will save Id in the |
|
138 | + * updated fields array so it can be easily used to create the |
|
139 | + * getter method |
|
140 | + * @since 7.0.0 |
|
141 | + */ |
|
142 | + public function __call($methodName, $args){ |
|
143 | + $attr = lcfirst( substr($methodName, 3) ); |
|
144 | + |
|
145 | + if(strpos($methodName, 'set') === 0){ |
|
146 | + $this->setter($attr, $args); |
|
147 | + } elseif(strpos($methodName, 'get') === 0) { |
|
148 | + return $this->getter($attr); |
|
149 | + } else { |
|
150 | + throw new \BadFunctionCallException($methodName . |
|
151 | + ' does not exist'); |
|
152 | + } |
|
153 | + |
|
154 | + } |
|
155 | + |
|
156 | + |
|
157 | + /** |
|
158 | + * Mark am attribute as updated |
|
159 | + * @param string $attribute the name of the attribute |
|
160 | + * @since 7.0.0 |
|
161 | + */ |
|
162 | + protected function markFieldUpdated($attribute){ |
|
163 | + $this->_updatedFields[$attribute] = true; |
|
164 | + } |
|
165 | + |
|
166 | + |
|
167 | + /** |
|
168 | + * Transform a database columnname to a property |
|
169 | + * @param string $columnName the name of the column |
|
170 | + * @return string the property name |
|
171 | + * @since 7.0.0 |
|
172 | + */ |
|
173 | + public function columnToProperty($columnName){ |
|
174 | + $parts = explode('_', $columnName); |
|
175 | + $property = null; |
|
176 | + |
|
177 | + foreach($parts as $part){ |
|
178 | + if($property === null){ |
|
179 | + $property = $part; |
|
180 | + } else { |
|
181 | + $property .= ucfirst($part); |
|
182 | + } |
|
183 | + } |
|
184 | + |
|
185 | + return $property; |
|
186 | + } |
|
187 | + |
|
188 | + |
|
189 | + /** |
|
190 | + * Transform a property to a database column name |
|
191 | + * @param string $property the name of the property |
|
192 | + * @return string the column name |
|
193 | + * @since 7.0.0 |
|
194 | + */ |
|
195 | + public function propertyToColumn($property){ |
|
196 | + $parts = preg_split('/(?=[A-Z])/', $property); |
|
197 | + $column = null; |
|
198 | + |
|
199 | + foreach($parts as $part){ |
|
200 | + if($column === null){ |
|
201 | + $column = $part; |
|
202 | + } else { |
|
203 | + $column .= '_' . lcfirst($part); |
|
204 | + } |
|
205 | + } |
|
206 | + |
|
207 | + return $column; |
|
208 | + } |
|
209 | + |
|
210 | + |
|
211 | + /** |
|
212 | + * @return array array of updated fields for update query |
|
213 | + * @since 7.0.0 |
|
214 | + */ |
|
215 | + public function getUpdatedFields(){ |
|
216 | + return $this->_updatedFields; |
|
217 | + } |
|
218 | + |
|
219 | + |
|
220 | + /** |
|
221 | + * Adds type information for a field so that its automatically casted to |
|
222 | + * that value once its being returned from the database |
|
223 | + * @param string $fieldName the name of the attribute |
|
224 | + * @param string $type the type which will be used to call settype() |
|
225 | + * @since 7.0.0 |
|
226 | + */ |
|
227 | + protected function addType($fieldName, $type){ |
|
228 | + $this->_fieldTypes[$fieldName] = $type; |
|
229 | + } |
|
230 | + |
|
231 | + |
|
232 | + /** |
|
233 | + * Slugify the value of a given attribute |
|
234 | + * Warning: This doesn't result in a unique value |
|
235 | + * @param string $attributeName the name of the attribute, which value should be slugified |
|
236 | + * @return string slugified value |
|
237 | + * @since 7.0.0 |
|
238 | + */ |
|
239 | + public function slugify($attributeName){ |
|
240 | + // toSlug should only work for existing attributes |
|
241 | + if(property_exists($this, $attributeName)){ |
|
242 | + $value = $this->$attributeName; |
|
243 | + // replace everything except alphanumeric with a single '-' |
|
244 | + $value = preg_replace('/[^A-Za-z0-9]+/', '-', $value); |
|
245 | + $value = strtolower($value); |
|
246 | + // trim '-' |
|
247 | + return trim($value, '-'); |
|
248 | + } else { |
|
249 | + throw new \BadFunctionCallException($attributeName . |
|
250 | + ' is not a valid attribute'); |
|
251 | + } |
|
252 | + } |
|
253 | 253 | |
254 | 254 | } |
@@ -33,32 +33,32 @@ |
||
33 | 33 | */ |
34 | 34 | interface IProviderFactory { |
35 | 35 | |
36 | - /** |
|
37 | - * IProviderFactory constructor. |
|
38 | - * @param IServerContainer $serverContainer |
|
39 | - * @since 9.0.0 |
|
40 | - */ |
|
41 | - public function __construct(IServerContainer $serverContainer); |
|
36 | + /** |
|
37 | + * IProviderFactory constructor. |
|
38 | + * @param IServerContainer $serverContainer |
|
39 | + * @since 9.0.0 |
|
40 | + */ |
|
41 | + public function __construct(IServerContainer $serverContainer); |
|
42 | 42 | |
43 | - /** |
|
44 | - * @param string $id |
|
45 | - * @return IShareProvider |
|
46 | - * @throws ProviderException |
|
47 | - * @since 9.0.0 |
|
48 | - */ |
|
49 | - public function getProvider($id); |
|
43 | + /** |
|
44 | + * @param string $id |
|
45 | + * @return IShareProvider |
|
46 | + * @throws ProviderException |
|
47 | + * @since 9.0.0 |
|
48 | + */ |
|
49 | + public function getProvider($id); |
|
50 | 50 | |
51 | - /** |
|
52 | - * @param int $shareType |
|
53 | - * @return IShareProvider |
|
54 | - * @throws ProviderException |
|
55 | - * @since 9.0.0 |
|
56 | - */ |
|
57 | - public function getProviderForType($shareType); |
|
51 | + /** |
|
52 | + * @param int $shareType |
|
53 | + * @return IShareProvider |
|
54 | + * @throws ProviderException |
|
55 | + * @since 9.0.0 |
|
56 | + */ |
|
57 | + public function getProviderForType($shareType); |
|
58 | 58 | |
59 | - /** |
|
60 | - * @return IShareProvider[] |
|
61 | - * @since 11.0.0 |
|
62 | - */ |
|
63 | - public function getAllProviders(); |
|
59 | + /** |
|
60 | + * @return IShareProvider[] |
|
61 | + * @since 11.0.0 |
|
62 | + */ |
|
63 | + public function getAllProviders(); |
|
64 | 64 | } |
@@ -33,65 +33,65 @@ |
||
33 | 33 | */ |
34 | 34 | class SabrePluginEvent extends Event { |
35 | 35 | |
36 | - /** @var int */ |
|
37 | - protected $statusCode; |
|
36 | + /** @var int */ |
|
37 | + protected $statusCode; |
|
38 | 38 | |
39 | - /** @var string */ |
|
40 | - protected $message; |
|
39 | + /** @var string */ |
|
40 | + protected $message; |
|
41 | 41 | |
42 | - /** @var Server */ |
|
43 | - protected $server; |
|
42 | + /** @var Server */ |
|
43 | + protected $server; |
|
44 | 44 | |
45 | - /** |
|
46 | - * @since 8.2.0 |
|
47 | - */ |
|
48 | - public function __construct($server = null) { |
|
49 | - $this->message = ''; |
|
50 | - $this->statusCode = Http::STATUS_OK; |
|
51 | - $this->server = $server; |
|
52 | - } |
|
45 | + /** |
|
46 | + * @since 8.2.0 |
|
47 | + */ |
|
48 | + public function __construct($server = null) { |
|
49 | + $this->message = ''; |
|
50 | + $this->statusCode = Http::STATUS_OK; |
|
51 | + $this->server = $server; |
|
52 | + } |
|
53 | 53 | |
54 | - /** |
|
55 | - * @param int $statusCode |
|
56 | - * @return self |
|
57 | - * @since 8.2.0 |
|
58 | - */ |
|
59 | - public function setStatusCode($statusCode) { |
|
60 | - $this->statusCode = (int) $statusCode; |
|
61 | - return $this; |
|
62 | - } |
|
54 | + /** |
|
55 | + * @param int $statusCode |
|
56 | + * @return self |
|
57 | + * @since 8.2.0 |
|
58 | + */ |
|
59 | + public function setStatusCode($statusCode) { |
|
60 | + $this->statusCode = (int) $statusCode; |
|
61 | + return $this; |
|
62 | + } |
|
63 | 63 | |
64 | - /** |
|
65 | - * @param string $message |
|
66 | - * @return self |
|
67 | - * @since 8.2.0 |
|
68 | - */ |
|
69 | - public function setMessage($message) { |
|
70 | - $this->message = (string) $message; |
|
71 | - return $this; |
|
72 | - } |
|
64 | + /** |
|
65 | + * @param string $message |
|
66 | + * @return self |
|
67 | + * @since 8.2.0 |
|
68 | + */ |
|
69 | + public function setMessage($message) { |
|
70 | + $this->message = (string) $message; |
|
71 | + return $this; |
|
72 | + } |
|
73 | 73 | |
74 | - /** |
|
75 | - * @return int |
|
76 | - * @since 8.2.0 |
|
77 | - */ |
|
78 | - public function getStatusCode() { |
|
79 | - return $this->statusCode; |
|
80 | - } |
|
74 | + /** |
|
75 | + * @return int |
|
76 | + * @since 8.2.0 |
|
77 | + */ |
|
78 | + public function getStatusCode() { |
|
79 | + return $this->statusCode; |
|
80 | + } |
|
81 | 81 | |
82 | - /** |
|
83 | - * @return string |
|
84 | - * @since 8.2.0 |
|
85 | - */ |
|
86 | - public function getMessage() { |
|
87 | - return $this->message; |
|
88 | - } |
|
82 | + /** |
|
83 | + * @return string |
|
84 | + * @since 8.2.0 |
|
85 | + */ |
|
86 | + public function getMessage() { |
|
87 | + return $this->message; |
|
88 | + } |
|
89 | 89 | |
90 | - /** |
|
91 | - * @return null|Server |
|
92 | - * @since 9.0.0 |
|
93 | - */ |
|
94 | - public function getServer() { |
|
95 | - return $this->server; |
|
96 | - } |
|
90 | + /** |
|
91 | + * @return null|Server |
|
92 | + * @since 9.0.0 |
|
93 | + */ |
|
94 | + public function getServer() { |
|
95 | + return $this->server; |
|
96 | + } |
|
97 | 97 | } |
@@ -29,11 +29,11 @@ |
||
29 | 29 | */ |
30 | 30 | interface IValidator { |
31 | 31 | |
32 | - /** |
|
33 | - * @param string $subject |
|
34 | - * @param array[] $parameters |
|
35 | - * @throws InvalidObjectExeption |
|
36 | - * @since 11.0.0 |
|
37 | - */ |
|
38 | - public function validate($subject, array $parameters); |
|
32 | + /** |
|
33 | + * @param string $subject |
|
34 | + * @param array[] $parameters |
|
35 | + * @throws InvalidObjectExeption |
|
36 | + * @since 11.0.0 |
|
37 | + */ |
|
38 | + public function validate($subject, array $parameters); |
|
39 | 39 | } |
@@ -56,479 +56,479 @@ |
||
56 | 56 | */ |
57 | 57 | interface IServerContainer extends IContainer { |
58 | 58 | |
59 | - /** |
|
60 | - * The contacts manager will act as a broker between consumers for contacts information and |
|
61 | - * providers which actual deliver the contact information. |
|
62 | - * |
|
63 | - * @return \OCP\Contacts\IManager |
|
64 | - * @since 6.0.0 |
|
65 | - */ |
|
66 | - public function getContactsManager(); |
|
67 | - |
|
68 | - /** |
|
69 | - * The current request object holding all information about the request currently being processed |
|
70 | - * is returned from this method. |
|
71 | - * In case the current execution was not initiated by a web request null is returned |
|
72 | - * |
|
73 | - * @return \OCP\IRequest |
|
74 | - * @since 6.0.0 |
|
75 | - */ |
|
76 | - public function getRequest(); |
|
77 | - |
|
78 | - /** |
|
79 | - * Returns the preview manager which can create preview images for a given file |
|
80 | - * |
|
81 | - * @return \OCP\IPreview |
|
82 | - * @since 6.0.0 |
|
83 | - */ |
|
84 | - public function getPreviewManager(); |
|
85 | - |
|
86 | - /** |
|
87 | - * Returns the tag manager which can get and set tags for different object types |
|
88 | - * |
|
89 | - * @see \OCP\ITagManager::load() |
|
90 | - * @return \OCP\ITagManager |
|
91 | - * @since 6.0.0 |
|
92 | - */ |
|
93 | - public function getTagManager(); |
|
94 | - |
|
95 | - /** |
|
96 | - * Returns the root folder of ownCloud's data directory |
|
97 | - * |
|
98 | - * @return \OCP\Files\IRootFolder |
|
99 | - * @since 6.0.0 - between 6.0.0 and 8.0.0 this returned \OCP\Files\Folder |
|
100 | - */ |
|
101 | - public function getRootFolder(); |
|
102 | - |
|
103 | - /** |
|
104 | - * Returns a view to ownCloud's files folder |
|
105 | - * |
|
106 | - * @param string $userId user ID |
|
107 | - * @return \OCP\Files\Folder |
|
108 | - * @since 6.0.0 - parameter $userId was added in 8.0.0 |
|
109 | - * @see getUserFolder in \OCP\Files\IRootFolder |
|
110 | - */ |
|
111 | - public function getUserFolder($userId = null); |
|
112 | - |
|
113 | - /** |
|
114 | - * Returns an app-specific view in ownClouds data directory |
|
115 | - * |
|
116 | - * @return \OCP\Files\Folder |
|
117 | - * @since 6.0.0 |
|
118 | - * @deprecated since 9.2.0 use IAppData |
|
119 | - */ |
|
120 | - public function getAppFolder(); |
|
121 | - |
|
122 | - /** |
|
123 | - * Returns a user manager |
|
124 | - * |
|
125 | - * @return \OCP\IUserManager |
|
126 | - * @since 8.0.0 |
|
127 | - */ |
|
128 | - public function getUserManager(); |
|
129 | - |
|
130 | - /** |
|
131 | - * Returns a group manager |
|
132 | - * |
|
133 | - * @return \OCP\IGroupManager |
|
134 | - * @since 8.0.0 |
|
135 | - */ |
|
136 | - public function getGroupManager(); |
|
137 | - |
|
138 | - /** |
|
139 | - * Returns the user session |
|
140 | - * |
|
141 | - * @return \OCP\IUserSession |
|
142 | - * @since 6.0.0 |
|
143 | - */ |
|
144 | - public function getUserSession(); |
|
145 | - |
|
146 | - /** |
|
147 | - * Returns the navigation manager |
|
148 | - * |
|
149 | - * @return \OCP\INavigationManager |
|
150 | - * @since 6.0.0 |
|
151 | - */ |
|
152 | - public function getNavigationManager(); |
|
153 | - |
|
154 | - /** |
|
155 | - * Returns the config manager |
|
156 | - * |
|
157 | - * @return \OCP\IConfig |
|
158 | - * @since 6.0.0 |
|
159 | - */ |
|
160 | - public function getConfig(); |
|
161 | - |
|
162 | - /** |
|
163 | - * Returns a Crypto instance |
|
164 | - * |
|
165 | - * @return \OCP\Security\ICrypto |
|
166 | - * @since 8.0.0 |
|
167 | - */ |
|
168 | - public function getCrypto(); |
|
169 | - |
|
170 | - /** |
|
171 | - * Returns a Hasher instance |
|
172 | - * |
|
173 | - * @return \OCP\Security\IHasher |
|
174 | - * @since 8.0.0 |
|
175 | - */ |
|
176 | - public function getHasher(); |
|
177 | - |
|
178 | - /** |
|
179 | - * Returns a SecureRandom instance |
|
180 | - * |
|
181 | - * @return \OCP\Security\ISecureRandom |
|
182 | - * @since 8.1.0 |
|
183 | - */ |
|
184 | - public function getSecureRandom(); |
|
185 | - |
|
186 | - /** |
|
187 | - * Returns a CredentialsManager instance |
|
188 | - * |
|
189 | - * @return \OCP\Security\ICredentialsManager |
|
190 | - * @since 9.0.0 |
|
191 | - */ |
|
192 | - public function getCredentialsManager(); |
|
193 | - |
|
194 | - /** |
|
195 | - * Returns the app config manager |
|
196 | - * |
|
197 | - * @return \OCP\IAppConfig |
|
198 | - * @since 7.0.0 |
|
199 | - */ |
|
200 | - public function getAppConfig(); |
|
201 | - |
|
202 | - /** |
|
203 | - * @return \OCP\L10N\IFactory |
|
204 | - * @since 8.2.0 |
|
205 | - */ |
|
206 | - public function getL10NFactory(); |
|
207 | - |
|
208 | - /** |
|
209 | - * get an L10N instance |
|
210 | - * @param string $app appid |
|
211 | - * @param string $lang |
|
212 | - * @return \OCP\IL10N |
|
213 | - * @since 6.0.0 - parameter $lang was added in 8.0.0 |
|
214 | - */ |
|
215 | - public function getL10N($app, $lang = null); |
|
216 | - |
|
217 | - /** |
|
218 | - * @return \OC\Encryption\Manager |
|
219 | - * @since 8.1.0 |
|
220 | - */ |
|
221 | - public function getEncryptionManager(); |
|
222 | - |
|
223 | - /** |
|
224 | - * @return \OC\Encryption\File |
|
225 | - * @since 8.1.0 |
|
226 | - */ |
|
227 | - public function getEncryptionFilesHelper(); |
|
228 | - |
|
229 | - /** |
|
230 | - * @return \OCP\Encryption\Keys\IStorage |
|
231 | - * @since 8.1.0 |
|
232 | - */ |
|
233 | - public function getEncryptionKeyStorage(); |
|
234 | - |
|
235 | - /** |
|
236 | - * Returns the URL generator |
|
237 | - * |
|
238 | - * @return \OCP\IURLGenerator |
|
239 | - * @since 6.0.0 |
|
240 | - */ |
|
241 | - public function getURLGenerator(); |
|
242 | - |
|
243 | - /** |
|
244 | - * Returns the Helper |
|
245 | - * |
|
246 | - * @return \OCP\IHelper |
|
247 | - * @since 6.0.0 |
|
248 | - */ |
|
249 | - public function getHelper(); |
|
250 | - |
|
251 | - /** |
|
252 | - * Returns an ICache instance |
|
253 | - * |
|
254 | - * @return \OCP\ICache |
|
255 | - * @since 6.0.0 |
|
256 | - */ |
|
257 | - public function getCache(); |
|
258 | - |
|
259 | - /** |
|
260 | - * Returns an \OCP\CacheFactory instance |
|
261 | - * |
|
262 | - * @return \OCP\ICacheFactory |
|
263 | - * @since 7.0.0 |
|
264 | - */ |
|
265 | - public function getMemCacheFactory(); |
|
266 | - |
|
267 | - /** |
|
268 | - * Returns the current session |
|
269 | - * |
|
270 | - * @return \OCP\ISession |
|
271 | - * @since 6.0.0 |
|
272 | - */ |
|
273 | - public function getSession(); |
|
274 | - |
|
275 | - /** |
|
276 | - * Returns the activity manager |
|
277 | - * |
|
278 | - * @return \OCP\Activity\IManager |
|
279 | - * @since 6.0.0 |
|
280 | - */ |
|
281 | - public function getActivityManager(); |
|
282 | - |
|
283 | - /** |
|
284 | - * Returns the current session |
|
285 | - * |
|
286 | - * @return \OCP\IDBConnection |
|
287 | - * @since 6.0.0 |
|
288 | - */ |
|
289 | - public function getDatabaseConnection(); |
|
290 | - |
|
291 | - /** |
|
292 | - * Returns an avatar manager, used for avatar functionality |
|
293 | - * |
|
294 | - * @return \OCP\IAvatarManager |
|
295 | - * @since 6.0.0 |
|
296 | - */ |
|
297 | - public function getAvatarManager(); |
|
298 | - |
|
299 | - /** |
|
300 | - * Returns an job list for controlling background jobs |
|
301 | - * |
|
302 | - * @return \OCP\BackgroundJob\IJobList |
|
303 | - * @since 7.0.0 |
|
304 | - */ |
|
305 | - public function getJobList(); |
|
306 | - |
|
307 | - /** |
|
308 | - * Returns a logger instance |
|
309 | - * |
|
310 | - * @return \OCP\ILogger |
|
311 | - * @since 8.0.0 |
|
312 | - */ |
|
313 | - public function getLogger(); |
|
314 | - |
|
315 | - /** |
|
316 | - * Returns a router for generating and matching urls |
|
317 | - * |
|
318 | - * @return \OCP\Route\IRouter |
|
319 | - * @since 7.0.0 |
|
320 | - */ |
|
321 | - public function getRouter(); |
|
322 | - |
|
323 | - /** |
|
324 | - * Returns a search instance |
|
325 | - * |
|
326 | - * @return \OCP\ISearch |
|
327 | - * @since 7.0.0 |
|
328 | - */ |
|
329 | - public function getSearch(); |
|
330 | - |
|
331 | - /** |
|
332 | - * Get the certificate manager for the user |
|
333 | - * |
|
334 | - * @param string $userId (optional) if not specified the current loggedin user is used, use null to get the system certificate manager |
|
335 | - * @return \OCP\ICertificateManager | null if $userId is null and no user is logged in |
|
336 | - * @since 8.0.0 |
|
337 | - */ |
|
338 | - public function getCertificateManager($userId = null); |
|
339 | - |
|
340 | - /** |
|
341 | - * Create a new event source |
|
342 | - * |
|
343 | - * @return \OCP\IEventSource |
|
344 | - * @since 8.0.0 |
|
345 | - */ |
|
346 | - public function createEventSource(); |
|
347 | - |
|
348 | - /** |
|
349 | - * Returns an instance of the HTTP helper class |
|
350 | - * @return \OC\HTTPHelper |
|
351 | - * @deprecated 8.1.0 Use \OCP\Http\Client\IClientService |
|
352 | - * @since 8.0.0 |
|
353 | - */ |
|
354 | - public function getHTTPHelper(); |
|
355 | - |
|
356 | - /** |
|
357 | - * Returns an instance of the HTTP client service |
|
358 | - * |
|
359 | - * @return \OCP\Http\Client\IClientService |
|
360 | - * @since 8.1.0 |
|
361 | - */ |
|
362 | - public function getHTTPClientService(); |
|
363 | - |
|
364 | - /** |
|
365 | - * Get the active event logger |
|
366 | - * |
|
367 | - * @return \OCP\Diagnostics\IEventLogger |
|
368 | - * @since 8.0.0 |
|
369 | - */ |
|
370 | - public function getEventLogger(); |
|
371 | - |
|
372 | - /** |
|
373 | - * Get the active query logger |
|
374 | - * |
|
375 | - * The returned logger only logs data when debug mode is enabled |
|
376 | - * |
|
377 | - * @return \OCP\Diagnostics\IQueryLogger |
|
378 | - * @since 8.0.0 |
|
379 | - */ |
|
380 | - public function getQueryLogger(); |
|
381 | - |
|
382 | - /** |
|
383 | - * Get the manager for temporary files and folders |
|
384 | - * |
|
385 | - * @return \OCP\ITempManager |
|
386 | - * @since 8.0.0 |
|
387 | - */ |
|
388 | - public function getTempManager(); |
|
389 | - |
|
390 | - /** |
|
391 | - * Get the app manager |
|
392 | - * |
|
393 | - * @return \OCP\App\IAppManager |
|
394 | - * @since 8.0.0 |
|
395 | - */ |
|
396 | - public function getAppManager(); |
|
397 | - |
|
398 | - /** |
|
399 | - * Get the webroot |
|
400 | - * |
|
401 | - * @return string |
|
402 | - * @since 8.0.0 |
|
403 | - */ |
|
404 | - public function getWebRoot(); |
|
405 | - |
|
406 | - /** |
|
407 | - * @return \OCP\Files\Config\IMountProviderCollection |
|
408 | - * @since 8.0.0 |
|
409 | - */ |
|
410 | - public function getMountProviderCollection(); |
|
411 | - |
|
412 | - /** |
|
413 | - * Get the IniWrapper |
|
414 | - * |
|
415 | - * @return \bantu\IniGetWrapper\IniGetWrapper |
|
416 | - * @since 8.0.0 |
|
417 | - */ |
|
418 | - public function getIniWrapper(); |
|
419 | - /** |
|
420 | - * @return \OCP\Command\IBus |
|
421 | - * @since 8.1.0 |
|
422 | - */ |
|
423 | - public function getCommandBus(); |
|
424 | - |
|
425 | - /** |
|
426 | - * Creates a new mailer |
|
427 | - * |
|
428 | - * @return \OCP\Mail\IMailer |
|
429 | - * @since 8.1.0 |
|
430 | - */ |
|
431 | - public function getMailer(); |
|
432 | - |
|
433 | - /** |
|
434 | - * Get the locking provider |
|
435 | - * |
|
436 | - * @return \OCP\Lock\ILockingProvider |
|
437 | - * @since 8.1.0 |
|
438 | - */ |
|
439 | - public function getLockingProvider(); |
|
440 | - |
|
441 | - /** |
|
442 | - * @return \OCP\Files\Mount\IMountManager |
|
443 | - * @since 8.2.0 |
|
444 | - */ |
|
445 | - public function getMountManager(); |
|
446 | - |
|
447 | - /** |
|
448 | - * Get the MimeTypeDetector |
|
449 | - * |
|
450 | - * @return \OCP\Files\IMimeTypeDetector |
|
451 | - * @since 8.2.0 |
|
452 | - */ |
|
453 | - public function getMimeTypeDetector(); |
|
454 | - |
|
455 | - /** |
|
456 | - * Get the MimeTypeLoader |
|
457 | - * |
|
458 | - * @return \OCP\Files\IMimeTypeLoader |
|
459 | - * @since 8.2.0 |
|
460 | - */ |
|
461 | - public function getMimeTypeLoader(); |
|
462 | - |
|
463 | - /** |
|
464 | - * Get the EventDispatcher |
|
465 | - * |
|
466 | - * @return EventDispatcherInterface |
|
467 | - * @since 8.2.0 |
|
468 | - */ |
|
469 | - public function getEventDispatcher(); |
|
470 | - |
|
471 | - /** |
|
472 | - * Get the Notification Manager |
|
473 | - * |
|
474 | - * @return \OCP\Notification\IManager |
|
475 | - * @since 9.0.0 |
|
476 | - */ |
|
477 | - public function getNotificationManager(); |
|
478 | - |
|
479 | - /** |
|
480 | - * @return \OCP\Comments\ICommentsManager |
|
481 | - * @since 9.0.0 |
|
482 | - */ |
|
483 | - public function getCommentsManager(); |
|
484 | - |
|
485 | - /** |
|
486 | - * Returns the system-tag manager |
|
487 | - * |
|
488 | - * @return \OCP\SystemTag\ISystemTagManager |
|
489 | - * |
|
490 | - * @since 9.0.0 |
|
491 | - */ |
|
492 | - public function getSystemTagManager(); |
|
493 | - |
|
494 | - /** |
|
495 | - * Returns the system-tag object mapper |
|
496 | - * |
|
497 | - * @return \OCP\SystemTag\ISystemTagObjectMapper |
|
498 | - * |
|
499 | - * @since 9.0.0 |
|
500 | - */ |
|
501 | - public function getSystemTagObjectMapper(); |
|
502 | - |
|
503 | - /** |
|
504 | - * Returns the share manager |
|
505 | - * |
|
506 | - * @return \OCP\Share\IManager |
|
507 | - * @since 9.0.0 |
|
508 | - */ |
|
509 | - public function getShareManager(); |
|
510 | - |
|
511 | - /** |
|
512 | - * @return IContentSecurityPolicyManager |
|
513 | - * @since 9.0.0 |
|
514 | - */ |
|
515 | - public function getContentSecurityPolicyManager(); |
|
516 | - |
|
517 | - /** |
|
518 | - * @return \OCP\IDateTimeZone |
|
519 | - * @since 8.0.0 |
|
520 | - */ |
|
521 | - public function getDateTimeZone(); |
|
522 | - |
|
523 | - /** |
|
524 | - * @return \OCP\IDateTimeFormatter |
|
525 | - * @since 8.0.0 |
|
526 | - */ |
|
527 | - public function getDateTimeFormatter(); |
|
528 | - |
|
529 | - /** |
|
530 | - * @return \OCP\Federation\ICloudIdManager |
|
531 | - * @since 12.0.0 |
|
532 | - */ |
|
533 | - public function getCloudIdManager(); |
|
59 | + /** |
|
60 | + * The contacts manager will act as a broker between consumers for contacts information and |
|
61 | + * providers which actual deliver the contact information. |
|
62 | + * |
|
63 | + * @return \OCP\Contacts\IManager |
|
64 | + * @since 6.0.0 |
|
65 | + */ |
|
66 | + public function getContactsManager(); |
|
67 | + |
|
68 | + /** |
|
69 | + * The current request object holding all information about the request currently being processed |
|
70 | + * is returned from this method. |
|
71 | + * In case the current execution was not initiated by a web request null is returned |
|
72 | + * |
|
73 | + * @return \OCP\IRequest |
|
74 | + * @since 6.0.0 |
|
75 | + */ |
|
76 | + public function getRequest(); |
|
77 | + |
|
78 | + /** |
|
79 | + * Returns the preview manager which can create preview images for a given file |
|
80 | + * |
|
81 | + * @return \OCP\IPreview |
|
82 | + * @since 6.0.0 |
|
83 | + */ |
|
84 | + public function getPreviewManager(); |
|
85 | + |
|
86 | + /** |
|
87 | + * Returns the tag manager which can get and set tags for different object types |
|
88 | + * |
|
89 | + * @see \OCP\ITagManager::load() |
|
90 | + * @return \OCP\ITagManager |
|
91 | + * @since 6.0.0 |
|
92 | + */ |
|
93 | + public function getTagManager(); |
|
94 | + |
|
95 | + /** |
|
96 | + * Returns the root folder of ownCloud's data directory |
|
97 | + * |
|
98 | + * @return \OCP\Files\IRootFolder |
|
99 | + * @since 6.0.0 - between 6.0.0 and 8.0.0 this returned \OCP\Files\Folder |
|
100 | + */ |
|
101 | + public function getRootFolder(); |
|
102 | + |
|
103 | + /** |
|
104 | + * Returns a view to ownCloud's files folder |
|
105 | + * |
|
106 | + * @param string $userId user ID |
|
107 | + * @return \OCP\Files\Folder |
|
108 | + * @since 6.0.0 - parameter $userId was added in 8.0.0 |
|
109 | + * @see getUserFolder in \OCP\Files\IRootFolder |
|
110 | + */ |
|
111 | + public function getUserFolder($userId = null); |
|
112 | + |
|
113 | + /** |
|
114 | + * Returns an app-specific view in ownClouds data directory |
|
115 | + * |
|
116 | + * @return \OCP\Files\Folder |
|
117 | + * @since 6.0.0 |
|
118 | + * @deprecated since 9.2.0 use IAppData |
|
119 | + */ |
|
120 | + public function getAppFolder(); |
|
121 | + |
|
122 | + /** |
|
123 | + * Returns a user manager |
|
124 | + * |
|
125 | + * @return \OCP\IUserManager |
|
126 | + * @since 8.0.0 |
|
127 | + */ |
|
128 | + public function getUserManager(); |
|
129 | + |
|
130 | + /** |
|
131 | + * Returns a group manager |
|
132 | + * |
|
133 | + * @return \OCP\IGroupManager |
|
134 | + * @since 8.0.0 |
|
135 | + */ |
|
136 | + public function getGroupManager(); |
|
137 | + |
|
138 | + /** |
|
139 | + * Returns the user session |
|
140 | + * |
|
141 | + * @return \OCP\IUserSession |
|
142 | + * @since 6.0.0 |
|
143 | + */ |
|
144 | + public function getUserSession(); |
|
145 | + |
|
146 | + /** |
|
147 | + * Returns the navigation manager |
|
148 | + * |
|
149 | + * @return \OCP\INavigationManager |
|
150 | + * @since 6.0.0 |
|
151 | + */ |
|
152 | + public function getNavigationManager(); |
|
153 | + |
|
154 | + /** |
|
155 | + * Returns the config manager |
|
156 | + * |
|
157 | + * @return \OCP\IConfig |
|
158 | + * @since 6.0.0 |
|
159 | + */ |
|
160 | + public function getConfig(); |
|
161 | + |
|
162 | + /** |
|
163 | + * Returns a Crypto instance |
|
164 | + * |
|
165 | + * @return \OCP\Security\ICrypto |
|
166 | + * @since 8.0.0 |
|
167 | + */ |
|
168 | + public function getCrypto(); |
|
169 | + |
|
170 | + /** |
|
171 | + * Returns a Hasher instance |
|
172 | + * |
|
173 | + * @return \OCP\Security\IHasher |
|
174 | + * @since 8.0.0 |
|
175 | + */ |
|
176 | + public function getHasher(); |
|
177 | + |
|
178 | + /** |
|
179 | + * Returns a SecureRandom instance |
|
180 | + * |
|
181 | + * @return \OCP\Security\ISecureRandom |
|
182 | + * @since 8.1.0 |
|
183 | + */ |
|
184 | + public function getSecureRandom(); |
|
185 | + |
|
186 | + /** |
|
187 | + * Returns a CredentialsManager instance |
|
188 | + * |
|
189 | + * @return \OCP\Security\ICredentialsManager |
|
190 | + * @since 9.0.0 |
|
191 | + */ |
|
192 | + public function getCredentialsManager(); |
|
193 | + |
|
194 | + /** |
|
195 | + * Returns the app config manager |
|
196 | + * |
|
197 | + * @return \OCP\IAppConfig |
|
198 | + * @since 7.0.0 |
|
199 | + */ |
|
200 | + public function getAppConfig(); |
|
201 | + |
|
202 | + /** |
|
203 | + * @return \OCP\L10N\IFactory |
|
204 | + * @since 8.2.0 |
|
205 | + */ |
|
206 | + public function getL10NFactory(); |
|
207 | + |
|
208 | + /** |
|
209 | + * get an L10N instance |
|
210 | + * @param string $app appid |
|
211 | + * @param string $lang |
|
212 | + * @return \OCP\IL10N |
|
213 | + * @since 6.0.0 - parameter $lang was added in 8.0.0 |
|
214 | + */ |
|
215 | + public function getL10N($app, $lang = null); |
|
216 | + |
|
217 | + /** |
|
218 | + * @return \OC\Encryption\Manager |
|
219 | + * @since 8.1.0 |
|
220 | + */ |
|
221 | + public function getEncryptionManager(); |
|
222 | + |
|
223 | + /** |
|
224 | + * @return \OC\Encryption\File |
|
225 | + * @since 8.1.0 |
|
226 | + */ |
|
227 | + public function getEncryptionFilesHelper(); |
|
228 | + |
|
229 | + /** |
|
230 | + * @return \OCP\Encryption\Keys\IStorage |
|
231 | + * @since 8.1.0 |
|
232 | + */ |
|
233 | + public function getEncryptionKeyStorage(); |
|
234 | + |
|
235 | + /** |
|
236 | + * Returns the URL generator |
|
237 | + * |
|
238 | + * @return \OCP\IURLGenerator |
|
239 | + * @since 6.0.0 |
|
240 | + */ |
|
241 | + public function getURLGenerator(); |
|
242 | + |
|
243 | + /** |
|
244 | + * Returns the Helper |
|
245 | + * |
|
246 | + * @return \OCP\IHelper |
|
247 | + * @since 6.0.0 |
|
248 | + */ |
|
249 | + public function getHelper(); |
|
250 | + |
|
251 | + /** |
|
252 | + * Returns an ICache instance |
|
253 | + * |
|
254 | + * @return \OCP\ICache |
|
255 | + * @since 6.0.0 |
|
256 | + */ |
|
257 | + public function getCache(); |
|
258 | + |
|
259 | + /** |
|
260 | + * Returns an \OCP\CacheFactory instance |
|
261 | + * |
|
262 | + * @return \OCP\ICacheFactory |
|
263 | + * @since 7.0.0 |
|
264 | + */ |
|
265 | + public function getMemCacheFactory(); |
|
266 | + |
|
267 | + /** |
|
268 | + * Returns the current session |
|
269 | + * |
|
270 | + * @return \OCP\ISession |
|
271 | + * @since 6.0.0 |
|
272 | + */ |
|
273 | + public function getSession(); |
|
274 | + |
|
275 | + /** |
|
276 | + * Returns the activity manager |
|
277 | + * |
|
278 | + * @return \OCP\Activity\IManager |
|
279 | + * @since 6.0.0 |
|
280 | + */ |
|
281 | + public function getActivityManager(); |
|
282 | + |
|
283 | + /** |
|
284 | + * Returns the current session |
|
285 | + * |
|
286 | + * @return \OCP\IDBConnection |
|
287 | + * @since 6.0.0 |
|
288 | + */ |
|
289 | + public function getDatabaseConnection(); |
|
290 | + |
|
291 | + /** |
|
292 | + * Returns an avatar manager, used for avatar functionality |
|
293 | + * |
|
294 | + * @return \OCP\IAvatarManager |
|
295 | + * @since 6.0.0 |
|
296 | + */ |
|
297 | + public function getAvatarManager(); |
|
298 | + |
|
299 | + /** |
|
300 | + * Returns an job list for controlling background jobs |
|
301 | + * |
|
302 | + * @return \OCP\BackgroundJob\IJobList |
|
303 | + * @since 7.0.0 |
|
304 | + */ |
|
305 | + public function getJobList(); |
|
306 | + |
|
307 | + /** |
|
308 | + * Returns a logger instance |
|
309 | + * |
|
310 | + * @return \OCP\ILogger |
|
311 | + * @since 8.0.0 |
|
312 | + */ |
|
313 | + public function getLogger(); |
|
314 | + |
|
315 | + /** |
|
316 | + * Returns a router for generating and matching urls |
|
317 | + * |
|
318 | + * @return \OCP\Route\IRouter |
|
319 | + * @since 7.0.0 |
|
320 | + */ |
|
321 | + public function getRouter(); |
|
322 | + |
|
323 | + /** |
|
324 | + * Returns a search instance |
|
325 | + * |
|
326 | + * @return \OCP\ISearch |
|
327 | + * @since 7.0.0 |
|
328 | + */ |
|
329 | + public function getSearch(); |
|
330 | + |
|
331 | + /** |
|
332 | + * Get the certificate manager for the user |
|
333 | + * |
|
334 | + * @param string $userId (optional) if not specified the current loggedin user is used, use null to get the system certificate manager |
|
335 | + * @return \OCP\ICertificateManager | null if $userId is null and no user is logged in |
|
336 | + * @since 8.0.0 |
|
337 | + */ |
|
338 | + public function getCertificateManager($userId = null); |
|
339 | + |
|
340 | + /** |
|
341 | + * Create a new event source |
|
342 | + * |
|
343 | + * @return \OCP\IEventSource |
|
344 | + * @since 8.0.0 |
|
345 | + */ |
|
346 | + public function createEventSource(); |
|
347 | + |
|
348 | + /** |
|
349 | + * Returns an instance of the HTTP helper class |
|
350 | + * @return \OC\HTTPHelper |
|
351 | + * @deprecated 8.1.0 Use \OCP\Http\Client\IClientService |
|
352 | + * @since 8.0.0 |
|
353 | + */ |
|
354 | + public function getHTTPHelper(); |
|
355 | + |
|
356 | + /** |
|
357 | + * Returns an instance of the HTTP client service |
|
358 | + * |
|
359 | + * @return \OCP\Http\Client\IClientService |
|
360 | + * @since 8.1.0 |
|
361 | + */ |
|
362 | + public function getHTTPClientService(); |
|
363 | + |
|
364 | + /** |
|
365 | + * Get the active event logger |
|
366 | + * |
|
367 | + * @return \OCP\Diagnostics\IEventLogger |
|
368 | + * @since 8.0.0 |
|
369 | + */ |
|
370 | + public function getEventLogger(); |
|
371 | + |
|
372 | + /** |
|
373 | + * Get the active query logger |
|
374 | + * |
|
375 | + * The returned logger only logs data when debug mode is enabled |
|
376 | + * |
|
377 | + * @return \OCP\Diagnostics\IQueryLogger |
|
378 | + * @since 8.0.0 |
|
379 | + */ |
|
380 | + public function getQueryLogger(); |
|
381 | + |
|
382 | + /** |
|
383 | + * Get the manager for temporary files and folders |
|
384 | + * |
|
385 | + * @return \OCP\ITempManager |
|
386 | + * @since 8.0.0 |
|
387 | + */ |
|
388 | + public function getTempManager(); |
|
389 | + |
|
390 | + /** |
|
391 | + * Get the app manager |
|
392 | + * |
|
393 | + * @return \OCP\App\IAppManager |
|
394 | + * @since 8.0.0 |
|
395 | + */ |
|
396 | + public function getAppManager(); |
|
397 | + |
|
398 | + /** |
|
399 | + * Get the webroot |
|
400 | + * |
|
401 | + * @return string |
|
402 | + * @since 8.0.0 |
|
403 | + */ |
|
404 | + public function getWebRoot(); |
|
405 | + |
|
406 | + /** |
|
407 | + * @return \OCP\Files\Config\IMountProviderCollection |
|
408 | + * @since 8.0.0 |
|
409 | + */ |
|
410 | + public function getMountProviderCollection(); |
|
411 | + |
|
412 | + /** |
|
413 | + * Get the IniWrapper |
|
414 | + * |
|
415 | + * @return \bantu\IniGetWrapper\IniGetWrapper |
|
416 | + * @since 8.0.0 |
|
417 | + */ |
|
418 | + public function getIniWrapper(); |
|
419 | + /** |
|
420 | + * @return \OCP\Command\IBus |
|
421 | + * @since 8.1.0 |
|
422 | + */ |
|
423 | + public function getCommandBus(); |
|
424 | + |
|
425 | + /** |
|
426 | + * Creates a new mailer |
|
427 | + * |
|
428 | + * @return \OCP\Mail\IMailer |
|
429 | + * @since 8.1.0 |
|
430 | + */ |
|
431 | + public function getMailer(); |
|
432 | + |
|
433 | + /** |
|
434 | + * Get the locking provider |
|
435 | + * |
|
436 | + * @return \OCP\Lock\ILockingProvider |
|
437 | + * @since 8.1.0 |
|
438 | + */ |
|
439 | + public function getLockingProvider(); |
|
440 | + |
|
441 | + /** |
|
442 | + * @return \OCP\Files\Mount\IMountManager |
|
443 | + * @since 8.2.0 |
|
444 | + */ |
|
445 | + public function getMountManager(); |
|
446 | + |
|
447 | + /** |
|
448 | + * Get the MimeTypeDetector |
|
449 | + * |
|
450 | + * @return \OCP\Files\IMimeTypeDetector |
|
451 | + * @since 8.2.0 |
|
452 | + */ |
|
453 | + public function getMimeTypeDetector(); |
|
454 | + |
|
455 | + /** |
|
456 | + * Get the MimeTypeLoader |
|
457 | + * |
|
458 | + * @return \OCP\Files\IMimeTypeLoader |
|
459 | + * @since 8.2.0 |
|
460 | + */ |
|
461 | + public function getMimeTypeLoader(); |
|
462 | + |
|
463 | + /** |
|
464 | + * Get the EventDispatcher |
|
465 | + * |
|
466 | + * @return EventDispatcherInterface |
|
467 | + * @since 8.2.0 |
|
468 | + */ |
|
469 | + public function getEventDispatcher(); |
|
470 | + |
|
471 | + /** |
|
472 | + * Get the Notification Manager |
|
473 | + * |
|
474 | + * @return \OCP\Notification\IManager |
|
475 | + * @since 9.0.0 |
|
476 | + */ |
|
477 | + public function getNotificationManager(); |
|
478 | + |
|
479 | + /** |
|
480 | + * @return \OCP\Comments\ICommentsManager |
|
481 | + * @since 9.0.0 |
|
482 | + */ |
|
483 | + public function getCommentsManager(); |
|
484 | + |
|
485 | + /** |
|
486 | + * Returns the system-tag manager |
|
487 | + * |
|
488 | + * @return \OCP\SystemTag\ISystemTagManager |
|
489 | + * |
|
490 | + * @since 9.0.0 |
|
491 | + */ |
|
492 | + public function getSystemTagManager(); |
|
493 | + |
|
494 | + /** |
|
495 | + * Returns the system-tag object mapper |
|
496 | + * |
|
497 | + * @return \OCP\SystemTag\ISystemTagObjectMapper |
|
498 | + * |
|
499 | + * @since 9.0.0 |
|
500 | + */ |
|
501 | + public function getSystemTagObjectMapper(); |
|
502 | + |
|
503 | + /** |
|
504 | + * Returns the share manager |
|
505 | + * |
|
506 | + * @return \OCP\Share\IManager |
|
507 | + * @since 9.0.0 |
|
508 | + */ |
|
509 | + public function getShareManager(); |
|
510 | + |
|
511 | + /** |
|
512 | + * @return IContentSecurityPolicyManager |
|
513 | + * @since 9.0.0 |
|
514 | + */ |
|
515 | + public function getContentSecurityPolicyManager(); |
|
516 | + |
|
517 | + /** |
|
518 | + * @return \OCP\IDateTimeZone |
|
519 | + * @since 8.0.0 |
|
520 | + */ |
|
521 | + public function getDateTimeZone(); |
|
522 | + |
|
523 | + /** |
|
524 | + * @return \OCP\IDateTimeFormatter |
|
525 | + * @since 8.0.0 |
|
526 | + */ |
|
527 | + public function getDateTimeFormatter(); |
|
528 | + |
|
529 | + /** |
|
530 | + * @return \OCP\Federation\ICloudIdManager |
|
531 | + * @since 12.0.0 |
|
532 | + */ |
|
533 | + public function getCloudIdManager(); |
|
534 | 534 | } |
@@ -26,9 +26,9 @@ |
||
26 | 26 | * @since 8.2.0 |
27 | 27 | */ |
28 | 28 | interface IQueryFunction { |
29 | - /** |
|
30 | - * @return string |
|
31 | - * @since 8.2.0 |
|
32 | - */ |
|
33 | - public function __toString(); |
|
29 | + /** |
|
30 | + * @return string |
|
31 | + * @since 8.2.0 |
|
32 | + */ |
|
33 | + public function __toString(); |
|
34 | 34 | } |
@@ -26,9 +26,9 @@ |
||
26 | 26 | * @since 8.2.0 |
27 | 27 | */ |
28 | 28 | interface ILiteral { |
29 | - /** |
|
30 | - * @return string |
|
31 | - * @since 8.2.0 |
|
32 | - */ |
|
33 | - public function __toString(); |
|
29 | + /** |
|
30 | + * @return string |
|
31 | + * @since 8.2.0 |
|
32 | + */ |
|
33 | + public function __toString(); |
|
34 | 34 | } |
@@ -28,39 +28,39 @@ |
||
28 | 28 | * @since 8.2.0 |
29 | 29 | */ |
30 | 30 | interface ICompositeExpression { |
31 | - /** |
|
32 | - * Adds multiple parts to composite expression. |
|
33 | - * |
|
34 | - * @param array $parts |
|
35 | - * |
|
36 | - * @return ICompositeExpression |
|
37 | - * @since 8.2.0 |
|
38 | - */ |
|
39 | - public function addMultiple(array $parts = array()); |
|
31 | + /** |
|
32 | + * Adds multiple parts to composite expression. |
|
33 | + * |
|
34 | + * @param array $parts |
|
35 | + * |
|
36 | + * @return ICompositeExpression |
|
37 | + * @since 8.2.0 |
|
38 | + */ |
|
39 | + public function addMultiple(array $parts = array()); |
|
40 | 40 | |
41 | - /** |
|
42 | - * Adds an expression to composite expression. |
|
43 | - * |
|
44 | - * @param mixed $part |
|
45 | - * |
|
46 | - * @return ICompositeExpression |
|
47 | - * @since 8.2.0 |
|
48 | - */ |
|
49 | - public function add($part); |
|
41 | + /** |
|
42 | + * Adds an expression to composite expression. |
|
43 | + * |
|
44 | + * @param mixed $part |
|
45 | + * |
|
46 | + * @return ICompositeExpression |
|
47 | + * @since 8.2.0 |
|
48 | + */ |
|
49 | + public function add($part); |
|
50 | 50 | |
51 | - /** |
|
52 | - * Retrieves the amount of expressions on composite expression. |
|
53 | - * |
|
54 | - * @return integer |
|
55 | - * @since 8.2.0 |
|
56 | - */ |
|
57 | - public function count(); |
|
51 | + /** |
|
52 | + * Retrieves the amount of expressions on composite expression. |
|
53 | + * |
|
54 | + * @return integer |
|
55 | + * @since 8.2.0 |
|
56 | + */ |
|
57 | + public function count(); |
|
58 | 58 | |
59 | - /** |
|
60 | - * Returns the type of this composite expression (AND/OR). |
|
61 | - * |
|
62 | - * @return string |
|
63 | - * @since 8.2.0 |
|
64 | - */ |
|
65 | - public function getType(); |
|
59 | + /** |
|
60 | + * Returns the type of this composite expression (AND/OR). |
|
61 | + * |
|
62 | + * @return string |
|
63 | + * @since 8.2.0 |
|
64 | + */ |
|
65 | + public function getType(); |
|
66 | 66 | } |