@@ -42,6 +42,7 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | * @param array Users |
| 44 | 44 | * @param int Set to 1 to enable and to 0 to disable |
| 45 | + * @param integer $state |
|
| 45 | 46 | * @return array Array of results |
| 46 | 47 | */ |
| 47 | 48 | protected function changeUsersActiveState($users, $state) |
@@ -257,6 +258,11 @@ discard block |
||
| 257 | 258 | * @param string Phone. |
| 258 | 259 | * @param string Expiration date |
| 259 | 260 | * @param array Extra fields. An array with elements of the form ('field_name' => 'name_of_the_field', 'field_value' => 'value_of_the_field'). |
| 261 | + * @param integer|null $visibility |
|
| 262 | + * @param string|null $email |
|
| 263 | + * @param string|null $language |
|
| 264 | + * @param string|null $phone |
|
| 265 | + * @param string|null $expiration_date |
|
| 260 | 266 | * @return mixed New user id generated by the system, WSError otherwise |
| 261 | 267 | */ |
| 262 | 268 | protected function createUserHelper( |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | * Searches for a node in the given array. |
| 262 | 262 | * @param array $array Reference to the array to search |
| 263 | 263 | * @param string $node Node we are looking for in the array |
| 264 | - * @return mixed Node name or false if not found |
|
| 264 | + * @return false|string Node name or false if not found |
|
| 265 | 265 | */ |
| 266 | 266 | function myarraysearch(&$array, $node) |
| 267 | 267 | { |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | * Searches an image name into an array. |
| 283 | 283 | * @param array $imgparams Reference to an array to search |
| 284 | 284 | * @param string $string String to look for |
| 285 | - * @return mixed String given if found, false otherwise |
|
| 285 | + * @return false|string String given if found, false otherwise |
|
| 286 | 286 | * @uses myarraysearch This function is just an additional layer on the myarraysearch() function |
| 287 | 287 | */ |
| 288 | 288 | function CheckImageName(&$imgparams, $string) |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | class MaintenanceModePlugin extends Plugin |
| 8 | 8 | { |
| 9 | 9 | /** |
| 10 | - * @return EditHtaccessPlugin |
|
| 10 | + * @return MaintenanceModePlugin |
|
| 11 | 11 | */ |
| 12 | 12 | public static function create() |
| 13 | 13 | { |
@@ -120,6 +120,9 @@ discard block |
||
| 120 | 120 | return $this->created_at; |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | + /** |
|
| 124 | + * @return string |
|
| 125 | + */ |
|
| 123 | 126 | public function get_weight() |
| 124 | 127 | { |
| 125 | 128 | return $this->weight; |
@@ -271,7 +274,7 @@ discard block |
||
| 271 | 274 | } |
| 272 | 275 | |
| 273 | 276 | /** |
| 274 | - * @param array $result |
|
| 277 | + * @param Doctrine\DBAL\Driver\Statement $result |
|
| 275 | 278 | * @return array |
| 276 | 279 | */ |
| 277 | 280 | private static function create_evaluation_objects_from_sql_result($result) |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * Delete all the options of a specific field |
| 116 | 116 | * @param int $field_id |
| 117 | 117 | * |
| 118 | - * @return void |
|
| 118 | + * @return Statement |
|
| 119 | 119 | * @assert (-1) === false |
| 120 | 120 | */ |
| 121 | 121 | public function delete_all_options_by_field_id($field_id) |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | * Gets an array of options for a specific field |
| 413 | 413 | * @param int $field_id The field ID |
| 414 | 414 | * @param bool $add_id_in_array Whether to add the row ID in the result |
| 415 | - * @param null $ordered_by Extra ordering query bit |
|
| 415 | + * @param null|string $ordered_by Extra ordering query bit |
|
| 416 | 416 | * @return array The options if they exists. Otherwise return false |
| 417 | 417 | */ |
| 418 | 418 | public function get_field_options_by_field($field_id, $add_id_in_array = false, $ordered_by = null) |
@@ -784,8 +784,8 @@ discard block |
||
| 784 | 784 | } |
| 785 | 785 | |
| 786 | 786 | /** |
| 787 | - * @param $defaultDisplayText |
|
| 788 | - * @return mixed|string |
|
| 787 | + * @param string $defaultDisplayText |
|
| 788 | + * @return string |
|
| 789 | 789 | */ |
| 790 | 790 | public static function getLanguageVariable($defaultDisplayText) |
| 791 | 791 | { |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | /** |
| 58 | 58 | * Handle the subscribe action. |
| 59 | 59 | * |
| 60 | - * @return bool |
|
| 60 | + * @return null|boolean |
|
| 61 | 61 | */ |
| 62 | 62 | function action_subscribe_user() |
| 63 | 63 | { |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * @param string $direction The direction to sort (SORT_ASC (default) orSORT_DESC) |
| 82 | 82 | * @param array $column_show The columns that we will show in the table i.e: $column_show = array('1','0','1') we will show the 1st and the 3th column. |
| 83 | 83 | * @param array $column_order Changes how the columns will be sorted ie. $column_order = array('0','3','2','3') The column [1] will be sorted like the column [3] |
| 84 | - * @param constant $type How should data be sorted (SORT_REGULAR, SORT_NUMERIC, SORT_STRING, SORT_DATE, SORT_IMAGE) |
|
| 84 | + * @param integer $type How should data be sorted (SORT_REGULAR, SORT_NUMERIC, SORT_STRING, SORT_DATE, SORT_IMAGE) |
|
| 85 | 85 | * @return array The sorted dataset |
| 86 | 86 | * @author [email protected] |
| 87 | 87 | */ |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | /** |
| 134 | 134 | * Like strip_tags(), but leaves an additional space and removes only the given tags |
| 135 | 135 | * @param string $string |
| 136 | - * @param array $tags Tags to be removed |
|
| 136 | + * @param string[] $tags Tags to be removed |
|
| 137 | 137 | * @return string The original string without the given tags |
| 138 | 138 | */ |
| 139 | 139 | public static function stripGivenTags($string, $tags) |
@@ -729,7 +729,7 @@ discard block |
||
| 729 | 729 | * @author Bert Vanderkimpen |
| 730 | 730 | * @author Yannick Warnier <[email protected]> Adaptation for work tool |
| 731 | 731 | * @param string $base_work_dir Base work dir (.../work) |
| 732 | - * @param string $desiredDirName complete path of the desired name |
|
| 732 | + * @param string $desired_dir_name complete path of the desired name |
|
| 733 | 733 | * |
| 734 | 734 | * @return string actual directory name if it succeeds, boolean false otherwise |
| 735 | 735 | */ |
@@ -751,7 +751,7 @@ discard block |
||
| 751 | 751 | /** |
| 752 | 752 | * Delete a work-tool directory |
| 753 | 753 | * @param int $id work directory id to delete |
| 754 | - * @return integer -1 on error |
|
| 754 | + * @return boolean|null -1 on error |
|
| 755 | 755 | */ |
| 756 | 756 | function deleteDirWork($id) |
| 757 | 757 | { |
@@ -955,7 +955,7 @@ discard block |
||
| 955 | 955 | * Update the url of a dir in the student_publication table |
| 956 | 956 | * @param array $work_data work original data |
| 957 | 957 | * @param string $newPath Example: "folder1" |
| 958 | - * @return bool |
|
| 958 | + * @return boolean|null |
|
| 959 | 959 | */ |
| 960 | 960 | function updateDirName($work_data, $newPath) |
| 961 | 961 | { |
@@ -1014,6 +1014,7 @@ discard block |
||
| 1014 | 1014 | /** |
| 1015 | 1015 | * Transform an all directory structure (only directories) in an array |
| 1016 | 1016 | * @param string path of the directory |
| 1017 | + * @param string $directory |
|
| 1017 | 1018 | * @return array the directory structure into an array |
| 1018 | 1019 | * @author Julio Montoya |
| 1019 | 1020 | * @version April 2008 |
@@ -1087,7 +1088,7 @@ discard block |
||
| 1087 | 1088 | * @param string the path of the directory |
| 1088 | 1089 | * @param boolean true if we want the total quantity of files |
| 1089 | 1090 | * include in others child directories, false only files in the directory |
| 1090 | - * @return array the first element is an integer with the number of files |
|
| 1091 | + * @return integer[] the first element is an integer with the number of files |
|
| 1091 | 1092 | * in the folder, the second element is the number of directories |
| 1092 | 1093 | * @author Julio Montoya |
| 1093 | 1094 | * @version April 2008 |
@@ -2898,7 +2899,7 @@ discard block |
||
| 2898 | 2899 | * @param int $userId |
| 2899 | 2900 | * @param int $workId |
| 2900 | 2901 | * @param int $courseId |
| 2901 | - * @return bool |
|
| 2902 | + * @return boolean|null |
|
| 2902 | 2903 | */ |
| 2903 | 2904 | function allowOnlySubscribedUser($userId, $workId, $courseId) |
| 2904 | 2905 | { |
@@ -3175,6 +3176,7 @@ discard block |
||
| 3175 | 3176 | * @param array $parentInfo |
| 3176 | 3177 | * @param array $courseInfo |
| 3177 | 3178 | * @param int $sessionId |
| 3179 | + * @param integer $userId |
|
| 3178 | 3180 | * @return int |
| 3179 | 3181 | */ |
| 3180 | 3182 | function getLastWorkStudentFromParentByUser( |
@@ -3326,7 +3328,7 @@ discard block |
||
| 3326 | 3328 | * @param array $parentWork |
| 3327 | 3329 | * @param array $work |
| 3328 | 3330 | * @param array $data |
| 3329 | - * @return int |
|
| 3331 | + * @return false|null |
|
| 3330 | 3332 | */ |
| 3331 | 3333 | function addWorkComment($courseInfo, $userId, $parentWork, $work, $data) |
| 3332 | 3334 | { |
@@ -4616,7 +4618,7 @@ discard block |
||
| 4616 | 4618 | } |
| 4617 | 4619 | |
| 4618 | 4620 | /** |
| 4619 | - * @return array |
|
| 4621 | + * @return string[] |
|
| 4620 | 4622 | */ |
| 4621 | 4623 | function getUploadDocumentType() |
| 4622 | 4624 | { |
@@ -5004,7 +5006,7 @@ discard block |
||
| 5004 | 5006 | * @param int Session ID |
| 5005 | 5007 | * @param $correction |
| 5006 | 5008 | * |
| 5007 | - * @return array|bool |
|
| 5009 | + * @return boolean |
|
| 5008 | 5010 | */ |
| 5009 | 5011 | function getFileContents($id, $course_info, $sessionId = 0, $correction = false) |
| 5010 | 5012 | { |
@@ -5133,7 +5135,7 @@ discard block |
||
| 5133 | 5135 | * @param int $userId |
| 5134 | 5136 | * @param array $courseInfo |
| 5135 | 5137 | * @param string $format |
| 5136 | - * @return bool |
|
| 5138 | + * @return false|null |
|
| 5137 | 5139 | */ |
| 5138 | 5140 | function exportAllWork($userId, $courseInfo, $format = 'pdf') |
| 5139 | 5141 | { |
@@ -5179,7 +5181,7 @@ discard block |
||
| 5179 | 5181 | * @param array $courseInfo |
| 5180 | 5182 | * @param int $sessionId |
| 5181 | 5183 | * @param string $format |
| 5182 | - * @return bool |
|
| 5184 | + * @return false|null |
|
| 5183 | 5185 | */ |
| 5184 | 5186 | function exportAllStudentWorkFromPublication( |
| 5185 | 5187 | $workId, |
@@ -5313,7 +5315,7 @@ discard block |
||
| 5313 | 5315 | * Downloads all user files per user |
| 5314 | 5316 | * @param int $userId |
| 5315 | 5317 | * @param array $courseInfo |
| 5316 | - * @return bool |
|
| 5318 | + * @return false|null |
|
| 5317 | 5319 | */ |
| 5318 | 5320 | function downloadAllFilesPerUser($userId, $courseInfo) |
| 5319 | 5321 | { |
@@ -5428,7 +5430,7 @@ discard block |
||
| 5428 | 5430 | /** |
| 5429 | 5431 | * @param array $courseInfo |
| 5430 | 5432 | * @param int $workId |
| 5431 | - * @return bool |
|
| 5433 | + * @return boolean|null |
|
| 5432 | 5434 | */ |
| 5433 | 5435 | function protectWork($courseInfo, $workId) |
| 5434 | 5436 | { |