@@ -13,9 +13,9 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * ChamiloForm constructor. |
| 16 | - * @param $mode |
|
| 17 | - * @param $returnurl |
|
| 18 | - * @param $cancelurl |
|
| 16 | + * @param string $mode |
|
| 17 | + * @param string $returnurl |
|
| 18 | + * @param string $cancelurl |
|
| 19 | 19 | * @param $customdata |
| 20 | 20 | */ |
| 21 | 21 | public function __construct($mode, $returnurl, $cancelurl, $customdata = []) |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * Check that form data is valid. |
| 138 | 138 | * You should almost always use this, rather than {@see validate_defined_fields} |
| 139 | 139 | * |
| 140 | - * @return bool true if form data valid |
|
| 140 | + * @return boolean|null true if form data valid |
|
| 141 | 141 | */ |
| 142 | 142 | public function is_validated() |
| 143 | 143 | { |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | * is NOT to validate the form when a no submit button has been pressed. |
| 167 | 167 | * pass true here to override this behaviour |
| 168 | 168 | * |
| 169 | - * @return bool true if form data valid |
|
| 169 | + * @return boolean|null true if form data valid |
|
| 170 | 170 | */ |
| 171 | 171 | public function validate_defined_fields($validateonnosubmit = false) |
| 172 | 172 | { |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * @param array $links |
| 34 | 34 | * @param null $addparams |
| 35 | 35 | * @param bool $exportToPdf |
| 36 | - * @param null $showTeacherView |
|
| 36 | + * @param boolean $showTeacherView |
|
| 37 | 37 | * @param int $userId |
| 38 | 38 | * @param array $studentList |
| 39 | 39 | */ |
@@ -918,7 +918,7 @@ discard block |
||
| 918 | 918 | |
| 919 | 919 | /** |
| 920 | 920 | * @param $item |
| 921 | - * @return mixed |
|
| 921 | + * @return string|null |
|
| 922 | 922 | */ |
| 923 | 923 | private function build_course_code($item) |
| 924 | 924 | { |
@@ -23,6 +23,9 @@ discard block |
||
| 23 | 23 | return chamilo_preprocess_results($results); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | +/** |
|
| 27 | + * @param string $query_string |
|
| 28 | + */ |
|
| 26 | 29 | function chamilo_query_simple_query($query_string, $offset = 0, $length = 10, $extra = NULL) { |
| 27 | 30 | return xapian_query($query_string, NULL, $offset, $length, $extra); |
| 28 | 31 | } |
@@ -30,7 +33,7 @@ discard block |
||
| 30 | 33 | /** |
| 31 | 34 | * Wrapper for getting boolean queries |
| 32 | 35 | * |
| 33 | - * @param string $query_string The term string |
|
| 36 | + * @param string $term |
|
| 34 | 37 | */ |
| 35 | 38 | function chamilo_get_boolean_query($term) { |
| 36 | 39 | return xapian_get_boolean_query($term); |
@@ -459,6 +459,7 @@ discard block |
||
| 459 | 459 | * |
| 460 | 460 | * @author Olivier Brouckaert |
| 461 | 461 | * @param - integer $id - answer ID |
| 462 | + * @param integer $id |
|
| 462 | 463 | * @return integer - 0 if bad answer, not 0 if good answer |
| 463 | 464 | */ |
| 464 | 465 | public function isCorrect($id) |
@@ -471,6 +472,7 @@ discard block |
||
| 471 | 472 | * |
| 472 | 473 | * @author Olivier Brouckaert |
| 473 | 474 | * @param - integer $id - answer ID |
| 475 | + * @param integer $id |
|
| 474 | 476 | * @return string - answer comment |
| 475 | 477 | */ |
| 476 | 478 | public function selectComment($id) |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | 11 | * @param $value array Uploaded file info (from $_FILES) |
| 12 | - * @param null $options |
|
| 13 | 12 | * @return bool |
| 14 | 13 | */ |
| 15 | 14 | public function validate($elementValue, $maxSize) |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * @param int $courseId |
| 63 | 63 | * @param int $sessionId |
| 64 | 64 | * |
| 65 | - * @return array |
|
| 65 | + * @return string |
|
| 66 | 66 | */ |
| 67 | 67 | public function getUserAcceptedLegal($userId, $courseId, $sessionId) |
| 68 | 68 | { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * @param int $courseCode |
| 113 | 113 | * @param int $sessionId |
| 114 | 114 | * @param boolean $sendEmail Optional. Indicate whether the mail must be sent. Default is true |
| 115 | - * @return mixed |
|
| 115 | + * @return false|string |
|
| 116 | 116 | */ |
| 117 | 117 | public function saveUserLegal($userId, $courseCode, $sessionId, $sendEmail = true) |
| 118 | 118 | { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | * @param int $courseId |
| 219 | 219 | * @param int $sessionId |
| 220 | 220 | * |
| 221 | - * @return bool |
|
| 221 | + * @return boolean|null |
|
| 222 | 222 | */ |
| 223 | 223 | public function saveUserMailLegal($link, $userId, $courseId, $sessionId) |
| 224 | 224 | { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | require_once api_get_path(SYS_PATH).'main/auth/external_login/functions.inc.php'; |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * @return true if cas is configured |
|
| 13 | + * @return boolean if cas is configured |
|
| 14 | 14 | * |
| 15 | 15 | **/ |
| 16 | 16 | function cas_configured() |
@@ -37,6 +37,8 @@ discard block |
||
| 37 | 37 | * |
| 38 | 38 | * @param int Error code |
| 39 | 39 | * @param string Error message |
| 40 | + * @param integer $code |
|
| 41 | + * @param string $message |
|
| 40 | 42 | */ |
| 41 | 43 | public function __construct($code, $message) |
| 42 | 44 | { |
@@ -48,6 +50,7 @@ discard block |
||
| 48 | 50 | * Sets the error handler |
| 49 | 51 | * |
| 50 | 52 | * @param WSErrorHandler Error handler |
| 53 | + * @param WSSoapErrorHandler $handler |
|
| 51 | 54 | */ |
| 52 | 55 | public static function setErrorHandler($handler) |
| 53 | 56 | { |
@@ -86,6 +89,7 @@ discard block |
||
| 86 | 89 | * Handle method |
| 87 | 90 | * |
| 88 | 91 | * @param WSError Error |
| 92 | + * @return void |
|
| 89 | 93 | */ |
| 90 | 94 | public function handle($error); |
| 91 | 95 | } |
@@ -114,7 +118,7 @@ discard block |
||
| 114 | 118 | * Verifies the API key |
| 115 | 119 | * |
| 116 | 120 | * @param string Secret key |
| 117 | - * @return mixed WSError in case of failure, null in case of success |
|
| 121 | + * @return WSError|null WSError in case of failure, null in case of success |
|
| 118 | 122 | */ |
| 119 | 123 | protected function verifyKey($secret_key) |
| 120 | 124 | { |
@@ -501,6 +501,7 @@ |
||
| 501 | 501 | * @param string User id value |
| 502 | 502 | * @param int Set to 1 to subscribe, 0 to unsubscribe |
| 503 | 503 | * @param int Status (STUDENT or TEACHER) Used for subscription only |
| 504 | + * @param integer $state |
|
| 504 | 505 | * @return mixed True if subscription or unsubscription was successful, false otherwise |
| 505 | 506 | */ |
| 506 | 507 | protected function changeUserSubscription( |