@@ -30,13 +30,13 @@ |
||
30 | 30 | */ |
31 | 31 | class SabrePluginException extends Exception { |
32 | 32 | |
33 | - /** |
|
34 | - * Returns the HTTP statuscode for this exception |
|
35 | - * |
|
36 | - * @return int |
|
37 | - * @since 8.2.0 |
|
38 | - */ |
|
39 | - public function getHTTPCode() { |
|
40 | - return $this->code; |
|
41 | - } |
|
33 | + /** |
|
34 | + * Returns the HTTP statuscode for this exception |
|
35 | + * |
|
36 | + * @return int |
|
37 | + * @since 8.2.0 |
|
38 | + */ |
|
39 | + public function getHTTPCode() { |
|
40 | + return $this->code; |
|
41 | + } |
|
42 | 42 | } |
@@ -32,56 +32,56 @@ |
||
32 | 32 | * @since 7.0.0 |
33 | 33 | */ |
34 | 34 | interface IJob { |
35 | - /** |
|
36 | - * Run the background job with the registered argument |
|
37 | - * |
|
38 | - * @param \OCP\BackgroundJob\IJobList $jobList The job list that manages the state of this job |
|
39 | - * @param ILogger $logger |
|
40 | - * @since 7.0.0 |
|
41 | - */ |
|
42 | - public function execute($jobList, ILogger $logger = null); |
|
35 | + /** |
|
36 | + * Run the background job with the registered argument |
|
37 | + * |
|
38 | + * @param \OCP\BackgroundJob\IJobList $jobList The job list that manages the state of this job |
|
39 | + * @param ILogger $logger |
|
40 | + * @since 7.0.0 |
|
41 | + */ |
|
42 | + public function execute($jobList, ILogger $logger = null); |
|
43 | 43 | |
44 | - /** |
|
45 | - * @param int $id |
|
46 | - * @since 7.0.0 |
|
47 | - */ |
|
48 | - public function setId($id); |
|
44 | + /** |
|
45 | + * @param int $id |
|
46 | + * @since 7.0.0 |
|
47 | + */ |
|
48 | + public function setId($id); |
|
49 | 49 | |
50 | - /** |
|
51 | - * @param int $lastRun |
|
52 | - * @since 7.0.0 |
|
53 | - */ |
|
54 | - public function setLastRun($lastRun); |
|
50 | + /** |
|
51 | + * @param int $lastRun |
|
52 | + * @since 7.0.0 |
|
53 | + */ |
|
54 | + public function setLastRun($lastRun); |
|
55 | 55 | |
56 | - /** |
|
57 | - * @param mixed $argument |
|
58 | - * @since 7.0.0 |
|
59 | - */ |
|
60 | - public function setArgument($argument); |
|
56 | + /** |
|
57 | + * @param mixed $argument |
|
58 | + * @since 7.0.0 |
|
59 | + */ |
|
60 | + public function setArgument($argument); |
|
61 | 61 | |
62 | - /** |
|
63 | - * Get the id of the background job |
|
64 | - * This id is determined by the job list when a job is added to the list |
|
65 | - * |
|
66 | - * @return int |
|
67 | - * @since 7.0.0 |
|
68 | - */ |
|
69 | - public function getId(); |
|
62 | + /** |
|
63 | + * Get the id of the background job |
|
64 | + * This id is determined by the job list when a job is added to the list |
|
65 | + * |
|
66 | + * @return int |
|
67 | + * @since 7.0.0 |
|
68 | + */ |
|
69 | + public function getId(); |
|
70 | 70 | |
71 | - /** |
|
72 | - * Get the last time this job was run as unix timestamp |
|
73 | - * |
|
74 | - * @return int |
|
75 | - * @since 7.0.0 |
|
76 | - */ |
|
77 | - public function getLastRun(); |
|
71 | + /** |
|
72 | + * Get the last time this job was run as unix timestamp |
|
73 | + * |
|
74 | + * @return int |
|
75 | + * @since 7.0.0 |
|
76 | + */ |
|
77 | + public function getLastRun(); |
|
78 | 78 | |
79 | - /** |
|
80 | - * Get the argument associated with the background job |
|
81 | - * This is the argument that will be passed to the background job |
|
82 | - * |
|
83 | - * @return mixed |
|
84 | - * @since 7.0.0 |
|
85 | - */ |
|
86 | - public function getArgument(); |
|
79 | + /** |
|
80 | + * Get the argument associated with the background job |
|
81 | + * This is the argument that will be passed to the background job |
|
82 | + * |
|
83 | + * @return mixed |
|
84 | + * @since 7.0.0 |
|
85 | + */ |
|
86 | + public function getArgument(); |
|
87 | 87 | } |
@@ -30,25 +30,25 @@ |
||
30 | 30 | */ |
31 | 31 | interface ISettings { |
32 | 32 | |
33 | - /** |
|
34 | - * @return TemplateResponse returns the instance with all parameters set, ready to be rendered |
|
35 | - * @since 9.1 |
|
36 | - */ |
|
37 | - public function getForm(); |
|
33 | + /** |
|
34 | + * @return TemplateResponse returns the instance with all parameters set, ready to be rendered |
|
35 | + * @since 9.1 |
|
36 | + */ |
|
37 | + public function getForm(); |
|
38 | 38 | |
39 | - /** |
|
40 | - * @return string the section ID, e.g. 'sharing' |
|
41 | - * @since 9.1 |
|
42 | - */ |
|
43 | - public function getSection(); |
|
39 | + /** |
|
40 | + * @return string the section ID, e.g. 'sharing' |
|
41 | + * @since 9.1 |
|
42 | + */ |
|
43 | + public function getSection(); |
|
44 | 44 | |
45 | - /** |
|
46 | - * @return int whether the form should be rather on the top or bottom of |
|
47 | - * the admin section. The forms are arranged in ascending order of the |
|
48 | - * priority values. It is required to return a value between 0 and 100. |
|
49 | - * |
|
50 | - * E.g.: 70 |
|
51 | - * @since 9.1 |
|
52 | - */ |
|
53 | - public function getPriority(); |
|
45 | + /** |
|
46 | + * @return int whether the form should be rather on the top or bottom of |
|
47 | + * the admin section. The forms are arranged in ascending order of the |
|
48 | + * priority values. It is required to return a value between 0 and 100. |
|
49 | + * |
|
50 | + * E.g.: 70 |
|
51 | + * @since 9.1 |
|
52 | + */ |
|
53 | + public function getPriority(); |
|
54 | 54 | } |
@@ -28,31 +28,31 @@ |
||
28 | 28 | * @since 9.1 |
29 | 29 | */ |
30 | 30 | interface ISection { |
31 | - /** |
|
32 | - * returns the ID of the section. It is supposed to be a lower case string, |
|
33 | - * e.g. 'ldap' |
|
34 | - * |
|
35 | - * @returns string |
|
36 | - * @since 9.1 |
|
37 | - */ |
|
38 | - public function getID(); |
|
31 | + /** |
|
32 | + * returns the ID of the section. It is supposed to be a lower case string, |
|
33 | + * e.g. 'ldap' |
|
34 | + * |
|
35 | + * @returns string |
|
36 | + * @since 9.1 |
|
37 | + */ |
|
38 | + public function getID(); |
|
39 | 39 | |
40 | - /** |
|
41 | - * returns the translated name as it should be displayed, e.g. 'LDAP / AD |
|
42 | - * integration'. Use the L10N service to translate it. |
|
43 | - * |
|
44 | - * @return string |
|
45 | - * @since 9.1 |
|
46 | - */ |
|
47 | - public function getName(); |
|
40 | + /** |
|
41 | + * returns the translated name as it should be displayed, e.g. 'LDAP / AD |
|
42 | + * integration'. Use the L10N service to translate it. |
|
43 | + * |
|
44 | + * @return string |
|
45 | + * @since 9.1 |
|
46 | + */ |
|
47 | + public function getName(); |
|
48 | 48 | |
49 | - /** |
|
50 | - * @return int whether the form should be rather on the top or bottom of |
|
51 | - * the settings navigation. The sections are arranged in ascending order of |
|
52 | - * the priority values. It is required to return a value between 0 and 99. |
|
53 | - * |
|
54 | - * E.g.: 70 |
|
55 | - * @since 9.1 |
|
56 | - */ |
|
57 | - public function getPriority(); |
|
49 | + /** |
|
50 | + * @return int whether the form should be rather on the top or bottom of |
|
51 | + * the settings navigation. The sections are arranged in ascending order of |
|
52 | + * the priority values. It is required to return a value between 0 and 99. |
|
53 | + * |
|
54 | + * E.g.: 70 |
|
55 | + * @since 9.1 |
|
56 | + */ |
|
57 | + public function getPriority(); |
|
58 | 58 | } |
@@ -27,72 +27,72 @@ |
||
27 | 27 | * @since 9.1 |
28 | 28 | */ |
29 | 29 | interface IManager { |
30 | - /** |
|
31 | - * @since 9.1.0 |
|
32 | - */ |
|
33 | - const KEY_ADMIN_SETTINGS = 'admin'; |
|
30 | + /** |
|
31 | + * @since 9.1.0 |
|
32 | + */ |
|
33 | + const KEY_ADMIN_SETTINGS = 'admin'; |
|
34 | 34 | |
35 | - /** |
|
36 | - * @since 9.1.0 |
|
37 | - */ |
|
38 | - const KEY_ADMIN_SECTION = 'admin-section'; |
|
35 | + /** |
|
36 | + * @since 9.1.0 |
|
37 | + */ |
|
38 | + const KEY_ADMIN_SECTION = 'admin-section'; |
|
39 | 39 | |
40 | - /** |
|
41 | - * sets up settings according to data specified by an apps info.xml, within |
|
42 | - * the <settings> element. |
|
43 | - * |
|
44 | - * @param array $settings an associative array, allowed keys are as specified |
|
45 | - * by the KEY_ constant of this interface. The value |
|
46 | - * must always be a class name, implement either |
|
47 | - * IAdmin or ISection. I.e. only one section and admin |
|
48 | - * setting can be configured per app. |
|
49 | - * @since 9.1.0 |
|
50 | - */ |
|
51 | - public function setupSettings(array $settings); |
|
40 | + /** |
|
41 | + * sets up settings according to data specified by an apps info.xml, within |
|
42 | + * the <settings> element. |
|
43 | + * |
|
44 | + * @param array $settings an associative array, allowed keys are as specified |
|
45 | + * by the KEY_ constant of this interface. The value |
|
46 | + * must always be a class name, implement either |
|
47 | + * IAdmin or ISection. I.e. only one section and admin |
|
48 | + * setting can be configured per app. |
|
49 | + * @since 9.1.0 |
|
50 | + */ |
|
51 | + public function setupSettings(array $settings); |
|
52 | 52 | |
53 | - /** |
|
54 | - * attempts to remove an apps section and/or settings entry. A listener is |
|
55 | - * added centrally making sure that this method is called ones an app was |
|
56 | - * disabled. |
|
57 | - * |
|
58 | - * What this does not help with is when applications change their settings |
|
59 | - * or section classes during their life time. New entries will be added, |
|
60 | - * but inactive ones will still reside in the database. |
|
61 | - * |
|
62 | - * @param string $appId |
|
63 | - * @since 9.1.0 |
|
64 | - */ |
|
65 | - public function onAppDisabled($appId); |
|
53 | + /** |
|
54 | + * attempts to remove an apps section and/or settings entry. A listener is |
|
55 | + * added centrally making sure that this method is called ones an app was |
|
56 | + * disabled. |
|
57 | + * |
|
58 | + * What this does not help with is when applications change their settings |
|
59 | + * or section classes during their life time. New entries will be added, |
|
60 | + * but inactive ones will still reside in the database. |
|
61 | + * |
|
62 | + * @param string $appId |
|
63 | + * @since 9.1.0 |
|
64 | + */ |
|
65 | + public function onAppDisabled($appId); |
|
66 | 66 | |
67 | - /** |
|
68 | - * The method should check all registered classes whether they are still |
|
69 | - * instantiable and remove them, if not. This method is called by a |
|
70 | - * background job once, after one or more apps were updated. |
|
71 | - * |
|
72 | - * An app`s info.xml can change during an update and make it unknown whether |
|
73 | - * a registered class name was changed or not. An old one would just stay |
|
74 | - * registered. Another case is if an admin takes a radical approach and |
|
75 | - * simply removes an app from the app folder. These unregular checks will |
|
76 | - * take care of such situations. |
|
77 | - * |
|
78 | - * @since 9.1.0 |
|
79 | - */ |
|
80 | - public function checkForOrphanedClassNames(); |
|
67 | + /** |
|
68 | + * The method should check all registered classes whether they are still |
|
69 | + * instantiable and remove them, if not. This method is called by a |
|
70 | + * background job once, after one or more apps were updated. |
|
71 | + * |
|
72 | + * An app`s info.xml can change during an update and make it unknown whether |
|
73 | + * a registered class name was changed or not. An old one would just stay |
|
74 | + * registered. Another case is if an admin takes a radical approach and |
|
75 | + * simply removes an app from the app folder. These unregular checks will |
|
76 | + * take care of such situations. |
|
77 | + * |
|
78 | + * @since 9.1.0 |
|
79 | + */ |
|
80 | + public function checkForOrphanedClassNames(); |
|
81 | 81 | |
82 | - /** |
|
83 | - * returns a list of the admin sections |
|
84 | - * |
|
85 | - * @return array array of ISection[] where key is the priority |
|
86 | - * @since 9.1.0 |
|
87 | - */ |
|
88 | - public function getAdminSections(); |
|
82 | + /** |
|
83 | + * returns a list of the admin sections |
|
84 | + * |
|
85 | + * @return array array of ISection[] where key is the priority |
|
86 | + * @since 9.1.0 |
|
87 | + */ |
|
88 | + public function getAdminSections(); |
|
89 | 89 | |
90 | - /** |
|
91 | - * returns a list of the admin settings |
|
92 | - * |
|
93 | - * @param string $section the section id for which to load the settings |
|
94 | - * @return array array of IAdmin[] where key is the priority |
|
95 | - * @since 9.1.0 |
|
96 | - */ |
|
97 | - public function getAdminSettings($section); |
|
90 | + /** |
|
91 | + * returns a list of the admin settings |
|
92 | + * |
|
93 | + * @param string $section the section id for which to load the settings |
|
94 | + * @return array array of IAdmin[] where key is the priority |
|
95 | + * @since 9.1.0 |
|
96 | + */ |
|
97 | + public function getAdminSettings($section); |
|
98 | 98 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * @since 9.1.0 |
37 | 37 | */ |
38 | - const KEY_ADMIN_SECTION = 'admin-section'; |
|
38 | + const KEY_ADMIN_SECTION = 'admin-section'; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * sets up settings according to data specified by an apps info.xml, within |
@@ -33,65 +33,65 @@ |
||
33 | 33 | */ |
34 | 34 | interface Share_Backend { |
35 | 35 | |
36 | - /** |
|
37 | - * Check if this $itemSource exist for the user |
|
38 | - * @param string $itemSource |
|
39 | - * @param string $uidOwner Owner of the item |
|
40 | - * @return boolean|null Source |
|
41 | - * |
|
42 | - * Return false if the item does not exist for the user |
|
43 | - * @since 5.0.0 |
|
44 | - */ |
|
45 | - public function isValidSource($itemSource, $uidOwner); |
|
36 | + /** |
|
37 | + * Check if this $itemSource exist for the user |
|
38 | + * @param string $itemSource |
|
39 | + * @param string $uidOwner Owner of the item |
|
40 | + * @return boolean|null Source |
|
41 | + * |
|
42 | + * Return false if the item does not exist for the user |
|
43 | + * @since 5.0.0 |
|
44 | + */ |
|
45 | + public function isValidSource($itemSource, $uidOwner); |
|
46 | 46 | |
47 | - /** |
|
48 | - * Get a unique name of the item for the specified user |
|
49 | - * @param string $itemSource |
|
50 | - * @param string|false $shareWith User the item is being shared with |
|
51 | - * @param array|null $exclude List of similar item names already existing as shared items @deprecated since version OC7 |
|
52 | - * @return string Target name |
|
53 | - * |
|
54 | - * This function needs to verify that the user does not already have an item with this name. |
|
55 | - * If it does generate a new name e.g. name_# |
|
56 | - * @since 5.0.0 |
|
57 | - */ |
|
58 | - public function generateTarget($itemSource, $shareWith, $exclude = null); |
|
47 | + /** |
|
48 | + * Get a unique name of the item for the specified user |
|
49 | + * @param string $itemSource |
|
50 | + * @param string|false $shareWith User the item is being shared with |
|
51 | + * @param array|null $exclude List of similar item names already existing as shared items @deprecated since version OC7 |
|
52 | + * @return string Target name |
|
53 | + * |
|
54 | + * This function needs to verify that the user does not already have an item with this name. |
|
55 | + * If it does generate a new name e.g. name_# |
|
56 | + * @since 5.0.0 |
|
57 | + */ |
|
58 | + public function generateTarget($itemSource, $shareWith, $exclude = null); |
|
59 | 59 | |
60 | - /** |
|
61 | - * Converts the shared item sources back into the item in the specified format |
|
62 | - * @param array $items Shared items |
|
63 | - * @param int $format |
|
64 | - * @return array |
|
65 | - * |
|
66 | - * The items array is a 3-dimensional array with the item_source as the |
|
67 | - * first key and the share id as the second key to an array with the share |
|
68 | - * info. |
|
69 | - * |
|
70 | - * The key/value pairs included in the share info depend on the function originally called: |
|
71 | - * If called by getItem(s)Shared: id, item_type, item, item_source, |
|
72 | - * share_type, share_with, permissions, stime, file_source |
|
73 | - * |
|
74 | - * If called by getItem(s)SharedWith: id, item_type, item, item_source, |
|
75 | - * item_target, share_type, share_with, permissions, stime, file_source, |
|
76 | - * file_target |
|
77 | - * |
|
78 | - * This function allows the backend to control the output of shared items with custom formats. |
|
79 | - * It is only called through calls to the public getItem(s)Shared(With) functions. |
|
80 | - * @since 5.0.0 |
|
81 | - */ |
|
82 | - public function formatItems($items, $format, $parameters = null); |
|
60 | + /** |
|
61 | + * Converts the shared item sources back into the item in the specified format |
|
62 | + * @param array $items Shared items |
|
63 | + * @param int $format |
|
64 | + * @return array |
|
65 | + * |
|
66 | + * The items array is a 3-dimensional array with the item_source as the |
|
67 | + * first key and the share id as the second key to an array with the share |
|
68 | + * info. |
|
69 | + * |
|
70 | + * The key/value pairs included in the share info depend on the function originally called: |
|
71 | + * If called by getItem(s)Shared: id, item_type, item, item_source, |
|
72 | + * share_type, share_with, permissions, stime, file_source |
|
73 | + * |
|
74 | + * If called by getItem(s)SharedWith: id, item_type, item, item_source, |
|
75 | + * item_target, share_type, share_with, permissions, stime, file_source, |
|
76 | + * file_target |
|
77 | + * |
|
78 | + * This function allows the backend to control the output of shared items with custom formats. |
|
79 | + * It is only called through calls to the public getItem(s)Shared(With) functions. |
|
80 | + * @since 5.0.0 |
|
81 | + */ |
|
82 | + public function formatItems($items, $format, $parameters = null); |
|
83 | 83 | |
84 | - /** |
|
85 | - * Check if a given share type is allowd by the back-end |
|
86 | - * |
|
87 | - * @param int $shareType share type |
|
88 | - * @return boolean |
|
89 | - * |
|
90 | - * The back-end can enable/disable specific share types. Just return true if |
|
91 | - * the back-end doesn't provide any specific settings for it and want to allow |
|
92 | - * all share types defined by the share API |
|
93 | - * @since 8.0.0 |
|
94 | - */ |
|
95 | - public function isShareTypeAllowed($shareType); |
|
84 | + /** |
|
85 | + * Check if a given share type is allowd by the back-end |
|
86 | + * |
|
87 | + * @param int $shareType share type |
|
88 | + * @return boolean |
|
89 | + * |
|
90 | + * The back-end can enable/disable specific share types. Just return true if |
|
91 | + * the back-end doesn't provide any specific settings for it and want to allow |
|
92 | + * all share types defined by the share API |
|
93 | + * @since 8.0.0 |
|
94 | + */ |
|
95 | + public function isShareTypeAllowed($shareType); |
|
96 | 96 | |
97 | 97 | } |
@@ -33,113 +33,113 @@ |
||
33 | 33 | * https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md#3-psrlogloggerinterface |
34 | 34 | */ |
35 | 35 | interface ILogger { |
36 | - /** |
|
37 | - * System is unusable. |
|
38 | - * |
|
39 | - * @param string $message |
|
40 | - * @param array $context |
|
41 | - * @return null |
|
42 | - * @since 7.0.0 |
|
43 | - */ |
|
44 | - public function emergency($message, array $context = array()); |
|
36 | + /** |
|
37 | + * System is unusable. |
|
38 | + * |
|
39 | + * @param string $message |
|
40 | + * @param array $context |
|
41 | + * @return null |
|
42 | + * @since 7.0.0 |
|
43 | + */ |
|
44 | + public function emergency($message, array $context = array()); |
|
45 | 45 | |
46 | - /** |
|
47 | - * Action must be taken immediately. |
|
48 | - * |
|
49 | - * @param string $message |
|
50 | - * @param array $context |
|
51 | - * @return null |
|
52 | - * @since 7.0.0 |
|
53 | - */ |
|
54 | - public function alert($message, array $context = array()); |
|
46 | + /** |
|
47 | + * Action must be taken immediately. |
|
48 | + * |
|
49 | + * @param string $message |
|
50 | + * @param array $context |
|
51 | + * @return null |
|
52 | + * @since 7.0.0 |
|
53 | + */ |
|
54 | + public function alert($message, array $context = array()); |
|
55 | 55 | |
56 | - /** |
|
57 | - * Critical conditions. |
|
58 | - * |
|
59 | - * @param string $message |
|
60 | - * @param array $context |
|
61 | - * @return null |
|
62 | - * @since 7.0.0 |
|
63 | - */ |
|
64 | - public function critical($message, array $context = array()); |
|
56 | + /** |
|
57 | + * Critical conditions. |
|
58 | + * |
|
59 | + * @param string $message |
|
60 | + * @param array $context |
|
61 | + * @return null |
|
62 | + * @since 7.0.0 |
|
63 | + */ |
|
64 | + public function critical($message, array $context = array()); |
|
65 | 65 | |
66 | - /** |
|
67 | - * Runtime errors that do not require immediate action but should typically |
|
68 | - * be logged and monitored. |
|
69 | - * |
|
70 | - * @param string $message |
|
71 | - * @param array $context |
|
72 | - * @return null |
|
73 | - * @since 7.0.0 |
|
74 | - */ |
|
75 | - public function error($message, array $context = array()); |
|
66 | + /** |
|
67 | + * Runtime errors that do not require immediate action but should typically |
|
68 | + * be logged and monitored. |
|
69 | + * |
|
70 | + * @param string $message |
|
71 | + * @param array $context |
|
72 | + * @return null |
|
73 | + * @since 7.0.0 |
|
74 | + */ |
|
75 | + public function error($message, array $context = array()); |
|
76 | 76 | |
77 | - /** |
|
78 | - * Exceptional occurrences that are not errors. |
|
79 | - * |
|
80 | - * @param string $message |
|
81 | - * @param array $context |
|
82 | - * @return null |
|
83 | - * @since 7.0.0 |
|
84 | - */ |
|
85 | - public function warning($message, array $context = array()); |
|
77 | + /** |
|
78 | + * Exceptional occurrences that are not errors. |
|
79 | + * |
|
80 | + * @param string $message |
|
81 | + * @param array $context |
|
82 | + * @return null |
|
83 | + * @since 7.0.0 |
|
84 | + */ |
|
85 | + public function warning($message, array $context = array()); |
|
86 | 86 | |
87 | - /** |
|
88 | - * Normal but significant events. |
|
89 | - * |
|
90 | - * @param string $message |
|
91 | - * @param array $context |
|
92 | - * @return null |
|
93 | - * @since 7.0.0 |
|
94 | - */ |
|
95 | - public function notice($message, array $context = array()); |
|
87 | + /** |
|
88 | + * Normal but significant events. |
|
89 | + * |
|
90 | + * @param string $message |
|
91 | + * @param array $context |
|
92 | + * @return null |
|
93 | + * @since 7.0.0 |
|
94 | + */ |
|
95 | + public function notice($message, array $context = array()); |
|
96 | 96 | |
97 | - /** |
|
98 | - * Interesting events. |
|
99 | - * |
|
100 | - * @param string $message |
|
101 | - * @param array $context |
|
102 | - * @return null |
|
103 | - * @since 7.0.0 |
|
104 | - */ |
|
105 | - public function info($message, array $context = array()); |
|
97 | + /** |
|
98 | + * Interesting events. |
|
99 | + * |
|
100 | + * @param string $message |
|
101 | + * @param array $context |
|
102 | + * @return null |
|
103 | + * @since 7.0.0 |
|
104 | + */ |
|
105 | + public function info($message, array $context = array()); |
|
106 | 106 | |
107 | - /** |
|
108 | - * Detailed debug information. |
|
109 | - * |
|
110 | - * @param string $message |
|
111 | - * @param array $context |
|
112 | - * @return null |
|
113 | - * @since 7.0.0 |
|
114 | - */ |
|
115 | - public function debug($message, array $context = array()); |
|
107 | + /** |
|
108 | + * Detailed debug information. |
|
109 | + * |
|
110 | + * @param string $message |
|
111 | + * @param array $context |
|
112 | + * @return null |
|
113 | + * @since 7.0.0 |
|
114 | + */ |
|
115 | + public function debug($message, array $context = array()); |
|
116 | 116 | |
117 | - /** |
|
118 | - * Logs with an arbitrary level. |
|
119 | - * |
|
120 | - * @param mixed $level |
|
121 | - * @param string $message |
|
122 | - * @param array $context |
|
123 | - * @return mixed |
|
124 | - * @since 7.0.0 |
|
125 | - */ |
|
126 | - public function log($level, $message, array $context = array()); |
|
117 | + /** |
|
118 | + * Logs with an arbitrary level. |
|
119 | + * |
|
120 | + * @param mixed $level |
|
121 | + * @param string $message |
|
122 | + * @param array $context |
|
123 | + * @return mixed |
|
124 | + * @since 7.0.0 |
|
125 | + */ |
|
126 | + public function log($level, $message, array $context = array()); |
|
127 | 127 | |
128 | - /** |
|
129 | - * Logs an exception very detailed |
|
130 | - * An additional message can we written to the log by adding it to the |
|
131 | - * context. |
|
132 | - * |
|
133 | - * <code> |
|
134 | - * $logger->logException($ex, [ |
|
135 | - * 'message' => 'Exception during cron job execution' |
|
136 | - * ]); |
|
137 | - * </code> |
|
138 | - * |
|
139 | - * @param \Exception | \Throwable $exception |
|
140 | - * @param array $context |
|
141 | - * @return void |
|
142 | - * @since 8.2.0 |
|
143 | - */ |
|
144 | - public function logException($exception, array $context = array()); |
|
128 | + /** |
|
129 | + * Logs an exception very detailed |
|
130 | + * An additional message can we written to the log by adding it to the |
|
131 | + * context. |
|
132 | + * |
|
133 | + * <code> |
|
134 | + * $logger->logException($ex, [ |
|
135 | + * 'message' => 'Exception during cron job execution' |
|
136 | + * ]); |
|
137 | + * </code> |
|
138 | + * |
|
139 | + * @param \Exception | \Throwable $exception |
|
140 | + * @param array $context |
|
141 | + * @return void |
|
142 | + * @since 8.2.0 |
|
143 | + */ |
|
144 | + public function logException($exception, array $context = array()); |
|
145 | 145 | } |
@@ -30,22 +30,22 @@ |
||
30 | 30 | * @since 7.0.0 |
31 | 31 | */ |
32 | 32 | interface ICacheFactory{ |
33 | - /** |
|
34 | - * Get a memory cache instance |
|
35 | - * |
|
36 | - * All entries added trough the cache instance will be namespaced by $prefix to prevent collisions between apps |
|
37 | - * |
|
38 | - * @param string $prefix |
|
39 | - * @return \OCP\ICache |
|
40 | - * @since 7.0.0 |
|
41 | - */ |
|
42 | - public function create($prefix = ''); |
|
33 | + /** |
|
34 | + * Get a memory cache instance |
|
35 | + * |
|
36 | + * All entries added trough the cache instance will be namespaced by $prefix to prevent collisions between apps |
|
37 | + * |
|
38 | + * @param string $prefix |
|
39 | + * @return \OCP\ICache |
|
40 | + * @since 7.0.0 |
|
41 | + */ |
|
42 | + public function create($prefix = ''); |
|
43 | 43 | |
44 | - /** |
|
45 | - * Check if any memory cache backend is available |
|
46 | - * |
|
47 | - * @return bool |
|
48 | - * @since 7.0.0 |
|
49 | - */ |
|
50 | - public function isAvailable(); |
|
44 | + /** |
|
45 | + * Check if any memory cache backend is available |
|
46 | + * |
|
47 | + * @return bool |
|
48 | + * @since 7.0.0 |
|
49 | + */ |
|
50 | + public function isAvailable(); |
|
51 | 51 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * @package OCP |
30 | 30 | * @since 7.0.0 |
31 | 31 | */ |
32 | -interface ICacheFactory{ |
|
32 | +interface ICacheFactory { |
|
33 | 33 | /** |
34 | 34 | * Get a memory cache instance |
35 | 35 | * |
@@ -42,68 +42,68 @@ |
||
42 | 42 | */ |
43 | 43 | interface ISession { |
44 | 44 | |
45 | - /** |
|
46 | - * Set a value in the session |
|
47 | - * |
|
48 | - * @param string $key |
|
49 | - * @param mixed $value |
|
50 | - * @since 6.0.0 |
|
51 | - */ |
|
52 | - public function set($key, $value); |
|
45 | + /** |
|
46 | + * Set a value in the session |
|
47 | + * |
|
48 | + * @param string $key |
|
49 | + * @param mixed $value |
|
50 | + * @since 6.0.0 |
|
51 | + */ |
|
52 | + public function set($key, $value); |
|
53 | 53 | |
54 | - /** |
|
55 | - * Get a value from the session |
|
56 | - * |
|
57 | - * @param string $key |
|
58 | - * @return mixed should return null if $key does not exist |
|
59 | - * @since 6.0.0 |
|
60 | - */ |
|
61 | - public function get($key); |
|
54 | + /** |
|
55 | + * Get a value from the session |
|
56 | + * |
|
57 | + * @param string $key |
|
58 | + * @return mixed should return null if $key does not exist |
|
59 | + * @since 6.0.0 |
|
60 | + */ |
|
61 | + public function get($key); |
|
62 | 62 | |
63 | - /** |
|
64 | - * Check if a named key exists in the session |
|
65 | - * |
|
66 | - * @param string $key |
|
67 | - * @return bool |
|
68 | - * @since 6.0.0 |
|
69 | - */ |
|
70 | - public function exists($key); |
|
63 | + /** |
|
64 | + * Check if a named key exists in the session |
|
65 | + * |
|
66 | + * @param string $key |
|
67 | + * @return bool |
|
68 | + * @since 6.0.0 |
|
69 | + */ |
|
70 | + public function exists($key); |
|
71 | 71 | |
72 | - /** |
|
73 | - * Remove a $key/$value pair from the session |
|
74 | - * |
|
75 | - * @param string $key |
|
76 | - * @since 6.0.0 |
|
77 | - */ |
|
78 | - public function remove($key); |
|
72 | + /** |
|
73 | + * Remove a $key/$value pair from the session |
|
74 | + * |
|
75 | + * @param string $key |
|
76 | + * @since 6.0.0 |
|
77 | + */ |
|
78 | + public function remove($key); |
|
79 | 79 | |
80 | - /** |
|
81 | - * Reset and recreate the session |
|
82 | - * @since 6.0.0 |
|
83 | - */ |
|
84 | - public function clear(); |
|
80 | + /** |
|
81 | + * Reset and recreate the session |
|
82 | + * @since 6.0.0 |
|
83 | + */ |
|
84 | + public function clear(); |
|
85 | 85 | |
86 | - /** |
|
87 | - * Close the session and release the lock |
|
88 | - * @since 7.0.0 |
|
89 | - */ |
|
90 | - public function close(); |
|
86 | + /** |
|
87 | + * Close the session and release the lock |
|
88 | + * @since 7.0.0 |
|
89 | + */ |
|
90 | + public function close(); |
|
91 | 91 | |
92 | - /** |
|
93 | - * Wrapper around session_regenerate_id |
|
94 | - * |
|
95 | - * @param bool $deleteOldSession Whether to delete the old associated session file or not. |
|
96 | - * @return void |
|
97 | - * @since 9.0.0 |
|
98 | - */ |
|
99 | - public function regenerateId($deleteOldSession = true); |
|
92 | + /** |
|
93 | + * Wrapper around session_regenerate_id |
|
94 | + * |
|
95 | + * @param bool $deleteOldSession Whether to delete the old associated session file or not. |
|
96 | + * @return void |
|
97 | + * @since 9.0.0 |
|
98 | + */ |
|
99 | + public function regenerateId($deleteOldSession = true); |
|
100 | 100 | |
101 | - /** |
|
102 | - * Wrapper around session_id |
|
103 | - * |
|
104 | - * @return string |
|
105 | - * @throws SessionNotAvailableException |
|
106 | - * @since 9.1.0 |
|
107 | - */ |
|
108 | - public function getId(); |
|
101 | + /** |
|
102 | + * Wrapper around session_id |
|
103 | + * |
|
104 | + * @return string |
|
105 | + * @throws SessionNotAvailableException |
|
106 | + * @since 9.1.0 |
|
107 | + */ |
|
108 | + public function getId(); |
|
109 | 109 | } |