@@ -29,6 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @see action |
| 31 | 31 | * @access private |
| 32 | + * @param string $action |
|
| 32 | 33 | */ |
| 33 | 34 | public function execute($action, $forwarder = "") { |
| 34 | 35 | $action = rtrim($action, '/'); |
@@ -91,6 +92,7 @@ discard block |
||
| 91 | 92 | /** |
| 92 | 93 | * @see elgg_register_action |
| 93 | 94 | * @access private |
| 95 | + * @param string $action |
|
| 94 | 96 | */ |
| 95 | 97 | public function register($action, $filename = "", $access = 'logged_in') { |
| 96 | 98 | // plugins are encouraged to call actions with a trailing / to prevent 301 |
@@ -117,6 +119,7 @@ discard block |
||
| 117 | 119 | /** |
| 118 | 120 | * @see elgg_unregister_action |
| 119 | 121 | * @access private |
| 122 | + * @param string $action |
|
| 120 | 123 | */ |
| 121 | 124 | public function unregister($action) { |
| 122 | 125 | if (isset($this->actions[$action])) { |
@@ -225,6 +228,7 @@ discard block |
||
| 225 | 228 | /** |
| 226 | 229 | * @see action_gatekeeper |
| 227 | 230 | * @access private |
| 231 | + * @param string $action |
|
| 228 | 232 | */ |
| 229 | 233 | public function gatekeeper($action) { |
| 230 | 234 | if ($action === 'login') { |
@@ -294,6 +298,7 @@ discard block |
||
| 294 | 298 | /** |
| 295 | 299 | * @see elgg_action_exists |
| 296 | 300 | * @access private |
| 301 | + * @param string $action |
|
| 297 | 302 | */ |
| 298 | 303 | public function exists($action) { |
| 299 | 304 | return (isset($this->actions[$action]) && file_exists($this->actions[$action]['file'])); |
@@ -302,6 +307,9 @@ discard block |
||
| 302 | 307 | /** |
| 303 | 308 | * @see ajax_forward_hook |
| 304 | 309 | * @access private |
| 310 | + * @param string $hook |
|
| 311 | + * @param string $reason |
|
| 312 | + * @param string $return |
|
| 305 | 313 | */ |
| 306 | 314 | public function ajaxForwardHook($hook, $reason, $return, $params) { |
| 307 | 315 | if (elgg_is_xhr()) { |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * Get primary attributes missing that are missing |
| 132 | 132 | * |
| 133 | 133 | * @param \stdClass $row Database row |
| 134 | - * @return array |
|
| 134 | + * @return boolean |
|
| 135 | 135 | */ |
| 136 | 136 | protected function isMissingPrimaries($row) { |
| 137 | 137 | return array_diff(self::$primary_attr_names, array_keys($row)) !== array(); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * Get secondary attributes that are missing |
| 142 | 142 | * |
| 143 | 143 | * @param \stdClass $row Database row |
| 144 | - * @return array |
|
| 144 | + * @return boolean |
|
| 145 | 145 | */ |
| 146 | 146 | protected function isMissingSecondaries($row) { |
| 147 | 147 | return array_diff($this->secondary_attr_names, array_keys($row)) !== array(); |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | * @param mixed $query The query to execute. |
| 187 | 187 | * @param string $callback A callback function |
| 188 | 188 | * |
| 189 | - * @return mixed A single database result object or the result of the callback function. |
|
| 189 | + * @return \stdClass A single database result object or the result of the callback function. |
|
| 190 | 190 | * @throws \DatabaseException |
| 191 | 191 | */ |
| 192 | 192 | public function getDataRow($query, $callback = '') { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * |
| 201 | 201 | * @param mixed $query The query to execute. |
| 202 | 202 | * |
| 203 | - * @return int|false The database id of the inserted row if a AUTO_INCREMENT field is |
|
| 203 | + * @return integer The database id of the inserted row if a AUTO_INCREMENT field is |
|
| 204 | 204 | * defined, 0 if not, and false on failure. |
| 205 | 205 | * @throws \DatabaseException |
| 206 | 206 | */ |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | * @param string $query The query |
| 385 | 385 | * @param resource $dblink The DB link |
| 386 | 386 | * |
| 387 | - * @return resource|bool The result of mysql_query() |
|
| 387 | + * @return resource The result of mysql_query() |
|
| 388 | 388 | * @throws \DatabaseException |
| 389 | 389 | * @todo should this be public? |
| 390 | 390 | */ |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * |
| 34 | 34 | * @param int $id The id of the annotation object being retrieved. |
| 35 | 35 | * |
| 36 | - * @return \ElggAnnotation|false |
|
| 36 | + * @return \ElggExtender |
|
| 37 | 37 | */ |
| 38 | 38 | function get($id) { |
| 39 | 39 | return _elgg_get_metastring_based_object_from_id($id, 'annotation'); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * |
| 77 | 77 | * @param int $id The id of the metadata object being retrieved. |
| 78 | 78 | * |
| 79 | - * @return \ElggMetadata|false false if not found |
|
| 79 | + * @return \ElggExtender false if not found |
|
| 80 | 80 | */ |
| 81 | 81 | function get($id) { |
| 82 | 82 | return _elgg_get_metastring_based_object_from_id($id, 'metadata'); |
@@ -767,7 +767,7 @@ discard block |
||
| 767 | 767 | * |
| 768 | 768 | * @param int $id Metadata ID |
| 769 | 769 | * |
| 770 | - * @return mixed |
|
| 770 | + * @return string|false |
|
| 771 | 771 | */ |
| 772 | 772 | function getUrl($id) { |
| 773 | 773 | $extender = $this->get($id); |
@@ -817,7 +817,7 @@ discard block |
||
| 817 | 817 | * @param string $object_type The type of object |
| 818 | 818 | * @param \ElggEntity $object The entity itself |
| 819 | 819 | * |
| 820 | - * @return true |
|
| 820 | + * @return boolean |
|
| 821 | 821 | * @access private Set as private in 1.9.0 |
| 822 | 822 | */ |
| 823 | 823 | function handleUpdate($event, $object_type, $object) { |
@@ -209,7 +209,7 @@ |
||
| 209 | 209 | * subject of the relationships. |
| 210 | 210 | * @param string $type The type of entity related to $guid (defaults to all) |
| 211 | 211 | * |
| 212 | - * @return true |
|
| 212 | + * @return boolean |
|
| 213 | 213 | */ |
| 214 | 214 | function removeAll($guid, $relationship = "", $inverse_relationship = false, $type = '') { |
| 215 | 215 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * Note: Old secrets were hex encoded. |
| 30 | 30 | * |
| 31 | - * @return mixed The site secret hash or false |
|
| 31 | + * @return string|false The site secret hash or false |
|
| 32 | 32 | * @access private |
| 33 | 33 | */ |
| 34 | 34 | function init() { |
@@ -23,6 +23,7 @@ |
||
| 23 | 23 | * @see elgg_trigger_event |
| 24 | 24 | * @see elgg_trigger_after_event |
| 25 | 25 | * @access private |
| 26 | + * @param string $type |
|
| 26 | 27 | */ |
| 27 | 28 | public function trigger($event, $type, $object = null, array $options = array()) { |
| 28 | 29 | $options = array_merge(array( |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @param string $path The subdirectory path within this directory |
| 46 | 46 | * |
| 47 | - * @return Collection<File> |
|
| 47 | + * @return \Elgg\Structs\Collection |
|
| 48 | 48 | */ |
| 49 | 49 | public function getFiles($path = ''); |
| 50 | 50 | |