@@ -94,7 +94,7 @@ |
||
| 94 | 94 | /** |
| 95 | 95 | * Get id |
| 96 | 96 | * |
| 97 | - * @return string |
|
| 97 | + * @return integer |
|
| 98 | 98 | */ |
| 99 | 99 | public function getId() |
| 100 | 100 | { |
@@ -928,7 +928,7 @@ discard block |
||
| 928 | 928 | /** |
| 929 | 929 | * Get pictureUri |
| 930 | 930 | * |
| 931 | - * @return Media |
|
| 931 | + * @return string |
|
| 932 | 932 | */ |
| 933 | 933 | public function getPictureUri() |
| 934 | 934 | { |
@@ -1305,7 +1305,7 @@ discard block |
||
| 1305 | 1305 | } |
| 1306 | 1306 | |
| 1307 | 1307 | /** |
| 1308 | - * @return Media |
|
| 1308 | + * @return string |
|
| 1309 | 1309 | */ |
| 1310 | 1310 | public function getAvatar() |
| 1311 | 1311 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * Deletes all survey invitations of a user |
| 48 | 48 | * @param int $user_id |
| 49 | 49 | * |
| 50 | - * @return boolean |
|
| 50 | + * @return false|null |
|
| 51 | 51 | * @assert ('') === false |
| 52 | 52 | */ |
| 53 | 53 | public static function delete_all_survey_invitations_by_user($user_id) |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * Retrieves all the survey information |
| 105 | 105 | * |
| 106 | 106 | * @param integer $survey_id the id of the survey |
| 107 | - * @param boolean $shared this parameter determines if |
|
| 107 | + * @param integer $shared this parameter determines if |
|
| 108 | 108 | * we have to get the information of a survey from the central (shared) database or from the |
| 109 | 109 | * course database |
| 110 | 110 | * @param string course code optional |
@@ -571,7 +571,7 @@ discard block |
||
| 571 | 571 | * This function deletes a survey (and also all the question in that survey |
| 572 | 572 | * |
| 573 | 573 | * @param int $survey_id id of the survey that has to be deleted |
| 574 | - * @return true |
|
| 574 | + * @return boolean |
|
| 575 | 575 | * |
| 576 | 576 | * @author Patrick Cool <[email protected]>, Ghent University |
| 577 | 577 | * @version January 2007 |
@@ -756,7 +756,7 @@ discard block |
||
| 756 | 756 | * |
| 757 | 757 | * @param int $survey_id id of the survey that has to be duplicated |
| 758 | 758 | * @param int $courseId id of the course which survey has to be duplicated |
| 759 | - * @return true |
|
| 759 | + * @return boolean |
|
| 760 | 760 | * |
| 761 | 761 | * @author Eric Marguin <[email protected]>, Elixir Interactive |
| 762 | 762 | * @version October 2007 |
@@ -796,7 +796,7 @@ discard block |
||
| 796 | 796 | /** |
| 797 | 797 | * This function recalculates the number of people who have taken the survey (=filled at least one question) |
| 798 | 798 | * |
| 799 | - * @param int $survey_id the id of the survey somebody |
|
| 799 | + * @param int $survey_data the id of the survey somebody |
|
| 800 | 800 | * @return true |
| 801 | 801 | * |
| 802 | 802 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1367,7 +1367,7 @@ discard block |
||
| 1367 | 1367 | * This function deletes a shared survey question from the main database and all its options |
| 1368 | 1368 | * |
| 1369 | 1369 | * @param int $question_id the id of the question |
| 1370 | - * @param int $shared |
|
| 1370 | + * @param integer $survey_id |
|
| 1371 | 1371 | * |
| 1372 | 1372 | * @todo delete all the options of this question |
| 1373 | 1373 | * |
@@ -1494,8 +1494,8 @@ discard block |
||
| 1494 | 1494 | * This function deletes all the options of the questions of a given survey |
| 1495 | 1495 | * This function is normally only called when a survey is deleted |
| 1496 | 1496 | * |
| 1497 | - * @param $survey_id the id of the survey that has to be deleted |
|
| 1498 | - * @return true |
|
| 1497 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
| 1498 | + * @return boolean |
|
| 1499 | 1499 | * |
| 1500 | 1500 | * @author Patrick Cool <[email protected]>, Ghent University |
| 1501 | 1501 | * @version January 2007 |
@@ -1561,8 +1561,8 @@ discard block |
||
| 1561 | 1561 | * This function deletes all the answers anyone has given on this survey |
| 1562 | 1562 | * This function is normally only called when a survey is deleted |
| 1563 | 1563 | * |
| 1564 | - * @param $survey_id the id of the survey that has to be deleted |
|
| 1565 | - * @return true |
|
| 1564 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
| 1565 | + * @return boolean |
|
| 1566 | 1566 | * |
| 1567 | 1567 | * @todo write the function |
| 1568 | 1568 | * |
@@ -1804,7 +1804,7 @@ discard block |
||
| 1804 | 1804 | /** |
| 1805 | 1805 | * This function checks the parameters that are used in this page |
| 1806 | 1806 | * |
| 1807 | - * @return string The header, an error and the footer if any parameter fails, else it returns true |
|
| 1807 | + * @return null|boolean The header, an error and the footer if any parameter fails, else it returns true |
|
| 1808 | 1808 | * @author Patrick Cool <[email protected]>, Ghent University |
| 1809 | 1809 | * @version February 2007 |
| 1810 | 1810 | */ |
@@ -2371,6 +2371,7 @@ discard block |
||
| 2371 | 2371 | * Display score data about a survey question |
| 2372 | 2372 | * @param array Question info |
| 2373 | 2373 | * @param integer The offset of results shown |
| 2374 | + * @param integer $offset |
|
| 2374 | 2375 | * @return void (direct output) |
| 2375 | 2376 | */ |
| 2376 | 2377 | public static function display_question_report_score($survey_data, $question, $offset) |
@@ -3208,7 +3209,7 @@ discard block |
||
| 3208 | 3209 | * @param array User's answers |
| 3209 | 3210 | * @param mixed User ID or user details as string - Used as a string in the result string |
| 3210 | 3211 | * @param boolean Whether to display user fields or not |
| 3211 | - * @return string One line of the csv file |
|
| 3212 | + * @return string[] One line of the csv file |
|
| 3212 | 3213 | */ |
| 3213 | 3214 | public static function export_complete_report_row_xls( |
| 3214 | 3215 | $survey_data, |
@@ -3801,7 +3802,7 @@ discard block |
||
| 3801 | 3802 | |
| 3802 | 3803 | /** |
| 3803 | 3804 | * @param $params |
| 3804 | - * @return bool|int |
|
| 3805 | + * @return false|string |
|
| 3805 | 3806 | */ |
| 3806 | 3807 | public static function save_invitation($params) |
| 3807 | 3808 | { |
@@ -3855,6 +3856,7 @@ discard block |
||
| 3855 | 3856 | * |
| 3856 | 3857 | * @param int invitedUser - the userId (course user) or emailaddress of additional user |
| 3857 | 3858 | * $param string $invitation_code - the unique invitation code for the URL |
| 3859 | + * @param string|null $invitation_text |
|
| 3858 | 3860 | * @return void |
| 3859 | 3861 | */ |
| 3860 | 3862 | public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text) |
@@ -4783,7 +4785,7 @@ discard block |
||
| 4783 | 4785 | /** |
| 4784 | 4786 | * @author Isaac Flores Paz <[email protected]> |
| 4785 | 4787 | * @param int $user_id - User ID |
| 4786 | - * @param int $user_id_answer - User in survey answer table (user id or anonymus) |
|
| 4788 | + * @param int $user_answer - User in survey answer table (user id or anonymus) |
|
| 4787 | 4789 | * @return boolean |
| 4788 | 4790 | */ |
| 4789 | 4791 | static function show_link_available($user_id, $survey_code, $user_answer) |
@@ -4829,7 +4831,7 @@ discard block |
||
| 4829 | 4831 | * Display survey question chart |
| 4830 | 4832 | * @param array Chart data |
| 4831 | 4833 | * @param boolean Tells if the chart has a serie. False by default |
| 4832 | - * @return void (direct output) |
|
| 4834 | + * @return string (direct output) |
|
| 4833 | 4835 | */ |
| 4834 | 4836 | public static function drawChart($chartData, $hasSerie = false, $chartContainerId = 'chartContainer') |
| 4835 | 4837 | { |
@@ -366,6 +366,9 @@ discard block |
||
| 366 | 366 | Output: $expandedLinks the expanded links |
| 367 | 367 | \*======================================================================*/ |
| 368 | 368 | |
| 369 | + /** |
|
| 370 | + * @param string $links |
|
| 371 | + */ |
|
| 369 | 372 | private function _expandlinks($links,$URI) |
| 370 | 373 | { |
| 371 | 374 | |
@@ -400,6 +403,9 @@ discard block |
||
| 400 | 403 | Output: |
| 401 | 404 | \*======================================================================*/ |
| 402 | 405 | |
| 406 | + /** |
|
| 407 | + * @param string $http_method |
|
| 408 | + */ |
|
| 403 | 409 | private function _httprequest($url,$fp,$URI,$http_method,$content_type="",$body="") |
| 404 | 410 | { |
| 405 | 411 | if($this->passcookies && $this->_redirectaddr) |
@@ -583,6 +589,9 @@ discard block |
||
| 583 | 589 | Output: |
| 584 | 590 | \*======================================================================*/ |
| 585 | 591 | |
| 592 | + /** |
|
| 593 | + * @param string $http_method |
|
| 594 | + */ |
|
| 586 | 595 | private function _httpsrequest($url,$URI,$http_method,$content_type="",$body="") |
| 587 | 596 | { |
| 588 | 597 | if($this->passcookies && $this->_redirectaddr) |
@@ -766,6 +775,9 @@ discard block |
||
| 766 | 775 | Input: $fp file pointer |
| 767 | 776 | \*======================================================================*/ |
| 768 | 777 | |
| 778 | + /** |
|
| 779 | + * @param boolean $fp |
|
| 780 | + */ |
|
| 769 | 781 | private function _connect(&$fp) |
| 770 | 782 | { |
| 771 | 783 | if(!empty($this->proxy_host) && !empty($this->proxy_port)) |
@@ -50,6 +50,9 @@ discard block |
||
| 50 | 50 | Input: url from wich the rss file was fetched |
| 51 | 51 | Output: true on sucess |
| 52 | 52 | \*=======================================================================*/ |
| 53 | + /** |
|
| 54 | + * @param string $url |
|
| 55 | + */ |
|
| 53 | 56 | public function set ($url, $rss) { |
| 54 | 57 | $this->ERROR = ""; |
| 55 | 58 | $cache_file = $this->file_name( $url ); |
@@ -76,6 +79,9 @@ discard block |
||
| 76 | 79 | Input: url from wich the rss file was fetched |
| 77 | 80 | Output: cached object on HIT, false on MISS |
| 78 | 81 | \*=======================================================================*/ |
| 82 | + /** |
|
| 83 | + * @param string $url |
|
| 84 | + */ |
|
| 79 | 85 | public function get ($url) { |
| 80 | 86 | $this->ERROR = ""; |
| 81 | 87 | $cache_file = $this->file_name( $url ); |
@@ -112,6 +118,9 @@ discard block |
||
| 112 | 118 | Input: url from wich the rss file was fetched |
| 113 | 119 | Output: cached object on HIT, false on MISS |
| 114 | 120 | \*=======================================================================*/ |
| 121 | + /** |
|
| 122 | + * @param string $url |
|
| 123 | + */ |
|
| 115 | 124 | public function check_cache ( $url ) { |
| 116 | 125 | $this->ERROR = ""; |
| 117 | 126 | $filename = $this->file_name( $url ); |
@@ -158,6 +167,9 @@ discard block |
||
| 158 | 167 | /*=======================================================================*\ |
| 159 | 168 | Function: unserialize |
| 160 | 169 | \*=======================================================================*/ |
| 170 | + /** |
|
| 171 | + * @param string $data |
|
| 172 | + */ |
|
| 161 | 173 | public function unserialize ( $data ) { |
| 162 | 174 | return unserialize( $data ); |
| 163 | 175 | } |
@@ -228,6 +228,9 @@ discard block |
||
| 228 | 228 | Purpose: set MAGPIE_ERROR, and trigger error |
| 229 | 229 | \*=======================================================================*/ |
| 230 | 230 | |
| 231 | +/** |
|
| 232 | + * @param integer $lvl |
|
| 233 | + */ |
|
| 231 | 234 | function error ($errormsg, $lvl=E_USER_WARNING) { |
| 232 | 235 | global $MAGPIE_ERROR; |
| 233 | 236 | |
@@ -242,6 +245,9 @@ discard block |
||
| 242 | 245 | } |
| 243 | 246 | } |
| 244 | 247 | |
| 248 | +/** |
|
| 249 | + * @param integer $lvl |
|
| 250 | + */ |
|
| 245 | 251 | function debug ($debugmsg, $lvl=E_USER_NOTICE) { |
| 246 | 252 | trigger_error("MagpieRSS [debug] $debugmsg", $lvl); |
| 247 | 253 | } |
@@ -288,6 +294,9 @@ discard block |
||
| 288 | 294 | Input: an HTTP response object (see Snoopy) |
| 289 | 295 | Output: parsed RSS object (see rss_parse) |
| 290 | 296 | \*=======================================================================*/ |
| 297 | +/** |
|
| 298 | + * @param Snoopy $resp |
|
| 299 | + */ |
|
| 291 | 300 | function _response_to_rss ($resp) { |
| 292 | 301 | $rss = new MagpieRSS( $resp->results, MAGPIE_OUTPUT_ENCODING, MAGPIE_INPUT_ENCODING, MAGPIE_DETECT_ENCODING ); |
| 293 | 302 | |
@@ -449,6 +449,10 @@ discard block |
||
| 449 | 449 | /** |
| 450 | 450 | * return XML parser, and possibly re-encoded source |
| 451 | 451 | * |
| 452 | + * @param string $source |
|
| 453 | + * @param string $out_enc |
|
| 454 | + * @param string|null $in_enc |
|
| 455 | + * @param boolean $detect |
|
| 452 | 456 | */ |
| 453 | 457 | public function create_parser($source, $out_enc, $in_enc, $detect) { |
| 454 | 458 | if ( substr(phpversion(),0,1) == 5) { |
@@ -558,6 +562,9 @@ discard block |
||
| 558 | 562 | } |
| 559 | 563 | } |
| 560 | 564 | |
| 565 | + /** |
|
| 566 | + * @param integer $lvl |
|
| 567 | + */ |
|
| 561 | 568 | public function error ($errormsg, $lvl=E_USER_WARNING) { |
| 562 | 569 | // append PHP's error message if track_errors enabled |
| 563 | 570 | if ( isset($php_errormsg) ) { |
@@ -593,6 +600,9 @@ discard block |
||
| 593 | 600 | define("CASE_LOWER",0); |
| 594 | 601 | |
| 595 | 602 | |
| 603 | + /** |
|
| 604 | + * @param integer $case |
|
| 605 | + */ |
|
| 596 | 606 | function array_change_key_case($array,$case=CASE_LOWER) { |
| 597 | 607 | if ($case=CASE_LOWER) $cmd=strtolower; |
| 598 | 608 | elseif ($case=CASE_UPPER) $cmd=strtoupper; |
@@ -23,6 +23,9 @@ |
||
| 23 | 23 | //echo $data[ROOT_START_BLOCK_POS]; |
| 24 | 24 | //function log |
| 25 | 25 | |
| 26 | +/** |
|
| 27 | + * @param integer $pos |
|
| 28 | + */ |
|
| 26 | 29 | function GetInt4d($data, $pos) |
| 27 | 30 | {
|
| 28 | 31 | $value = ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24); |
@@ -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')) |
@@ -2311,7 +2308,7 @@ discard block |
||
| 2311 | 2308 | * @param int $min optional |
| 2312 | 2309 | * @param int $sec optional |
| 2313 | 2310 | * @param array $params optional |
| 2314 | - * @return TRUE |
|
| 2311 | + * @return boolean |
|
| 2315 | 2312 | */ |
| 2316 | 2313 | function setDtstamp( $year, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $params=FALSE ) { |
| 2317 | 2314 | if( empty( $year )) |
@@ -2794,7 +2791,7 @@ discard block |
||
| 2794 | 2791 | * @param int $min optional |
| 2795 | 2792 | * @param int $sec optional |
| 2796 | 2793 | * @param array $params optional |
| 2797 | - * @return boll |
|
| 2794 | + * @return boolean |
|
| 2798 | 2795 | */ |
| 2799 | 2796 | function setLastModified( $year=FALSE, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $params=FALSE ) { |
| 2800 | 2797 | if( empty( $year )) |
@@ -3215,7 +3212,6 @@ discard block |
||
| 3215 | 3212 | * |
| 3216 | 3213 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 3217 | 3214 | * @since 2.5.1 - 2008-11-07 |
| 3218 | - * @param float $relid |
|
| 3219 | 3215 | * @param array $params, optional |
| 3220 | 3216 | * @param index $index, optional |
| 3221 | 3217 | * @return bool |
@@ -3253,7 +3249,7 @@ discard block |
||
| 3253 | 3249 | * @since 2.4.8 - 2008-11-04 |
| 3254 | 3250 | * @param string $value |
| 3255 | 3251 | * @param array $params optional |
| 3256 | - * @return void |
|
| 3252 | + * @return boolean |
|
| 3257 | 3253 | */ |
| 3258 | 3254 | function setRepeat( $value, $params=FALSE ) { |
| 3259 | 3255 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
@@ -3376,7 +3372,7 @@ discard block |
||
| 3376 | 3372 | * @param array $rruleset |
| 3377 | 3373 | * @param array $params, optional |
| 3378 | 3374 | * @param integer $index, optional |
| 3379 | - * @return void |
|
| 3375 | + * @return boolean |
|
| 3380 | 3376 | */ |
| 3381 | 3377 | function setRrule( $rruleset, $params=FALSE, $index=FALSE ) { |
| 3382 | 3378 | if( empty( $rruleset )) if( $this->getConfig( 'allowEmpty' )) $rruleset = null; else return FALSE; |
@@ -3802,7 +3798,7 @@ discard block |
||
| 3802 | 3798 | * @since 2.4.8 - 2008-11-04 |
| 3803 | 3799 | * @param string $value |
| 3804 | 3800 | * @param string $params optional |
| 3805 | - * @return boll |
|
| 3801 | + * @return boolean |
|
| 3806 | 3802 | */ |
| 3807 | 3803 | function setTzurl( $value, $params=FALSE ) { |
| 3808 | 3804 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
@@ -3931,7 +3927,7 @@ discard block |
||
| 3931 | 3927 | * @param string $label |
| 3932 | 3928 | * @param mixed $value |
| 3933 | 3929 | * @param array $params optional |
| 3934 | - * @return bool |
|
| 3930 | + * @return null|boolean |
|
| 3935 | 3931 | */ |
| 3936 | 3932 | function setXprop( $label, $value, $params=FALSE ) { |
| 3937 | 3933 | if( empty( $label )) return; |
@@ -4098,7 +4094,7 @@ discard block |
||
| 4098 | 4094 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 4099 | 4095 | * @since 0.9.22 - 2007-04-10 |
| 4100 | 4096 | * @param array $params optional |
| 4101 | - * @param array $ctrKeys optional |
|
| 4097 | + * @param string[] $ctrKeys optional |
|
| 4102 | 4098 | * @return string |
| 4103 | 4099 | */ |
| 4104 | 4100 | function _createParams( $params=array(), $ctrKeys=array() ) { |
@@ -4140,7 +4136,6 @@ discard block |
||
| 4140 | 4136 | * |
| 4141 | 4137 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 4142 | 4138 | * @since 2.4.16 - 2008-10-25 |
| 4143 | - * @param array $date, date to check |
|
| 4144 | 4139 | * @param int $parno, no of date parts (i.e. year, month.. .) |
| 4145 | 4140 | * @return array $params, property parameters |
| 4146 | 4141 | */ |
@@ -4196,7 +4191,6 @@ discard block |
||
| 4196 | 4191 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 4197 | 4192 | * @since 2.2.11 - 2007-11-03 |
| 4198 | 4193 | * @param array $startdate, optional |
| 4199 | - * @param array $duration, optional |
|
| 4200 | 4194 | * @return array duration |
| 4201 | 4195 | */ |
| 4202 | 4196 | function _date2duration( $startdate=FALSE, $enddate=FALSE ) { |
@@ -4230,7 +4224,7 @@ discard block |
||
| 4230 | 4224 | * @since 2.4.8 - 2008-10-30 |
| 4231 | 4225 | * @param array $datetime datetime/(date) |
| 4232 | 4226 | * @param string $tz timezone |
| 4233 | - * @return timestamp |
|
| 4227 | + * @return integer |
|
| 4234 | 4228 | */ |
| 4235 | 4229 | function _date2timestamp( $datetime, $tz=null ) { |
| 4236 | 4230 | $output = null; |
@@ -4580,6 +4574,7 @@ discard block |
||
| 4580 | 4574 | * @param int $hitVal optional, return value if found |
| 4581 | 4575 | * @param int $elseVal optional, return value if not found |
| 4582 | 4576 | * @param int $preSet optional, return value if already preset |
| 4577 | + * @param string $expkey |
|
| 4583 | 4578 | * @return int |
| 4584 | 4579 | */ |
| 4585 | 4580 | function _existRem( &$array, $expkey, $expval=FALSE, $hitVal=null, $elseVal=null, $preSet=null ) { |
@@ -4689,7 +4684,7 @@ discard block |
||
| 4689 | 4684 | * |
| 4690 | 4685 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 4691 | 4686 | * @since 2.4.8 - 2008-10-22 |
| 4692 | - * @param array $recurlabel |
|
| 4687 | + * @param string $recurlabel |
|
| 4693 | 4688 | * @param array $recurdata |
| 4694 | 4689 | * @return string |
| 4695 | 4690 | */ |
@@ -5229,6 +5224,10 @@ discard block |
||
| 5229 | 5224 | else |
| 5230 | 5225 | return FALSE; |
| 5231 | 5226 | } |
| 5227 | + |
|
| 5228 | + /** |
|
| 5229 | + * @param integer $wkst |
|
| 5230 | + */ |
|
| 5232 | 5231 | function _recurIntervalIx( $freq, $date, $wkst ) { |
| 5233 | 5232 | /* create interval index */ |
| 5234 | 5233 | switch( $freq ) { |
@@ -5537,7 +5536,6 @@ discard block |
||
| 5537 | 5536 | * |
| 5538 | 5537 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 5539 | 5538 | * @since 2.4.16 - 2008-10-19 |
| 5540 | - * @param string $offset |
|
| 5541 | 5539 | * @return integer |
| 5542 | 5540 | */ |
| 5543 | 5541 | function _tz2offset( $tz ) { |
@@ -5999,8 +5997,8 @@ discard block |
||
| 5999 | 5997 | * @since 2.5.1 - 2008-11-02 |
| 6000 | 5998 | * @param string $propName, optional |
| 6001 | 5999 | * @param int @propix, optional, if specific property is wanted in case of multiply occurences |
| 6002 | - * @param bool $inclParam=FALSE |
|
| 6003 | - * @param bool $specform=FALSE |
|
| 6000 | + * @param bool $inclParam |
|
| 6001 | + * @param bool $specform |
|
| 6004 | 6002 | * @return mixed |
| 6005 | 6003 | */ |
| 6006 | 6004 | function getProperty( $propName=FALSE, $propix=FALSE, $inclParam=FALSE, $specform=FALSE ) { |
@@ -6193,9 +6191,6 @@ discard block |
||
| 6193 | 6191 | * |
| 6194 | 6192 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 6195 | 6193 | * @since 2.5.1 - 2008-11-05 |
| 6196 | - * @param mixed $args variable number of function arguments, |
|
| 6197 | - * first argument is ALWAYS component name, |
|
| 6198 | - * second ALWAYS component value! |
|
| 6199 | 6194 | * @return void |
| 6200 | 6195 | */ |
| 6201 | 6196 | function setProperty() { |
@@ -6309,7 +6304,7 @@ discard block |
||
| 6309 | 6304 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 6310 | 6305 | * @since 2.5.2 - 2008-10-23 |
| 6311 | 6306 | * @param mixed $unparsedtext, optional, strict rfc2445 formatted, single property string or array of property strings |
| 6312 | - * @return bool FALSE if error occurs during parsing |
|
| 6307 | + * @return boolean|null FALSE if error occurs during parsing |
|
| 6313 | 6308 | * |
| 6314 | 6309 | */ |
| 6315 | 6310 | function parse( $unparsedtext=null ) { |
@@ -6611,7 +6606,7 @@ discard block |
||
| 6611 | 6606 | * @since 2.5.1 - 2008-10-15 |
| 6612 | 6607 | * @param mixed $arg1 ordno / component type / component uid |
| 6613 | 6608 | * @param mixed $arg2 optional, ordno if arg1 = component type |
| 6614 | - * @return void |
|
| 6609 | + * @return boolean |
|
| 6615 | 6610 | */ |
| 6616 | 6611 | function deleteComponent( $arg1, $arg2=FALSE ) { |
| 6617 | 6612 | if( !isset( $this->components )) return FALSE; |
@@ -6814,7 +6809,7 @@ discard block |
||
| 6814 | 6809 | * |
| 6815 | 6810 | * @author Kjell-Inge Gustafsson <[email protected]> |
| 6816 | 6811 | * @since 2.2.8 - 2006-09-03 |
| 6817 | - * @param string $value |
|
| 6812 | + * @param string $string |
|
| 6818 | 6813 | * @return string |
| 6819 | 6814 | */ |
| 6820 | 6815 | function _size75( $string ) { |