@@ -954,7 +954,7 @@ |
||
954 | 954 | /** |
955 | 955 | * This function has been created for avoiding changes directly within QuickForm class. |
956 | 956 | * When we use it, the element is threated as 'required' to be dealt during validation. |
957 | - * @param array $element The array of elements |
|
957 | + * @param array $elements The array of elements |
|
958 | 958 | * @param string $message The message displayed |
959 | 959 | */ |
960 | 960 | public function add_multiple_required_rule($elements, $message) |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * @author Kjell-Inge Gustafsson <[email protected]> |
137 | 137 | * @since 2.4.8 - 2008-10-21 |
138 | 138 | * @param string $value |
139 | - * @return void |
|
139 | + * @return false|null |
|
140 | 140 | */ |
141 | 141 | function setCalscale( $value ) { |
142 | 142 | if( empty( $value )) return FALSE; |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | * @author Kjell-Inge Gustafsson <[email protected]> |
273 | 273 | * @since 2.4.8 - 2008-10-23 |
274 | 274 | * @param string $value |
275 | - * @return void |
|
275 | + * @return boolean |
|
276 | 276 | */ |
277 | 277 | function setVersion( $value ) { |
278 | 278 | if( empty( $value )) return FALSE; |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * @since 2.4.11 - 2008-11-04 |
325 | 325 | * @param string $label |
326 | 326 | * @param string $value |
327 | - * @param array $params optional |
|
327 | + * @param null|string $params optional |
|
328 | 328 | * @return bool |
329 | 329 | */ |
330 | 330 | function setXprop($label, $value, $params = array()) { |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | * @param mixed variable number of function arguments, |
451 | 451 | * first argument is ALWAYS component name, |
452 | 452 | * second ALWAYS component value! |
453 | - * @return bool |
|
453 | + * @return null|boolean |
|
454 | 454 | */ |
455 | 455 | function setProperty () { |
456 | 456 | $numargs = func_num_args(); |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | * @author Kjell-Inge Gustafsson <[email protected]> |
479 | 479 | * @since 2.4.10 - 2008-10-23 |
480 | 480 | * @param string $config |
481 | - * @return value |
|
481 | + * @return string |
|
482 | 482 | */ |
483 | 483 | function getConfig( $config ) { |
484 | 484 | switch( strtoupper( $config )) { |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | * @since 2.4.10 - 2008-08-05 |
700 | 700 | * @param mixed $arg1 ordno / component type / component uid |
701 | 701 | * @param mixed $arg2 optional, ordno if arg1 = component type |
702 | - * @return void |
|
702 | + * @return boolean |
|
703 | 703 | */ |
704 | 704 | function deleteComponent( $arg1, $arg2=FALSE ) { |
705 | 705 | $argType = $index = null; |
@@ -1058,7 +1058,7 @@ discard block |
||
1058 | 1058 | * @param object $component calendar component |
1059 | 1059 | * @param mixed $arg1 optional, ordno/component type/ component uid |
1060 | 1060 | * @param mixed $arg2 optional, ordno if arg1 = component type |
1061 | - * @return void |
|
1061 | + * @return boolean |
|
1062 | 1062 | */ |
1063 | 1063 | function setComponent( $component, $arg1=FALSE, $arg2=FALSE ) { |
1064 | 1064 | if( '' >= $component->getConfig( 'language')) |
@@ -1607,7 +1607,7 @@ discard block |
||
1607 | 1607 | * @param string $filename optional |
1608 | 1608 | * @param string $delimiter optional |
1609 | 1609 | * @param int timeout optional, default 3600 sec |
1610 | - * @return mixed |
|
1610 | + * @return false|null |
|
1611 | 1611 | */ |
1612 | 1612 | function useCachedCalendar($directory=FALSE, $filename=FALSE, $delimiter=FALSE, $timeout=3600) { |
1613 | 1613 | if ( $directory && ctype_digit( (string) $directory ) && !$filename ) { |
@@ -2310,7 +2310,7 @@ discard block |
||
2310 | 2310 | * @param int $min optional |
2311 | 2311 | * @param int $sec optional |
2312 | 2312 | * @param array $params optional |
2313 | - * @return TRUE |
|
2313 | + * @return boolean |
|
2314 | 2314 | */ |
2315 | 2315 | function setDtstamp( $year, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $params=FALSE ) { |
2316 | 2316 | if( empty( $year )) |
@@ -2796,7 +2796,7 @@ discard block |
||
2796 | 2796 | * @param int $min optional |
2797 | 2797 | * @param int $sec optional |
2798 | 2798 | * @param array $params optional |
2799 | - * @return boll |
|
2799 | + * @return boolean |
|
2800 | 2800 | */ |
2801 | 2801 | function setLastModified( $year=FALSE, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $params=FALSE ) { |
2802 | 2802 | if( empty( $year )) |
@@ -3217,7 +3217,6 @@ discard block |
||
3217 | 3217 | * |
3218 | 3218 | * @author Kjell-Inge Gustafsson <[email protected]> |
3219 | 3219 | * @since 2.5.1 - 2008-11-07 |
3220 | - * @param float $relid |
|
3221 | 3220 | * @param array $params optional |
3222 | 3221 | * @param index $index optional |
3223 | 3222 | * @return bool |
@@ -3255,7 +3254,7 @@ discard block |
||
3255 | 3254 | * @since 2.4.8 - 2008-11-04 |
3256 | 3255 | * @param string $value |
3257 | 3256 | * @param array $params optional |
3258 | - * @return void |
|
3257 | + * @return boolean |
|
3259 | 3258 | */ |
3260 | 3259 | function setRepeat( $value, $params=FALSE ) { |
3261 | 3260 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
@@ -3378,7 +3377,7 @@ discard block |
||
3378 | 3377 | * @param array $rruleset |
3379 | 3378 | * @param array $params optional |
3380 | 3379 | * @param integer $index optional |
3381 | - * @return void |
|
3380 | + * @return boolean |
|
3382 | 3381 | */ |
3383 | 3382 | function setRrule( $rruleset, $params=FALSE, $index=FALSE ) { |
3384 | 3383 | if( empty( $rruleset )) if( $this->getConfig( 'allowEmpty' )) $rruleset = null; else return FALSE; |
@@ -3804,7 +3803,7 @@ discard block |
||
3804 | 3803 | * @since 2.4.8 - 2008-11-04 |
3805 | 3804 | * @param string $value |
3806 | 3805 | * @param string $params optional |
3807 | - * @return boll |
|
3806 | + * @return boolean |
|
3808 | 3807 | */ |
3809 | 3808 | function setTzurl( $value, $params=FALSE ) { |
3810 | 3809 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
@@ -3933,7 +3932,7 @@ discard block |
||
3933 | 3932 | * @param string $label |
3934 | 3933 | * @param mixed $value |
3935 | 3934 | * @param array $params optional |
3936 | - * @return bool |
|
3935 | + * @return null|boolean |
|
3937 | 3936 | */ |
3938 | 3937 | function setXprop( $label, $value, $params=FALSE ) { |
3939 | 3938 | if( empty( $label )) return; |
@@ -4100,7 +4099,7 @@ discard block |
||
4100 | 4099 | * @author Kjell-Inge Gustafsson <[email protected]> |
4101 | 4100 | * @since 0.9.22 - 2007-04-10 |
4102 | 4101 | * @param array $params optional |
4103 | - * @param array $ctrKeys optional |
|
4102 | + * @param string[] $ctrKeys optional |
|
4104 | 4103 | * @return string |
4105 | 4104 | */ |
4106 | 4105 | function _createParams( $params=array(), $ctrKeys=array() ) { |
@@ -4142,7 +4141,6 @@ discard block |
||
4142 | 4141 | * |
4143 | 4142 | * @author Kjell-Inge Gustafsson <[email protected]> |
4144 | 4143 | * @since 2.4.16 - 2008-10-25 |
4145 | - * @param array $date date to check |
|
4146 | 4144 | * @param int $parno no of date parts (i.e. year, month.. .) |
4147 | 4145 | * @return array $params property parameters |
4148 | 4146 | */ |
@@ -4198,7 +4196,6 @@ discard block |
||
4198 | 4196 | * @author Kjell-Inge Gustafsson <[email protected]> |
4199 | 4197 | * @since 2.2.11 - 2007-11-03 |
4200 | 4198 | * @param array $startdate optional |
4201 | - * @param array $duration optional |
|
4202 | 4199 | * @return array duration |
4203 | 4200 | */ |
4204 | 4201 | function _date2duration( $startdate=FALSE, $enddate=FALSE ) { |
@@ -4232,7 +4229,7 @@ discard block |
||
4232 | 4229 | * @since 2.4.8 - 2008-10-30 |
4233 | 4230 | * @param array $datetime datetime/(date) |
4234 | 4231 | * @param string $tz timezone |
4235 | - * @return timestamp |
|
4232 | + * @return integer |
|
4236 | 4233 | */ |
4237 | 4234 | function _date2timestamp( $datetime, $tz=null ) { |
4238 | 4235 | $output = null; |
@@ -4691,7 +4688,7 @@ discard block |
||
4691 | 4688 | * |
4692 | 4689 | * @author Kjell-Inge Gustafsson <[email protected]> |
4693 | 4690 | * @since 2.4.8 - 2008-10-22 |
4694 | - * @param array $recurlabel |
|
4691 | + * @param string $recurlabel |
|
4695 | 4692 | * @param array $recurdata |
4696 | 4693 | * @return string |
4697 | 4694 | */ |
@@ -5231,6 +5228,10 @@ discard block |
||
5231 | 5228 | else |
5232 | 5229 | return FALSE; |
5233 | 5230 | } |
5231 | + |
|
5232 | + /** |
|
5233 | + * @param integer $wkst |
|
5234 | + */ |
|
5234 | 5235 | function _recurIntervalIx( $freq, $date, $wkst ) { |
5235 | 5236 | /* create interval index */ |
5236 | 5237 | switch( $freq ) { |
@@ -5539,7 +5540,6 @@ discard block |
||
5539 | 5540 | * |
5540 | 5541 | * @author Kjell-Inge Gustafsson <[email protected]> |
5541 | 5542 | * @since 2.4.16 - 2008-10-19 |
5542 | - * @param string $offset |
|
5543 | 5543 | * @return integer |
5544 | 5544 | */ |
5545 | 5545 | function _tz2offset( $tz ) { |
@@ -6195,9 +6195,6 @@ discard block |
||
6195 | 6195 | * |
6196 | 6196 | * @author Kjell-Inge Gustafsson <[email protected]> |
6197 | 6197 | * @since 2.5.1 - 2008-11-05 |
6198 | - * @param mixed $args variable number of function arguments, |
|
6199 | - * first argument is ALWAYS component name, |
|
6200 | - * second ALWAYS component value! |
|
6201 | 6198 | * @return void |
6202 | 6199 | */ |
6203 | 6200 | function setProperty() { |
@@ -6311,7 +6308,7 @@ discard block |
||
6311 | 6308 | * @author Kjell-Inge Gustafsson <[email protected]> |
6312 | 6309 | * @since 2.5.2 - 2008-10-23 |
6313 | 6310 | * @param mixed $unparsedtext optional, strict rfc2445 formatted, single property string or array of property strings |
6314 | - * @return bool FALSE if error occurs during parsing |
|
6311 | + * @return boolean|null FALSE if error occurs during parsing |
|
6315 | 6312 | * |
6316 | 6313 | */ |
6317 | 6314 | function parse( $unparsedtext=null ) { |
@@ -6613,7 +6610,7 @@ discard block |
||
6613 | 6610 | * @since 2.5.1 - 2008-10-15 |
6614 | 6611 | * @param mixed $arg1 ordno / component type / component uid |
6615 | 6612 | * @param mixed $arg2 optional, ordno if arg1 = component type |
6616 | - * @return void |
|
6613 | + * @return boolean |
|
6617 | 6614 | */ |
6618 | 6615 | function deleteComponent( $arg1, $arg2=FALSE ) { |
6619 | 6616 | if( !isset( $this->components )) return FALSE; |
@@ -6816,7 +6813,7 @@ discard block |
||
6816 | 6813 | * |
6817 | 6814 | * @author Kjell-Inge Gustafsson <[email protected]> |
6818 | 6815 | * @since 2.2.8 - 2006-09-03 |
6819 | - * @param string $value |
|
6816 | + * @param string $string |
|
6820 | 6817 | * @return string |
6821 | 6818 | */ |
6822 | 6819 | function _size75( $string ) { |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | * This function saves a change in a wiki page |
259 | 259 | * @author Patrick Cool <[email protected]>, Ghent University |
260 | 260 | * @param array $values |
261 | - * @return language string saying that the changes are stored |
|
261 | + * @return string string saying that the changes are stored |
|
262 | 262 | **/ |
263 | 263 | public function save_wiki($values) |
264 | 264 | { |
@@ -1196,6 +1196,7 @@ discard block |
||
1196 | 1196 | * Checks if this navigation tab has to be set to active |
1197 | 1197 | * @author Patrick Cool <[email protected]>, Ghent University |
1198 | 1198 | * |
1199 | + * @param string $paramwk |
|
1199 | 1200 | * @return string html code |
1200 | 1201 | */ |
1201 | 1202 | public function is_active_navigation_tab($paramwk) |
@@ -1711,6 +1712,7 @@ discard block |
||
1711 | 1712 | |
1712 | 1713 | /** |
1713 | 1714 | * Sends pending e-mails |
1715 | + * @param string $type |
|
1714 | 1716 | */ |
1715 | 1717 | public function check_emailcue($id_or_ref, $type, $lastime='', $lastuser='') |
1716 | 1718 | { |
@@ -2011,6 +2013,7 @@ discard block |
||
2011 | 2013 | |
2012 | 2014 | /** |
2013 | 2015 | * Exports the wiki page to PDF |
2016 | + * @param string $course_code |
|
2014 | 2017 | */ |
2015 | 2018 | public function export_to_pdf($id, $course_code) |
2016 | 2019 | { |
@@ -2478,6 +2481,7 @@ discard block |
||
2478 | 2481 | /** |
2479 | 2482 | * Draws an HTML form select with the given options |
2480 | 2483 | * |
2484 | + * @param string $name |
|
2481 | 2485 | */ |
2482 | 2486 | public function make_select($name,$values,$checked='') |
2483 | 2487 | { |
@@ -2514,7 +2518,7 @@ discard block |
||
2514 | 2518 | /** |
2515 | 2519 | * Get wiki information |
2516 | 2520 | * @param int|bool wiki id |
2517 | - * @return array wiki data |
|
2521 | + * @return string wiki data |
|
2518 | 2522 | */ |
2519 | 2523 | public function getWikiDataFromDb($id) |
2520 | 2524 | { |
@@ -2561,6 +2565,7 @@ discard block |
||
2561 | 2565 | * Get wiki information |
2562 | 2566 | * @param string wiki id |
2563 | 2567 | * @param int $courseId |
2568 | + * @param string $title |
|
2564 | 2569 | * @return array wiki data |
2565 | 2570 | */ |
2566 | 2571 | public function getPageByTitle($title, $courseId = null) |
@@ -2593,6 +2598,8 @@ discard block |
||
2593 | 2598 | * @param int $courseId |
2594 | 2599 | * @param string |
2595 | 2600 | * @param string |
2601 | + * @param string $groupfilter |
|
2602 | + * @param string $condition_session |
|
2596 | 2603 | * @return bool |
2597 | 2604 | */ |
2598 | 2605 | public function deletePage($title, $courseId, $groupfilter = null, $condition_session = null) |
@@ -3644,6 +3651,7 @@ discard block |
||
3644 | 3651 | |
3645 | 3652 | /** |
3646 | 3653 | * Show all pages |
3654 | + * @param string $action |
|
3647 | 3655 | */ |
3648 | 3656 | public function allPages($action) |
3649 | 3657 | { |
@@ -4200,7 +4208,7 @@ discard block |
||
4200 | 4208 | |
4201 | 4209 | /** |
4202 | 4210 | * Restore page |
4203 | - * @return bool |
|
4211 | + * @return false|null |
|
4204 | 4212 | */ |
4205 | 4213 | public function restorePage() |
4206 | 4214 | { |
@@ -4302,7 +4310,7 @@ discard block |
||
4302 | 4310 | } |
4303 | 4311 | |
4304 | 4312 | /** |
4305 | - * @param int|bool $wikiId |
|
4313 | + * @param false|string $wikiId |
|
4306 | 4314 | */ |
4307 | 4315 | public function setWikiData($wikiId) |
4308 | 4316 | { |
@@ -1415,7 +1415,7 @@ discard block |
||
1415 | 1415 | |
1416 | 1416 | /** |
1417 | 1417 | * Get the emoji list to include in chat |
1418 | - * @return array |
|
1418 | + * @return string[] |
|
1419 | 1419 | */ |
1420 | 1420 | public static function getEmojisToInclude() |
1421 | 1421 | { |
@@ -1738,7 +1738,7 @@ discard block |
||
1738 | 1738 | |
1739 | 1739 | /** |
1740 | 1740 | * Get the number of users connected in chat |
1741 | - * @return mixed |
|
1741 | + * @return integer |
|
1742 | 1742 | */ |
1743 | 1743 | public function countUsersOnline() |
1744 | 1744 | { |
@@ -732,7 +732,7 @@ |
||
732 | 732 | } |
733 | 733 | |
734 | 734 | /** |
735 | - * @param null $course_code |
|
735 | + * @param string $course_code |
|
736 | 736 | * @param int $gradebook_model_id |
737 | 737 | * @return mixed |
738 | 738 | */ |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @param array $values Array of title + description (name => $title, description => $comment) |
97 | 97 | * |
98 | - * @return mixed Term id on success, false on failure |
|
98 | + * @return false|string Term id on success, false on failure |
|
99 | 99 | * |
100 | 100 | */ |
101 | 101 | public static function save_glossary($values, $showMessage = true) |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | |
449 | 449 | /** |
450 | 450 | * Display the glossary terms in a list |
451 | - * @return bool true |
|
451 | + * @return string true |
|
452 | 452 | */ |
453 | 453 | public static function displayGlossaryList() |
454 | 454 | { |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | * Update action icons column |
586 | 586 | * |
587 | 587 | * @param integer $glossary_id |
588 | - * @param array $url_params Parameters to use to affect links |
|
588 | + * @param string $url_params Parameters to use to affect links |
|
589 | 589 | * @param array $row The line of results from a query on the glossary table |
590 | 590 | * |
591 | 591 | * @return string HTML string for the action icons columns |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * Validates the password |
140 | 140 | * |
141 | - * @param $encoded |
|
141 | + * @param string $encoded |
|
142 | 142 | * @param $raw |
143 | 143 | * @param $salt |
144 | 144 | * @return bool |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * @param string $raw |
156 | 156 | * @param User $user |
157 | 157 | * |
158 | - * @return bool |
|
158 | + * @return string |
|
159 | 159 | */ |
160 | 160 | public static function encryptPassword($raw, User $user) |
161 | 161 | { |
@@ -1003,6 +1003,7 @@ discard block |
||
1003 | 1003 | * Disables or enables a user |
1004 | 1004 | * @param int user_id |
1005 | 1005 | * @param int Enable or disable |
1006 | + * @param integer $active |
|
1006 | 1007 | * @return void |
1007 | 1008 | * @assert (-1,0) === false |
1008 | 1009 | * @assert (1,1) === true |
@@ -1033,6 +1034,7 @@ discard block |
||
1033 | 1034 | /** |
1034 | 1035 | * Disables a user |
1035 | 1036 | * @param int User id |
1037 | + * @param integer $user_id |
|
1036 | 1038 | * @return bool |
1037 | 1039 | * @uses UserManager::change_active_state() to actually disable the user |
1038 | 1040 | * @assert (0) === false |
@@ -1049,6 +1051,7 @@ discard block |
||
1049 | 1051 | /** |
1050 | 1052 | * Enable a user |
1051 | 1053 | * @param int User id |
1054 | + * @param integer $user_id |
|
1052 | 1055 | * @return bool |
1053 | 1056 | * @uses UserManager::change_active_state() to actually disable the user |
1054 | 1057 | * @assert (0) === false |
@@ -1213,6 +1216,7 @@ discard block |
||
1213 | 1216 | * Checks whether the user id exists in the database |
1214 | 1217 | * |
1215 | 1218 | * @param int User id |
1219 | + * @param integer $userId |
|
1216 | 1220 | * @return bool True if user id was found, false otherwise |
1217 | 1221 | */ |
1218 | 1222 | public static function is_user_id_valid($userId) |
@@ -1410,7 +1414,7 @@ discard block |
||
1410 | 1414 | * @param array $userInfo user information to avoid query the DB |
1411 | 1415 | * returns the /main/img/unknown.jpg image set it at true |
1412 | 1416 | * |
1413 | - * @return array Array of 2 elements: 'dir' and 'file' which contain |
|
1417 | + * @return integer Array of 2 elements: 'dir' and 'file' which contain |
|
1414 | 1418 | * the dir and file as the name implies if image does not exist it will |
1415 | 1419 | * return the unknow image if anonymous parameter is true if not it returns an empty array |
1416 | 1420 | */ |
@@ -1778,7 +1782,7 @@ discard block |
||
1778 | 1782 | * @param int $user_id User id |
1779 | 1783 | * @param $force Optional parameter to force building after a removal request |
1780 | 1784 | * |
1781 | - * @return A string containing the XHTML code to dipslay the production list, or FALSE |
|
1785 | + * @return boolean|string string containing the XHTML code to dipslay the production list, or FALSE |
|
1782 | 1786 | */ |
1783 | 1787 | public static function build_production_list($user_id, $force = false, $showdelete = false) |
1784 | 1788 | { |
@@ -1814,7 +1818,7 @@ discard block |
||
1814 | 1818 | /** |
1815 | 1819 | * Returns an array with the user's productions. |
1816 | 1820 | * |
1817 | - * @param $user_id User id |
|
1821 | + * @param integer $user_id User id |
|
1818 | 1822 | * @return array An array containing the user's productions |
1819 | 1823 | */ |
1820 | 1824 | public static function get_user_productions($user_id) |
@@ -1969,7 +1973,7 @@ discard block |
||
1969 | 1973 | |
1970 | 1974 | /** |
1971 | 1975 | * Build a list of extra file already uploaded in $user_folder/{$extra_field}/ |
1972 | - * @param $user_id |
|
1976 | + * @param integer $user_id |
|
1973 | 1977 | * @param $extra_field |
1974 | 1978 | * @param bool $force |
1975 | 1979 | * @param bool $showdelete |
@@ -2074,7 +2078,7 @@ discard block |
||
2074 | 2078 | * @param int $fieldType Field's type |
2075 | 2079 | * @param string $displayText Field's language var name |
2076 | 2080 | * @param string $default Field's default value |
2077 | - * @return int |
|
2081 | + * @return boolean |
|
2078 | 2082 | */ |
2079 | 2083 | public static function create_extra_field($variable, $fieldType, $displayText, $default) |
2080 | 2084 | { |
@@ -2108,6 +2112,7 @@ discard block |
||
2108 | 2112 | * @param boolean Whether to prefix the fields indexes with "extra_" (might be used by formvalidator) |
2109 | 2113 | * @param boolean Whether to return invisible fields as well |
2110 | 2114 | * @param boolean Whether to split multiple-selection fields or not |
2115 | + * @param boolean $field_filter |
|
2111 | 2116 | * @return array Array of fields => value for the given user |
2112 | 2117 | */ |
2113 | 2118 | public static function get_extra_user_data( |
@@ -2350,6 +2355,7 @@ discard block |
||
2350 | 2355 | /** |
2351 | 2356 | * Get extra user data by field variable |
2352 | 2357 | * @param string field variable |
2358 | + * @param string $field_variable |
|
2353 | 2359 | * @return array data |
2354 | 2360 | */ |
2355 | 2361 | public static function get_extra_user_data_by_field_variable($field_variable) |
@@ -2899,7 +2905,7 @@ discard block |
||
2899 | 2905 | * @param string User ID |
2900 | 2906 | * @param string course directory |
2901 | 2907 | * @param string resourcetype: images, all |
2902 | - * @return int User ID (or false if not found) |
|
2908 | + * @return string User ID (or false if not found) |
|
2903 | 2909 | */ |
2904 | 2910 | public static function get_user_upload_files_by_course($user_id, $course, $resourcetype = 'all') |
2905 | 2911 | { |
@@ -2979,7 +2985,7 @@ discard block |
||
2979 | 2985 | /** |
2980 | 2986 | * Adds a new API key to the users' account |
2981 | 2987 | * @param int Optional user ID (defaults to the results of api_get_user_id()) |
2982 | - * @return boolean True on success, false on failure |
|
2988 | + * @return false|string True on success, false on failure |
|
2983 | 2989 | */ |
2984 | 2990 | public static function add_api_key($user_id = null, $api_service = 'dokeos') |
2985 | 2991 | { |
@@ -3034,6 +3040,7 @@ discard block |
||
3034 | 3040 | * Regenerate an API key from the user's account |
3035 | 3041 | * @param int user ID (defaults to the results of api_get_user_id()) |
3036 | 3042 | * @param string API key's internal ID |
3043 | + * @param string $api_service |
|
3037 | 3044 | * @return int num |
3038 | 3045 | */ |
3039 | 3046 | public static function update_api_key($user_id, $api_service) |
@@ -3063,6 +3070,7 @@ discard block |
||
3063 | 3070 | /** |
3064 | 3071 | * @param int user ID (defaults to the results of api_get_user_id()) |
3065 | 3072 | * @param string API key's internal ID |
3073 | + * @param string $api_service |
|
3066 | 3074 | * @return int row ID, or return false if not found |
3067 | 3075 | */ |
3068 | 3076 | public static function get_api_key_id($user_id, $api_service) |
@@ -3277,7 +3285,7 @@ discard block |
||
3277 | 3285 | * @param int $field_id |
3278 | 3286 | * @param bool $show_links show links or not |
3279 | 3287 | * |
3280 | - * @return array |
|
3288 | + * @return string |
|
3281 | 3289 | */ |
3282 | 3290 | public static function get_user_tags_to_string($user_id, $field_id, $show_links = true) |
3283 | 3291 | { |
@@ -3374,7 +3382,7 @@ discard block |
||
3374 | 3382 | * @param mixed $tag |
3375 | 3383 | * @param int $user_id |
3376 | 3384 | * @param int $field_id field id of the tag |
3377 | - * @return bool |
|
3385 | + * @return boolean|null |
|
3378 | 3386 | */ |
3379 | 3387 | public static function add_tag($tag, $user_id, $field_id) |
3380 | 3388 | { |
@@ -4190,7 +4198,7 @@ discard block |
||
4190 | 4198 | * Add subscribed users to a user by relation type |
4191 | 4199 | * @param int $userId The user id |
4192 | 4200 | * @param array $subscribedUsersId The id of suscribed users |
4193 | - * @param action $relationType The relation type |
|
4201 | + * @param integer $relationType The relation type |
|
4194 | 4202 | */ |
4195 | 4203 | public static function subscribeUsersToUser($userId, $subscribedUsersId, $relationType, $deleteUsersBeforeInsert = false) |
4196 | 4204 | { |
@@ -4255,6 +4263,8 @@ discard block |
||
4255 | 4263 | * This function check if an user is followed by human resources manager |
4256 | 4264 | * @param int User id |
4257 | 4265 | * @param int Human resources manager |
4266 | + * @param integer $user_id |
|
4267 | + * @param integer $hr_dept_id |
|
4258 | 4268 | * @return bool |
4259 | 4269 | */ |
4260 | 4270 | public static function is_user_followed_by_drh($user_id, $hr_dept_id) |
@@ -4327,6 +4337,8 @@ discard block |
||
4327 | 4337 | * Determines if a user is a gradebook certified |
4328 | 4338 | * @param int The category id of gradebook |
4329 | 4339 | * @param int The user id |
4340 | + * @param integer $cat_id |
|
4341 | + * @param integer $user_id |
|
4330 | 4342 | * @return boolean |
4331 | 4343 | */ |
4332 | 4344 | public static function is_user_certified($cat_id, $user_id) |
@@ -4349,6 +4361,8 @@ discard block |
||
4349 | 4361 | * Gets the info about a gradebook certificate for a user by course |
4350 | 4362 | * @param string The course code |
4351 | 4363 | * @param int The user id |
4364 | + * @param integer $course_code |
|
4365 | + * @param integer $user_id |
|
4352 | 4366 | * @return array if there is not information return false |
4353 | 4367 | */ |
4354 | 4368 | public static function get_info_gradebook_certificate($course_code, $user_id) |
@@ -4812,7 +4826,7 @@ discard block |
||
4812 | 4826 | } |
4813 | 4827 | |
4814 | 4828 | /** |
4815 | - * @return array |
|
4829 | + * @return string[] |
|
4816 | 4830 | */ |
4817 | 4831 | static function get_user_field_types() |
4818 | 4832 | { |
@@ -5105,7 +5119,7 @@ discard block |
||
5105 | 5119 | |
5106 | 5120 | /** |
5107 | 5121 | * Get the boss user ID from a followed user id |
5108 | - * @param $userId |
|
5122 | + * @param integer $userId |
|
5109 | 5123 | * @return bool |
5110 | 5124 | */ |
5111 | 5125 | public static function getStudentBossList($userId) |
@@ -5157,7 +5171,7 @@ discard block |
||
5157 | 5171 | * Get either a Gravatar URL or complete image tag for a specified email address. |
5158 | 5172 | * |
5159 | 5173 | * @param string $email The email address |
5160 | - * @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5174 | + * @param integer $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5161 | 5175 | * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
5162 | 5176 | * @param string $r Maximum rating (inclusive) [ g | pg | r | x ] |
5163 | 5177 | * @param boole $img True to return a complete IMG tag False for just the URL |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * @param $category_id |
255 | 255 | * @param $course_id |
256 | 256 | * @param $project_id |
257 | - * @param $other_area |
|
257 | + * @param integer $other_area |
|
258 | 258 | * @param $email |
259 | 259 | * @param $subject |
260 | 260 | * @param $content |
@@ -635,10 +635,10 @@ discard block |
||
635 | 635 | /** |
636 | 636 | * Insert message between Users and Admins |
637 | 637 | * @param $ticket_id |
638 | - * @param $subject |
|
639 | - * @param $content |
|
638 | + * @param string $subject |
|
639 | + * @param string $content |
|
640 | 640 | * @param $file_attachments |
641 | - * @param $user_id |
|
641 | + * @param integer $user_id |
|
642 | 642 | * @param string $status |
643 | 643 | * @param bool $sendConfirmation |
644 | 644 | * @return bool |
@@ -737,9 +737,9 @@ discard block |
||
737 | 737 | /** |
738 | 738 | * Attachment files when a message is sent |
739 | 739 | * @param $file_attach |
740 | - * @param $ticket_id |
|
741 | - * @param $message_id |
|
742 | - * @param $message_attch_id |
|
740 | + * @param integer $ticket_id |
|
741 | + * @param integer $message_id |
|
742 | + * @param integer $message_attch_id |
|
743 | 743 | * @return array |
744 | 744 | */ |
745 | 745 | public static function save_message_attachment_file( |
@@ -2002,7 +2002,7 @@ discard block |
||
2002 | 2002 | } |
2003 | 2003 | |
2004 | 2004 | /** |
2005 | - * @param $id |
|
2005 | + * @param integer $id |
|
2006 | 2006 | * @return Project |
2007 | 2007 | */ |
2008 | 2008 | public static function getProject($id) |
@@ -242,6 +242,8 @@ discard block |
||
242 | 242 | /** |
243 | 243 | * get thematic list |
244 | 244 | * @param int Thematic id (optional), get list by id |
245 | + * @param integer $thematic_id |
|
246 | + * @param integer $session_id |
|
245 | 247 | * @return array Thematic data |
246 | 248 | */ |
247 | 249 | public static function get_thematic_list( |
@@ -798,6 +800,7 @@ discard block |
||
798 | 800 | /** |
799 | 801 | * delete thematic advance |
800 | 802 | * @param int Thematic advance id |
803 | + * @param integer $thematic_advance_id |
|
801 | 804 | * @return int Affected rows |
802 | 805 | */ |
803 | 806 | public function thematic_advance_destroy($thematic_advance_id) |
@@ -1114,6 +1117,7 @@ discard block |
||
1114 | 1117 | /** |
1115 | 1118 | * update done thematic advances from thematic details interface |
1116 | 1119 | * @param int Thematic id |
1120 | + * @param integer $thematic_advance_id |
|
1117 | 1121 | * @return int Affected rows |
1118 | 1122 | */ |
1119 | 1123 | public function update_done_thematic_advances($thematic_advance_id) |
@@ -1296,6 +1300,7 @@ discard block |
||
1296 | 1300 | * Get total average of thematic advances |
1297 | 1301 | * @param string Course code (optional) |
1298 | 1302 | * @param int Session id (optional) |
1303 | + * @param integer $session_id |
|
1299 | 1304 | * @return float Average of thematic advances |
1300 | 1305 | */ |
1301 | 1306 | public function get_total_average_of_thematic_advances($course_code = null, $session_id = null) |
@@ -1403,6 +1408,7 @@ discard block |
||
1403 | 1408 | * @param string Content |
1404 | 1409 | * @param string Date and time |
1405 | 1410 | * @param int Duration in hours |
1411 | + * @param integer $id |
|
1406 | 1412 | * @return void |
1407 | 1413 | */ |
1408 | 1414 | public function set_thematic_advance_attributes( |
@@ -1433,7 +1439,7 @@ discard block |
||
1433 | 1439 | |
1434 | 1440 | /** |
1435 | 1441 | * get thematic id |
1436 | - * @return void |
|
1442 | + * @return integer |
|
1437 | 1443 | */ |
1438 | 1444 | public function get_thematic_id() |
1439 | 1445 | { |
@@ -1442,7 +1448,7 @@ discard block |
||
1442 | 1448 | |
1443 | 1449 | /** |
1444 | 1450 | * Get thematic plan titles by default |
1445 | - * @return array |
|
1451 | + * @return string[] |
|
1446 | 1452 | */ |
1447 | 1453 | public function get_default_thematic_plan_title() |
1448 | 1454 | { |
@@ -1459,7 +1465,7 @@ discard block |
||
1459 | 1465 | |
1460 | 1466 | /** |
1461 | 1467 | * Get thematic plan icons by default |
1462 | - * @return array |
|
1468 | + * @return string[] |
|
1463 | 1469 | */ |
1464 | 1470 | public function get_default_thematic_plan_icon() |
1465 | 1471 | { |
@@ -1476,7 +1482,7 @@ discard block |
||
1476 | 1482 | |
1477 | 1483 | /** |
1478 | 1484 | * Get questions by default for help |
1479 | - * @return array |
|
1485 | + * @return string[] |
|
1480 | 1486 | */ |
1481 | 1487 | public function get_default_question() |
1482 | 1488 | { |