@@ -174,7 +174,7 @@ |
||
174 | 174 | * @param array $options The options array to pass to the getter function. If limit is |
175 | 175 | * not set, 10 is used as the default. In most cases that is not |
176 | 176 | * what you want. |
177 | - * @param mixed $callback An optional callback function that all results will be passed |
|
177 | + * @param null|string $callback An optional callback function that all results will be passed |
|
178 | 178 | * to upon load. The callback needs to accept $result, $getter, |
179 | 179 | * $options. |
180 | 180 | * @param int $chunk_size The number of entities to pull in before requesting more. |
@@ -285,7 +285,7 @@ |
||
285 | 285 | * |
286 | 286 | * @param int $offset Offset |
287 | 287 | * |
288 | - * @return int |
|
288 | + * @return boolean |
|
289 | 289 | */ |
290 | 290 | public function offsetExists($offset) { |
291 | 291 | return array_key_exists($offset, $this->attributes); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * @param resource $f File pointer resource |
108 | 108 | * @param mixed $data The data to write. |
109 | 109 | * |
110 | - * @return bool |
|
110 | + * @return integer |
|
111 | 111 | */ |
112 | 112 | public function write($f, $data) { |
113 | 113 | return fwrite($f, $data); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * @param int $length The number of bytes to read |
121 | 121 | * @param int $offset The number of bytes to start after |
122 | 122 | * |
123 | - * @return mixed Contents of file or false on fail. |
|
123 | + * @return string Contents of file or false on fail. |
|
124 | 124 | */ |
125 | 125 | public function read($f, $length, $offset = 0) { |
126 | 126 | if ($offset) { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * @param resource $f File resource |
164 | 164 | * @param int $position Position in bytes |
165 | 165 | * |
166 | - * @return bool |
|
166 | + * @return integer |
|
167 | 167 | */ |
168 | 168 | public function seek($f, $position) { |
169 | 169 | return fseek($f, $position); |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | * @param string $dirroot The full path of the directory to create |
283 | 283 | * |
284 | 284 | * @throws IOException |
285 | - * @return true |
|
285 | + * @return boolean |
|
286 | 286 | * @deprecated 1.8 Use \ElggDiskFilestore::makeDirectoryRoot() |
287 | 287 | */ |
288 | 288 | protected function make_directory_root($dirroot) { |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * @param string $dirroot The full path of the directory to create |
299 | 299 | * |
300 | 300 | * @throws IOException |
301 | - * @return true |
|
301 | + * @return boolean |
|
302 | 302 | */ |
303 | 303 | protected function makeDirectoryRoot($dirroot) { |
304 | 304 | if (!file_exists($dirroot)) { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | /** |
205 | 205 | * Return an array of fields which can be exported. |
206 | 206 | * |
207 | - * @return array |
|
207 | + * @return string[] |
|
208 | 208 | * @deprecated 1.9 Use toObject() |
209 | 209 | */ |
210 | 210 | public function getExportableValues() { |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | /** |
224 | 224 | * Export this object |
225 | 225 | * |
226 | - * @return array |
|
226 | + * @return ODDMetaData |
|
227 | 227 | * @deprecated 1.9 Use toObject() |
228 | 228 | */ |
229 | 229 | public function export() { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * |
115 | 115 | * @param string $mimetype The mimetype |
116 | 116 | * |
117 | - * @return bool |
|
117 | + * @return string |
|
118 | 118 | */ |
119 | 119 | public function setMimeType($mimetype) { |
120 | 120 | return $this->mimetype = $mimetype; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * |
126 | 126 | * @note This method can be called both dynamically and statically |
127 | 127 | * |
128 | - * @param mixed $file The full path of the file to check. For uploaded files, use tmp_name. |
|
128 | + * @param string $file The full path of the file to check. For uploaded files, use tmp_name. |
|
129 | 129 | * @param mixed $default A default. Useful to pass what the browser thinks it is. |
130 | 130 | * @since 1.7.12 |
131 | 131 | * |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * |
172 | 172 | * @param string $description The description. |
173 | 173 | * |
174 | - * @return bool |
|
174 | + * @return boolean|null |
|
175 | 175 | */ |
176 | 176 | public function setDescription($description) { |
177 | 177 | $this->description = $description; |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * |
222 | 222 | * @param string $data The data |
223 | 223 | * |
224 | - * @return bool |
|
224 | + * @return integer |
|
225 | 225 | */ |
226 | 226 | public function write($data) { |
227 | 227 | $fs = $this->getFilestore(); |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | /** |
247 | 247 | * Gets the full contents of this file. |
248 | 248 | * |
249 | - * @return mixed The file contents. |
|
249 | + * @return string The file contents. |
|
250 | 250 | */ |
251 | 251 | public function grabFile() { |
252 | 252 | $fs = $this->getFilestore(); |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | * |
293 | 293 | * @param int $position Position in bytes |
294 | 294 | * |
295 | - * @return bool |
|
295 | + * @return boolean|null |
|
296 | 296 | */ |
297 | 297 | public function seek($position) { |
298 | 298 | $fs = $this->getFilestore(); |
@@ -561,7 +561,7 @@ |
||
561 | 561 | /** |
562 | 562 | * Return an array of fields which can be exported. |
563 | 563 | * |
564 | - * @return array |
|
564 | + * @return string[] |
|
565 | 565 | * @deprecated 1.9 Use toObject() |
566 | 566 | */ |
567 | 567 | public function getExportableValues() { |
@@ -205,7 +205,7 @@ |
||
205 | 205 | /** |
206 | 206 | * Clears the entire cache |
207 | 207 | * |
208 | - * @return true |
|
208 | + * @return boolean |
|
209 | 209 | */ |
210 | 210 | public function clear() { |
211 | 211 | $result = $this->memcache->flush(); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * Get a prepared menu array |
29 | 29 | * |
30 | 30 | * @param mixed $sort_by Method to sort the menu by. @see \ElggMenuBuilder::sort() |
31 | - * @return array |
|
31 | + * @return ElggMenuItem[] |
|
32 | 32 | */ |
33 | 33 | public function getMenu($sort_by = 'text') { |
34 | 34 |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * Save the plugin object. Make sure required values exist. |
90 | 90 | * |
91 | 91 | * @see \ElggObject::save() |
92 | - * @return bool |
|
92 | + * @return boolean|null |
|
93 | 93 | */ |
94 | 94 | public function save() { |
95 | 95 | // own by the current site so users can be deleted without affecting plugins |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * Sets the location of this plugin. |
150 | 150 | * |
151 | 151 | * @param string $id The path to the plugin's dir. |
152 | - * @return bool |
|
152 | + * @return string |
|
153 | 153 | */ |
154 | 154 | public function setID($id) { |
155 | 155 | return $this->attributes['title'] = $id; |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | /** |
189 | 189 | * Sets the priority of the plugin |
190 | 190 | * |
191 | - * @param mixed $priority The priority to set. One of +1, -1, first, last, or a number. |
|
191 | + * @param string $priority The priority to set. One of +1, -1, first, last, or a number. |
|
192 | 192 | * If given a number, this will displace all plugins at that number |
193 | 193 | * and set their priorities +1 |
194 | 194 | * @param mixed $site_guid Optional site GUID. |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | * @param string $value The setting value |
459 | 459 | * @param int $user_guid The user GUID |
460 | 460 | * |
461 | - * @return mixed The new setting ID or false |
|
461 | + * @return boolean The new setting ID or false |
|
462 | 462 | */ |
463 | 463 | public function setUserSetting($name, $value, $user_guid = 0) { |
464 | 464 | $user_guid = (int)$user_guid; |
@@ -722,7 +722,7 @@ discard block |
||
722 | 722 | * Start the plugin. |
723 | 723 | * |
724 | 724 | * @param int $flags Start flags for the plugin. See the constants in lib/plugins.php for details. |
725 | - * @return true |
|
725 | + * @return boolean |
|
726 | 726 | * @throws PluginException |
727 | 727 | */ |
728 | 728 | public function start($flags) { |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | * Registers the plugin's languages |
826 | 826 | * |
827 | 827 | * @throws PluginException |
828 | - * @return true |
|
828 | + * @return boolean |
|
829 | 829 | */ |
830 | 830 | protected function registerLanguages() { |
831 | 831 | $languages_path = "$this->path/languages"; |
@@ -849,7 +849,7 @@ discard block |
||
849 | 849 | * Registers the plugin's classes |
850 | 850 | * |
851 | 851 | * @throws PluginException |
852 | - * @return true |
|
852 | + * @return boolean |
|
853 | 853 | */ |
854 | 854 | protected function registerClasses() { |
855 | 855 | $classes_path = "$this->path/classes"; |