@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @param string Mobile phone number to be validated |
| 18 | 18 | * @param string Not using it. Just to respect the declaration |
| 19 | - * @return boolean Returns true if valid, false otherwise. |
|
| 19 | + * @return integer Returns true if valid, false otherwise. |
|
| 20 | 20 | */ |
| 21 | 21 | function validate($mobilePhoneNumber, $options = null) |
| 22 | 22 | { |
@@ -456,6 +456,10 @@ discard block |
||
| 456 | 456 | |
| 457 | 457 | |
| 458 | 458 | // Add warning(s) to $this->warnings[] |
| 459 | + |
|
| 460 | + /** |
|
| 461 | + * @param string $message |
|
| 462 | + */ |
|
| 459 | 463 | public function warning($message) { |
| 460 | 464 | |
| 461 | 465 | if (is_array($message)) { |
@@ -482,6 +486,11 @@ discard block |
||
| 482 | 486 | |
| 483 | 487 | |
| 484 | 488 | // Convert string between charsets -- iconv() wrapper |
| 489 | + |
|
| 490 | + /** |
|
| 491 | + * @param string $out_charset |
|
| 492 | + * @param string $string |
|
| 493 | + */ |
|
| 485 | 494 | public function iconv($in_charset, $out_charset, $string, $drop01 = false) { |
| 486 | 495 | |
| 487 | 496 | if ($drop01 && ($string === "\x00" || $string === "\x01")) { |
@@ -509,6 +518,9 @@ discard block |
||
| 509 | 518 | |
| 510 | 519 | |
| 511 | 520 | |
| 521 | + /** |
|
| 522 | + * @param string $name |
|
| 523 | + */ |
|
| 512 | 524 | public function include_module($name) { |
| 513 | 525 | |
| 514 | 526 | if (!file_exists($this->include_path.'module.'.$name.'.php')) { |
@@ -1342,6 +1354,10 @@ discard block |
||
| 1342 | 1354 | |
| 1343 | 1355 | |
| 1344 | 1356 | // Convert Big Endian byte string to int - max 32 bits |
| 1357 | + |
|
| 1358 | + /** |
|
| 1359 | + * @param string $byte_word |
|
| 1360 | + */ |
|
| 1345 | 1361 | public static function BigEndian2Int($byte_word, $signed = false) { |
| 1346 | 1362 | |
| 1347 | 1363 | $int_value = 0; |
@@ -1391,6 +1407,9 @@ discard block |
||
| 1391 | 1407 | |
| 1392 | 1408 | |
| 1393 | 1409 | |
| 1410 | + /** |
|
| 1411 | + * @param string $byte_word |
|
| 1412 | + */ |
|
| 1394 | 1413 | public static function BigEndian2Float($byte_word) { |
| 1395 | 1414 | |
| 1396 | 1415 | // ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic |
@@ -1478,6 +1497,9 @@ discard block |
||
| 1478 | 1497 | |
| 1479 | 1498 | |
| 1480 | 1499 | |
| 1500 | + /** |
|
| 1501 | + * @param string $binary_numerator |
|
| 1502 | + */ |
|
| 1481 | 1503 | public static function DecimalBinary2Float($binary_numerator) { |
| 1482 | 1504 | $numerator = bindec($binary_numerator); |
| 1483 | 1505 | $denominator = bindec('1'.str_repeat('0', strlen($binary_numerator))); |
@@ -276,6 +276,9 @@ discard block |
||
| 276 | 276 | public $pos; |
| 277 | 277 | |
| 278 | 278 | |
| 279 | + /** |
|
| 280 | + * @param string $bytes |
|
| 281 | + */ |
|
| 279 | 282 | public function AMFStream($bytes) { |
| 280 | 283 | |
| 281 | 284 | $this->bytes = $bytes; |
@@ -389,6 +392,9 @@ discard block |
||
| 389 | 392 | { |
| 390 | 393 | public $stream; |
| 391 | 394 | |
| 395 | + /** |
|
| 396 | + * @param AMFStream $stream |
|
| 397 | + */ |
|
| 392 | 398 | public function __construct($stream) { |
| 393 | 399 | |
| 394 | 400 | $this->stream = $stream; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * This functions stores the glossary in the database |
| 87 | 87 | * |
| 88 | 88 | * @param array Array of title + description (glossary_title => $title, glossary_comment => $comment) |
| 89 | - * @return mixed Term id on success, false on failure |
|
| 89 | + * @return false|string Term id on success, false on failure |
|
| 90 | 90 | * @author Christian Fasanando <[email protected]> |
| 91 | 91 | * @author Patrick Cool <[email protected]>, Ghent University, Belgium |
| 92 | 92 | * @version januari 2009, dokeos 1.8.6 |
@@ -443,6 +443,10 @@ discard block |
||
| 443 | 443 | * @param integer Number of items to collect |
| 444 | 444 | * @param string Name of column on which to order |
| 445 | 445 | * @param string Whether to sort in ascending (ASC) or descending (DESC) |
| 446 | + * @param integer $from |
|
| 447 | + * @param integer $number_of_items |
|
| 448 | + * @param integer $column |
|
| 449 | + * @param string $direction |
|
| 446 | 450 | * @return unknown |
| 447 | 451 | * |
| 448 | 452 | * @author Patrick Cool <[email protected]> |
@@ -520,6 +524,7 @@ discard block |
||
| 520 | 524 | * @param integer $glossary_id |
| 521 | 525 | * @param array Parameters to use to affect links |
| 522 | 526 | * @param array The line of results from a query on the glossary table |
| 527 | + * @param string $url_params |
|
| 523 | 528 | * @return string HTML string for the action icons columns |
| 524 | 529 | * |
| 525 | 530 | * @author Patrick Cool <[email protected]>, Ghent University, Belgium |
@@ -248,6 +248,9 @@ |
||
| 248 | 248 | //event_system(LOG_CAREER_DELETE, LOG_CAREER_ID, $id, api_get_utc_datetime(), api_get_user_id()); |
| 249 | 249 | } |
| 250 | 250 | |
| 251 | + /** |
|
| 252 | + * @param CatForm $form |
|
| 253 | + */ |
|
| 251 | 254 | public function fill_grade_model_select_in_form(&$form, $name = 'gradebook_model_id', $default_value = null) |
| 252 | 255 | { |
| 253 | 256 | if (api_get_setting('gradebook_enable_grade_model') == 'false') { |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @param int $visibility is active or not |
| 22 | 22 | * @param string $picture |
| 23 | 23 | * |
| 24 | - * @return boolean if success |
|
| 24 | + * @return string|false if success |
|
| 25 | 25 | */ |
| 26 | 26 | public static function add($name, $description, $url, $visibility, $picture = '') |
| 27 | 27 | { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * @param int $visibility |
| 58 | 58 | * @param string $picture_uri |
| 59 | 59 | * @param bool $allowMemberGroupToLeave |
| 60 | - * @return bool if success |
|
| 60 | + * @return Statement|null if success |
|
| 61 | 61 | */ |
| 62 | 62 | public static function update($group_id, $name, $description, $url, $visibility, $picture_uri, $allowMemberGroupToLeave = null) |
| 63 | 63 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * Deletes a group |
| 88 | 88 | * @author Julio Montoya |
| 89 | 89 | * @param int $id |
| 90 | - * @return boolean true if success |
|
| 90 | + * @return Statement|null true if success |
|
| 91 | 91 | * */ |
| 92 | 92 | public static function delete($id) |
| 93 | 93 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param int $group_id |
| 176 | 176 | * @param int $parent_group_id if 0, we delete the parent_group association |
| 177 | 177 | * @param int $relation_type |
| 178 | - * @return resource |
|
| 178 | + * @return Statement|null |
|
| 179 | 179 | **/ |
| 180 | 180 | public static function set_parent_group($group_id, $parent_group_id, $relation_type = 1) |
| 181 | 181 | { |
@@ -652,6 +652,7 @@ discard block |
||
| 652 | 652 | * @author Julio Montoya |
| 653 | 653 | * @param int user_id |
| 654 | 654 | * @param int url_id |
| 655 | + * @param integer $relation_type |
|
| 655 | 656 | * @return boolean true if success |
| 656 | 657 | **/ |
| 657 | 658 | public static function add_user_to_group($user_id, $group_id, $relation_type = GROUP_USER_PERMISSION_READER) |
@@ -735,7 +736,7 @@ discard block |
||
| 735 | 736 | * @author Julio Montoya |
| 736 | 737 | * @param int $group_id |
| 737 | 738 | * @param int $relation_type (optional) |
| 738 | - * @return boolean true if success |
|
| 739 | + * @return Statement|null true if success |
|
| 739 | 740 | * */ |
| 740 | 741 | public static function delete_users($group_id, $relation_type = null) |
| 741 | 742 | { |
@@ -916,6 +917,7 @@ discard block |
||
| 916 | 917 | * If an empty name is provided, then old user photos are deleted only, @see UserManager::delete_user_picture() |
| 917 | 918 | * as the prefered way for deletion. |
| 918 | 919 | * @param string $source_file The full system name of the image from which user photos will be created. |
| 920 | + * @param integer $group_id |
|
| 919 | 921 | * @return string/bool Returns the resulting file name of created images which usually should be stored in DB. |
| 920 | 922 | * When deletion is recuested returns empty string. In case of internal error or negative validation returns FALSE. |
| 921 | 923 | */ |
@@ -1074,7 +1076,9 @@ discard block |
||
| 1074 | 1076 | * |
| 1075 | 1077 | * @param string file picture |
| 1076 | 1078 | * @param int size in pixels |
| 1077 | - * @return obj image object |
|
| 1079 | + * @param string|null $file |
|
| 1080 | + * @param integer $max_size_for_picture |
|
| 1081 | + * @return Image image object |
|
| 1078 | 1082 | */ |
| 1079 | 1083 | public static function resize_picture($file, $max_size_for_picture) |
| 1080 | 1084 | { |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | * @author Christophe Gesche <[email protected]> |
| 370 | 370 | * @author Hugues Peeters <[email protected]> |
| 371 | 371 | * @author Bart Mollet |
| 372 | - * @param mixed $groupIdList - group(s) to delete. It can be a single id |
|
| 372 | + * @param mixed $group_ids - group(s) to delete. It can be a single id |
|
| 373 | 373 | * (int) or a list of id (array). |
| 374 | 374 | * @param string $course_code Default is current course |
| 375 | 375 | * @return integer - number of groups deleted. |
@@ -573,7 +573,7 @@ discard block |
||
| 573 | 573 | * @param bool Whether self registration is allowed or not |
| 574 | 574 | * @param bool Whether self unregistration is allowed or not |
| 575 | 575 | * @param int $categoryId |
| 576 | - * @return bool TRUE if properties are successfully changed, false otherwise |
|
| 576 | + * @return Statement|null TRUE if properties are successfully changed, false otherwise |
|
| 577 | 577 | */ |
| 578 | 578 | public static function set_group_properties( |
| 579 | 579 | $group_id, |
@@ -724,7 +724,7 @@ discard block |
||
| 724 | 724 | * @param int $group_id The id of the group |
| 725 | 725 | * @param string $course_code The course in which the group is (default = |
| 726 | 726 | * current course) |
| 727 | - * @return array The category |
|
| 727 | + * @return integer The category |
|
| 728 | 728 | */ |
| 729 | 729 | public static function get_category_from_group($group_id, $course_code = null) |
| 730 | 730 | { |
@@ -786,9 +786,9 @@ discard block |
||
| 786 | 786 | * Create group category |
| 787 | 787 | * @param string $title The title of the new category |
| 788 | 788 | * @param string $description The description of the new category |
| 789 | - * @param bool $self_registration_allowed |
|
| 790 | - * @param bool $self_unregistration_allowed |
|
| 791 | - * @param int $max_number_of_students |
|
| 789 | + * @param integer $self_registration_allowed |
|
| 790 | + * @param integer $self_unregistration_allowed |
|
| 791 | + * @param int $maximum_number_of_students |
|
| 792 | 792 | * @param int $groups_per_user |
| 793 | 793 | */ |
| 794 | 794 | public static function create_category( |
@@ -994,6 +994,8 @@ discard block |
||
| 994 | 994 | * @param int $limit |
| 995 | 995 | * @param bool $getCount |
| 996 | 996 | * @param int $courseId |
| 997 | + * @param string $column |
|
| 998 | + * @param string $direction |
|
| 997 | 999 | * @return array list of user id |
| 998 | 1000 | */ |
| 999 | 1001 | public static function get_users( |
@@ -1172,7 +1174,7 @@ discard block |
||
| 1172 | 1174 | * Hugues Peeters <[email protected]> - original version |
| 1173 | 1175 | * @author Roan Embrechts - virtual course support, code cleaning |
| 1174 | 1176 | * @author Bart Mollet - code cleaning, use other GroupManager-functions |
| 1175 | - * @return void |
|
| 1177 | + * @return false|null |
|
| 1176 | 1178 | */ |
| 1177 | 1179 | public static function fill_groups($group_ids) |
| 1178 | 1180 | { |
@@ -1625,7 +1627,7 @@ discard block |
||
| 1625 | 1627 | * Unsubscribe user(s) from a specified group in current course |
| 1626 | 1628 | * @param mixed $user_ids Can be an array with user-id's or a single user-id |
| 1627 | 1629 | * @param int $group_id |
| 1628 | - * @return bool TRUE if successful |
|
| 1630 | + * @return boolean|null TRUE if successful |
|
| 1629 | 1631 | */ |
| 1630 | 1632 | public static function unsubscribe_users($user_ids, $group_id) |
| 1631 | 1633 | { |
@@ -1644,7 +1646,7 @@ discard block |
||
| 1644 | 1646 | |
| 1645 | 1647 | /** |
| 1646 | 1648 | * Unsubscribe all users from one or more groups |
| 1647 | - * @param mixed $group_id Can be an array with group-id's or a single group-id |
|
| 1649 | + * @param mixed $group_ids Can be an array with group-id's or a single group-id |
|
| 1648 | 1650 | * @return bool TRUE if successful |
| 1649 | 1651 | */ |
| 1650 | 1652 | public static function unsubscribe_all_users($group_ids) |
@@ -1676,7 +1678,7 @@ discard block |
||
| 1676 | 1678 | |
| 1677 | 1679 | /** |
| 1678 | 1680 | * Unsubscribe all tutors from one or more groups |
| 1679 | - * @param mixed $group_id Can be an array with group-id's or a single group-id |
|
| 1681 | + * @param mixed $group_ids Can be an array with group-id's or a single group-id |
|
| 1680 | 1682 | * @see unsubscribe_all_users. This function is almost an exact copy of that function. |
| 1681 | 1683 | * @return bool TRUE if successful |
| 1682 | 1684 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1861,6 +1863,7 @@ discard block |
||
| 1861 | 1863 | * |
| 1862 | 1864 | * @param $user_array_in list of users (must be sorted). |
| 1863 | 1865 | * @param string $compare_field, the field to be compared |
| 1866 | + * @param string $compare_field |
|
| 1864 | 1867 | */ |
| 1865 | 1868 | public static function filter_duplicates($user_array_in, $compare_field) |
| 1866 | 1869 | { |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | 140 | * Return a list an associative array where keys are the active hook observer class name |
| 141 | - * @param $eventName |
|
| 141 | + * @param string $eventName |
|
| 142 | 142 | * |
| 143 | 143 | * @return array |
| 144 | 144 | */ |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 138 | 138 | * @since 2.4.8 - 2008-10-21 |
| 139 | 139 | * @param string $value |
| 140 | - * @return void |
|
| 140 | + * @return false|null |
|
| 141 | 141 | */ |
| 142 | 142 | function setCalscale( $value ) { |
| 143 | 143 | if( empty( $value )) return FALSE; |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 274 | 274 | * @since 2.4.8 - 2008-10-23 |
| 275 | 275 | * @param string $value |
| 276 | - * @return void |
|
| 276 | + * @return boolean |
|
| 277 | 277 | */ |
| 278 | 278 | function setVersion( $value ) { |
| 279 | 279 | if( empty( $value )) return FALSE; |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | * @since 2.5.1 - 2008-11-02 |
| 398 | 398 | * @param string $propName, optional |
| 399 | 399 | * @param int @propix, optional, if specific property is wanted in case of multiply occurences |
| 400 | - * @param bool $inclParam=FALSE |
|
| 400 | + * @param bool $inclParam |
|
| 401 | 401 | * @return mixed |
| 402 | 402 | */ |
| 403 | 403 | function getProperty( $propName=FALSE, $propix=FALSE, $inclParam=FALSE ) { |
@@ -448,9 +448,6 @@ discard block |
||
| 448 | 448 | * |
| 449 | 449 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 450 | 450 | * @since 2.2.13 - 2007-11-04 |
| 451 | - * @param mixed $args variable number of function arguments, |
|
| 452 | - * first argument is ALWAYS component name, |
|
| 453 | - * second ALWAYS component value! |
|
| 454 | 451 | * @return bool |
| 455 | 452 | */ |
| 456 | 453 | function setProperty () { |
@@ -480,7 +477,7 @@ discard block |
||
| 480 | 477 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 481 | 478 | * @since 2.4.10 - 2008-10-23 |
| 482 | 479 | * @param string $config |
| 483 | - * @return value |
|
| 480 | + * @return string |
|
| 484 | 481 | */ |
| 485 | 482 | function getConfig( $config ) { |
| 486 | 483 | switch( strtoupper( $config )) { |
@@ -701,7 +698,7 @@ discard block |
||
| 701 | 698 | * @since 2.4.10 - 2008-08-05 |
| 702 | 699 | * @param mixed $arg1 ordno / component type / component uid |
| 703 | 700 | * @param mixed $arg2 optional, ordno if arg1 = component type |
| 704 | - * @return void |
|
| 701 | + * @return boolean |
|
| 705 | 702 | */ |
| 706 | 703 | function deleteComponent( $arg1, $arg2=FALSE ) { |
| 707 | 704 | $argType = $index = null; |
@@ -1060,7 +1057,7 @@ discard block |
||
| 1060 | 1057 | * @param object $component calendar component |
| 1061 | 1058 | * @param mixed $arg1 optional, ordno/component type/ component uid |
| 1062 | 1059 | * @param mixed $arg2 optional, ordno if arg1 = component type |
| 1063 | - * @return void |
|
| 1060 | + * @return boolean |
|
| 1064 | 1061 | */ |
| 1065 | 1062 | function setComponent( $component, $arg1=FALSE, $arg2=FALSE ) { |
| 1066 | 1063 | if( '' >= $component->getConfig( 'language')) |
@@ -2309,7 +2306,7 @@ discard block |
||
| 2309 | 2306 | * @param int $min optional |
| 2310 | 2307 | * @param int $sec optional |
| 2311 | 2308 | * @param array $params optional |
| 2312 | - * @return TRUE |
|
| 2309 | + * @return boolean |
|
| 2313 | 2310 | */ |
| 2314 | 2311 | function setDtstamp( $year, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $params=FALSE ) { |
| 2315 | 2312 | if( empty( $year )) |
@@ -2792,7 +2789,7 @@ discard block |
||
| 2792 | 2789 | * @param int $min optional |
| 2793 | 2790 | * @param int $sec optional |
| 2794 | 2791 | * @param array $params optional |
| 2795 | - * @return boll |
|
| 2792 | + * @return boolean |
|
| 2796 | 2793 | */ |
| 2797 | 2794 | function setLastModified( $year=FALSE, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $params=FALSE ) { |
| 2798 | 2795 | if( empty( $year )) |
@@ -3213,7 +3210,6 @@ discard block |
||
| 3213 | 3210 | * |
| 3214 | 3211 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 3215 | 3212 | * @since 2.5.1 - 2008-11-07 |
| 3216 | - * @param float $relid |
|
| 3217 | 3213 | * @param array $params, optional |
| 3218 | 3214 | * @param index $index, optional |
| 3219 | 3215 | * @return bool |
@@ -3251,7 +3247,7 @@ discard block |
||
| 3251 | 3247 | * @since 2.4.8 - 2008-11-04 |
| 3252 | 3248 | * @param string $value |
| 3253 | 3249 | * @param array $params optional |
| 3254 | - * @return void |
|
| 3250 | + * @return boolean |
|
| 3255 | 3251 | */ |
| 3256 | 3252 | function setRepeat( $value, $params=FALSE ) { |
| 3257 | 3253 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
@@ -3374,7 +3370,7 @@ discard block |
||
| 3374 | 3370 | * @param array $rruleset |
| 3375 | 3371 | * @param array $params, optional |
| 3376 | 3372 | * @param integer $index, optional |
| 3377 | - * @return void |
|
| 3373 | + * @return boolean |
|
| 3378 | 3374 | */ |
| 3379 | 3375 | function setRrule( $rruleset, $params=FALSE, $index=FALSE ) { |
| 3380 | 3376 | if( empty( $rruleset )) if( $this->getConfig( 'allowEmpty' )) $rruleset = null; else return FALSE; |
@@ -3800,7 +3796,7 @@ discard block |
||
| 3800 | 3796 | * @since 2.4.8 - 2008-11-04 |
| 3801 | 3797 | * @param string $value |
| 3802 | 3798 | * @param string $params optional |
| 3803 | - * @return boll |
|
| 3799 | + * @return boolean |
|
| 3804 | 3800 | */ |
| 3805 | 3801 | function setTzurl( $value, $params=FALSE ) { |
| 3806 | 3802 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
@@ -3929,7 +3925,7 @@ discard block |
||
| 3929 | 3925 | * @param string $label |
| 3930 | 3926 | * @param mixed $value |
| 3931 | 3927 | * @param array $params optional |
| 3932 | - * @return bool |
|
| 3928 | + * @return null|boolean |
|
| 3933 | 3929 | */ |
| 3934 | 3930 | function setXprop( $label, $value, $params=FALSE ) { |
| 3935 | 3931 | if( empty( $label )) return; |
@@ -4096,7 +4092,7 @@ discard block |
||
| 4096 | 4092 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 4097 | 4093 | * @since 0.9.22 - 2007-04-10 |
| 4098 | 4094 | * @param array $params optional |
| 4099 | - * @param array $ctrKeys optional |
|
| 4095 | + * @param string[] $ctrKeys optional |
|
| 4100 | 4096 | * @return string |
| 4101 | 4097 | */ |
| 4102 | 4098 | function _createParams( $params=array(), $ctrKeys=array() ) { |
@@ -4138,7 +4134,6 @@ discard block |
||
| 4138 | 4134 | * |
| 4139 | 4135 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 4140 | 4136 | * @since 2.4.16 - 2008-10-25 |
| 4141 | - * @param array $date, date to check |
|
| 4142 | 4137 | * @param int $parno, no of date parts (i.e. year, month.. .) |
| 4143 | 4138 | * @return array $params, property parameters |
| 4144 | 4139 | */ |
@@ -4194,7 +4189,6 @@ discard block |
||
| 4194 | 4189 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 4195 | 4190 | * @since 2.2.11 - 2007-11-03 |
| 4196 | 4191 | * @param array $startdate, optional |
| 4197 | - * @param array $duration, optional |
|
| 4198 | 4192 | * @return array duration |
| 4199 | 4193 | */ |
| 4200 | 4194 | function _date2duration( $startdate=FALSE, $enddate=FALSE ) { |
@@ -4228,7 +4222,7 @@ discard block |
||
| 4228 | 4222 | * @since 2.4.8 - 2008-10-30 |
| 4229 | 4223 | * @param array $datetime datetime/(date) |
| 4230 | 4224 | * @param string $tz timezone |
| 4231 | - * @return timestamp |
|
| 4225 | + * @return integer |
|
| 4232 | 4226 | */ |
| 4233 | 4227 | function _date2timestamp( $datetime, $tz=null ) { |
| 4234 | 4228 | $output = null; |
@@ -4541,6 +4535,7 @@ discard block |
||
| 4541 | 4535 | * @param int $hitVal optional, return value if found |
| 4542 | 4536 | * @param int $elseVal optional, return value if not found |
| 4543 | 4537 | * @param int $preSet optional, return value if already preset |
| 4538 | + * @param string $expkey |
|
| 4544 | 4539 | * @return int |
| 4545 | 4540 | */ |
| 4546 | 4541 | function _existRem( &$array, $expkey, $expval=FALSE, $hitVal=null, $elseVal=null, $preSet=null ) { |
@@ -4650,7 +4645,7 @@ discard block |
||
| 4650 | 4645 | * |
| 4651 | 4646 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 4652 | 4647 | * @since 2.4.8 - 2008-10-22 |
| 4653 | - * @param array $recurlabel |
|
| 4648 | + * @param string $recurlabel |
|
| 4654 | 4649 | * @param array $recurdata |
| 4655 | 4650 | * @return string |
| 4656 | 4651 | */ |
@@ -5196,6 +5191,10 @@ discard block |
||
| 5196 | 5191 | else |
| 5197 | 5192 | return FALSE; |
| 5198 | 5193 | } |
| 5194 | + |
|
| 5195 | + /** |
|
| 5196 | + * @param integer $wkst |
|
| 5197 | + */ |
|
| 5199 | 5198 | function _recurIntervalIx( $freq, $date, $wkst ) { |
| 5200 | 5199 | /* create interval index */ |
| 5201 | 5200 | switch( $freq ) { |
@@ -5504,7 +5503,6 @@ discard block |
||
| 5504 | 5503 | * |
| 5505 | 5504 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 5506 | 5505 | * @since 2.4.16 - 2008-10-19 |
| 5507 | - * @param string $offset |
|
| 5508 | 5506 | * @return integer |
| 5509 | 5507 | */ |
| 5510 | 5508 | function _tz2offset( $tz ) { |
@@ -5966,8 +5964,8 @@ discard block |
||
| 5966 | 5964 | * @since 2.5.1 - 2008-11-02 |
| 5967 | 5965 | * @param string $propName, optional |
| 5968 | 5966 | * @param int @propix, optional, if specific property is wanted in case of multiply occurences |
| 5969 | - * @param bool $inclParam=FALSE |
|
| 5970 | - * @param bool $specform=FALSE |
|
| 5967 | + * @param bool $inclParam |
|
| 5968 | + * @param bool $specform |
|
| 5971 | 5969 | * @return mixed |
| 5972 | 5970 | */ |
| 5973 | 5971 | function getProperty( $propName=FALSE, $propix=FALSE, $inclParam=FALSE, $specform=FALSE ) { |
@@ -6160,9 +6158,6 @@ discard block |
||
| 6160 | 6158 | * |
| 6161 | 6159 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 6162 | 6160 | * @since 2.5.1 - 2008-11-05 |
| 6163 | - * @param mixed $args variable number of function arguments, |
|
| 6164 | - * first argument is ALWAYS component name, |
|
| 6165 | - * second ALWAYS component value! |
|
| 6166 | 6161 | * @return void |
| 6167 | 6162 | */ |
| 6168 | 6163 | function setProperty() { |
@@ -6276,7 +6271,7 @@ discard block |
||
| 6276 | 6271 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 6277 | 6272 | * @since 2.5.2 - 2008-10-23 |
| 6278 | 6273 | * @param mixed $unparsedtext, optional, strict rfc2445 formatted, single property string or array of property strings |
| 6279 | - * @return bool FALSE if error occurs during parsing |
|
| 6274 | + * @return boolean|null FALSE if error occurs during parsing |
|
| 6280 | 6275 | * |
| 6281 | 6276 | */ |
| 6282 | 6277 | function parse( $unparsedtext=null ) { |
@@ -6578,7 +6573,7 @@ discard block |
||
| 6578 | 6573 | * @since 2.5.1 - 2008-10-15 |
| 6579 | 6574 | * @param mixed $arg1 ordno / component type / component uid |
| 6580 | 6575 | * @param mixed $arg2 optional, ordno if arg1 = component type |
| 6581 | - * @return void |
|
| 6576 | + * @return boolean |
|
| 6582 | 6577 | */ |
| 6583 | 6578 | function deleteComponent( $arg1, $arg2=FALSE ) { |
| 6584 | 6579 | if( !isset( $this->components )) return FALSE; |
@@ -6781,7 +6776,7 @@ discard block |
||
| 6781 | 6776 | * |
| 6782 | 6777 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 6783 | 6778 | * @since 2.2.8 - 2006-09-03 |
| 6784 | - * @param string $value |
|
| 6779 | + * @param string $string |
|
| 6785 | 6780 | * @return string |
| 6786 | 6781 | */ |
| 6787 | 6782 | function _size75( $string ) { |