@@ -30,6 +30,9 @@ |
||
| 30 | 30 | $this->center_x = intval($offset_x + $this->canvas_x/2 - $this->block_size/2); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $class |
|
| 35 | + */ |
|
| 33 | 36 | function prepare_skill_box($skill, $position, $class) |
| 34 | 37 | { |
| 35 | 38 | $block_id = $skill['id']; |
@@ -63,6 +63,8 @@ discard block |
||
| 63 | 63 | * @param int user id |
| 64 | 64 | * @param int user friend id |
| 65 | 65 | * @param string |
| 66 | + * @param integer $user_id |
|
| 67 | + * @param integer $user_friend |
|
| 66 | 68 | * @author isaac flores paz |
| 67 | 69 | */ |
| 68 | 70 | public static function get_relation_between_contacts($user_id, $user_friend) |
@@ -94,6 +96,8 @@ discard block |
||
| 94 | 96 | * @param int group id |
| 95 | 97 | * @param string name to search |
| 96 | 98 | * @param bool true will load firstname, lastname, and image name |
| 99 | + * @param integer $user_id |
|
| 100 | + * @param integer $id_group |
|
| 97 | 101 | * @return array |
| 98 | 102 | * @author Julio Montoya <[email protected]> Cleaning code, function renamed, $load_extra_info option added |
| 99 | 103 | * @author isaac flores paz |
@@ -170,6 +174,9 @@ discard block |
||
| 170 | 174 | * @param int user friend id |
| 171 | 175 | * @param string title of the message |
| 172 | 176 | * @param string content of the message |
| 177 | + * @param integer $user_id |
|
| 178 | + * @param string $message_title |
|
| 179 | + * @param string $message_content |
|
| 173 | 180 | * @return boolean |
| 174 | 181 | * @author isaac flores paz |
| 175 | 182 | * @author Julio Montoya <[email protected]> Cleaning code |
@@ -241,6 +248,7 @@ discard block |
||
| 241 | 248 | * Get number messages of the inbox |
| 242 | 249 | * @author isaac flores paz |
| 243 | 250 | * @param int user receiver id |
| 251 | + * @param integer $user_receiver_id |
|
| 244 | 252 | * @return int |
| 245 | 253 | */ |
| 246 | 254 | public static function get_message_number_invitation_by_user_id($user_receiver_id) |
@@ -283,6 +291,7 @@ discard block |
||
| 283 | 291 | * Get invitation list sent by user |
| 284 | 292 | * @author Julio Montoya <[email protected]> |
| 285 | 293 | * @param int user id |
| 294 | + * @param integer $user_id |
|
| 286 | 295 | * @return array() |
| 287 | 296 | */ |
| 288 | 297 | public static function get_list_invitation_sent_by_user_id($user_id) |
@@ -325,6 +334,7 @@ discard block |
||
| 325 | 334 | * Denies invitation |
| 326 | 335 | * @param int user sender id |
| 327 | 336 | * @param int user receiver id |
| 337 | + * @param integer $user_receiver_id |
|
| 328 | 338 | * @author isaac flores paz |
| 329 | 339 | * @author Julio Montoya <[email protected]> Cleaning code |
| 330 | 340 | */ |
@@ -360,7 +370,7 @@ discard block |
||
| 360 | 370 | * @author Isaac Flores Paz <[email protected]> |
| 361 | 371 | * @author Julio Montoya <[email protected]> Cleaning code |
| 362 | 372 | * @param void |
| 363 | - * @return string message invitation |
|
| 373 | + * @return false|null message invitation |
|
| 364 | 374 | */ |
| 365 | 375 | public static function send_invitation_friend_user($userfriend_id, $subject_message = '', $content_message = '') |
| 366 | 376 | { |
@@ -1229,7 +1239,7 @@ discard block |
||
| 1229 | 1239 | * @param string $messageContent of the message |
| 1230 | 1240 | * @param int $messageId id parent |
| 1231 | 1241 | * @param string $messageStatus status type of message |
| 1232 | - * @return boolean |
|
| 1242 | + * @return false|string |
|
| 1233 | 1243 | * @author Yannick Warnier |
| 1234 | 1244 | */ |
| 1235 | 1245 | public static function sendWallMessage($userId, $friendId, $messageContent, $messageId = 0, $messageStatus = '') |
@@ -1318,7 +1328,7 @@ discard block |
||
| 1318 | 1328 | * Gets all messages from someone's wall (within specific limits) |
| 1319 | 1329 | * @param int $userId id of wall shown |
| 1320 | 1330 | * @param string $messageStatus status wall message |
| 1321 | - * @param int|string $parentId id message (Post main) |
|
| 1331 | + * @param integer|null $parentId id message (Post main) |
|
| 1322 | 1332 | * @param date $start Date from which we want to show the messages, in UTC time |
| 1323 | 1333 | * @param int $limit Limit for the number of parent messages we want to show |
| 1324 | 1334 | * @param int $offset Wall message query offset |
@@ -1647,7 +1657,7 @@ discard block |
||
| 1647 | 1657 | /** |
| 1648 | 1658 | * Delete messages delete logic |
| 1649 | 1659 | * @param int $id id message to delete. |
| 1650 | - * @return bool status query |
|
| 1660 | + * @return Statement|null status query |
|
| 1651 | 1661 | */ |
| 1652 | 1662 | public static function deleteMessage($id) |
| 1653 | 1663 | { |
@@ -443,6 +443,7 @@ |
||
| 443 | 443 | * @param bool hide navigation optionally |
| 444 | 444 | * @param int content per page when show navigation (optional) |
| 445 | 445 | * @param bool sort data optionally |
| 446 | + * @param boolean $visibility_options |
|
| 446 | 447 | * @return string grid html |
| 447 | 448 | */ |
| 448 | 449 | public function display_simple_grid($visibility_options, $hide_navigation = true, $per_page = 20, $sort_data = true, $grid_class = array()) |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * @param array $conditions a list of condition (exemple : status=>STUDENT) |
| 103 | - * @param array $order_by a list of fields on which sort |
|
| 103 | + * @param string[] $order_by a list of fields on which sort |
|
| 104 | 104 | * @return array An array with all users of the platform. |
| 105 | 105 | */ |
| 106 | 106 | function get_specific_field_values_list( |
@@ -235,6 +235,7 @@ discard block |
||
| 235 | 235 | * @param string Course code |
| 236 | 236 | * @param string Tool ID |
| 237 | 237 | * @param int Internal ID used in specific tool table |
| 238 | + * @param string $tool_id |
|
| 238 | 239 | */ |
| 239 | 240 | function delete_all_values_for_item($course_id, $tool_id, $ref_id) { |
| 240 | 241 | $table_sf_values = Database :: get_main_table(TABLE_MAIN_SPECIFIC_FIELD_VALUES); |
@@ -248,6 +249,7 @@ discard block |
||
| 248 | 249 | * Defaults to the first letter of the name, otherwise iterate through available |
| 249 | 250 | * letters |
| 250 | 251 | * @param string Name |
| 252 | + * @param string $name |
|
| 251 | 253 | * @return string One-letter code, upper-case |
| 252 | 254 | */ |
| 253 | 255 | function get_specific_field_code_from_name($name) { |
@@ -85,6 +85,7 @@ |
||
| 85 | 85 | /** |
| 86 | 86 | * @author Sebastien Piraux <[email protected]> |
| 87 | 87 | * @param sql : a sql query (as a string) |
| 88 | + * @param integer $X |
|
| 88 | 89 | * @desc Return many results of a query in a X column tab |
| 89 | 90 | * in $resu[$i][0], $resu[$i][1],$resu[$i][2],... |
| 90 | 91 | * this function is more 'standard' but use a little |
@@ -18,6 +18,7 @@ discard block |
||
| 18 | 18 | * Get all files of lang folder (forum.inc.php,gradebook.inc.php,notebook.inc.php) |
| 19 | 19 | * @param String The lang path folder (/var/www/my_lms/main/lang/spanish) |
| 20 | 20 | * @param bool true if we only want the "subname" trad4all instead of trad4all.inc.php |
| 21 | + * @param string $path |
|
| 21 | 22 | * |
| 22 | 23 | * @return Array All file of lang folder |
| 23 | 24 | */ |
@@ -68,6 +69,7 @@ discard block |
||
| 68 | 69 | /** |
| 69 | 70 | * Get all information of language |
| 70 | 71 | * @param Integer The parent id(Language father id) |
| 72 | + * @param integer $parent_id |
|
| 71 | 73 | * @return Array All information about language |
| 72 | 74 | */ |
| 73 | 75 | public static function get_all_information_of_language($parent_id) |
@@ -86,6 +88,7 @@ discard block |
||
| 86 | 88 | /** |
| 87 | 89 | * Get all information of chamilo file |
| 88 | 90 | * @param String The chamilo path file (/var/www/chamilo/main/lang/spanish/gradebook.inc.php) |
| 91 | + * @param string $system_path_file |
|
| 89 | 92 | * @patam Bool Whether we want to remove the '$' prefix in the results or not |
| 90 | 93 | * @return Array Contains all information of chamilo file |
| 91 | 94 | */ |
@@ -345,7 +348,7 @@ discard block |
||
| 345 | 348 | /** |
| 346 | 349 | * Make available the language |
| 347 | 350 | * @param Integer The language id |
| 348 | - * @return void |
|
| 351 | + * @return boolean |
|
| 349 | 352 | */ |
| 350 | 353 | public static function make_available_language($language_id) |
| 351 | 354 | { |
@@ -31,6 +31,10 @@ |
||
| 31 | 31 | return $method == 'GET'; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $key |
|
| 36 | + * @param string $default |
|
| 37 | + */ |
|
| 34 | 38 | public static function post($key, $default = null) |
| 35 | 39 | { |
| 36 | 40 | return isset($_POST[$key]) ? $_POST[$key] : $default; |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | * @param string $direction The direction to sort (SORT_ASC (default) orSORT_DESC) |
| 81 | 81 | * @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. |
| 82 | 82 | * @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] |
| 83 | - * @param constant $type How should data be sorted (SORT_REGULAR, SORT_NUMERIC, SORT_STRING, SORT_DATE, SORT_IMAGE) |
|
| 83 | + * @param integer $type How should data be sorted (SORT_REGULAR, SORT_NUMERIC, SORT_STRING, SORT_DATE, SORT_IMAGE) |
|
| 84 | 84 | * @return array The sorted dataset |
| 85 | 85 | * @author [email protected] |
| 86 | 86 | */ |
@@ -330,6 +330,7 @@ discard block |
||
| 330 | 330 | /** |
| 331 | 331 | * Sets the footer visibility |
| 332 | 332 | * @param bool true if we show the footer |
| 333 | + * @param boolean $status |
|
| 333 | 334 | */ |
| 334 | 335 | public function set_footer($status) |
| 335 | 336 | { |
@@ -370,6 +371,7 @@ discard block |
||
| 370 | 371 | /** |
| 371 | 372 | * Sets the header visibility |
| 372 | 373 | * @param bool true if we show the header |
| 374 | + * @param boolean $status |
|
| 373 | 375 | */ |
| 374 | 376 | public function set_header($status) |
| 375 | 377 | { |