@@ -109,7 +109,6 @@ |
||
109 | 109 | /** |
110 | 110 | * get summary of the article |
111 | 111 | * |
112 | - * @param bool $actionOnEmpty flag for truncating content if summary is empty |
|
113 | 112 | * @return string |
114 | 113 | */ |
115 | 114 | function &getSummary($length = 0) |
@@ -650,6 +650,10 @@ discard block |
||
650 | 650 | |
651 | 651 | class IXR_Base64 { |
652 | 652 | var $data; |
653 | + |
|
654 | + /** |
|
655 | + * @param string $data |
|
656 | + */ |
|
653 | 657 | function IXR_Base64($data) { |
654 | 658 | $this->data = $data; |
655 | 659 | } |
@@ -694,6 +698,13 @@ discard block |
||
694 | 698 | 'Returns a documentation string for the specified method' |
695 | 699 | ); |
696 | 700 | } |
701 | + |
|
702 | + /** |
|
703 | + * @param string $method |
|
704 | + * @param string $callback |
|
705 | + * @param string[] $args |
|
706 | + * @param string $help |
|
707 | + */ |
|
697 | 708 | function addCallback($method, $callback, $args, $help) { |
698 | 709 | $this->callbacks[$method] = $callback; |
699 | 710 | $this->signatures[$method] = $args; |
@@ -359,6 +359,9 @@ discard block |
||
359 | 359 | class UniversalFeedCreator extends FeedCreator { |
360 | 360 | var $_feed; |
361 | 361 | |
362 | + /** |
|
363 | + * @param string $format |
|
364 | + */ |
|
362 | 365 | function _setFormat($format) { |
363 | 366 | switch (strtoupper($format)) { |
364 | 367 | |
@@ -540,6 +543,7 @@ discard block |
||
540 | 543 | * Adds an FeedItem to the feed. |
541 | 544 | * |
542 | 545 | * @param object FeedItem $item The FeedItem to add to the feed. |
546 | + * @param FeedItem $item |
|
543 | 547 | * @access public |
544 | 548 | */ |
545 | 549 | function addItem($item) { |
@@ -557,6 +561,7 @@ discard block |
||
557 | 561 | * @static |
558 | 562 | * @param string string A string to be truncated. |
559 | 563 | * @param int length the maximum length the string should be truncated to |
564 | + * @param integer $length |
|
560 | 565 | * @return string the truncated string |
561 | 566 | */ |
562 | 567 | function iTrunc($string, $length) { |
@@ -655,6 +660,7 @@ discard block |
||
655 | 660 | /** |
656 | 661 | * @since 1.4 |
657 | 662 | * @access private |
663 | + * @param string $filename |
|
658 | 664 | */ |
659 | 665 | function _redirect($filename) { |
660 | 666 | // attention, heavily-commented-out-area |
@@ -788,7 +794,7 @@ discard block |
||
788 | 794 | /** |
789 | 795 | * Gets the date stored in this FeedDate as an RFC 822 date. |
790 | 796 | * |
791 | - * @return a date in RFC 822 format |
|
797 | + * @return string date in RFC 822 format |
|
792 | 798 | */ |
793 | 799 | function rfc822() { |
794 | 800 | //return gmdate("r",$this->unix); |
@@ -800,7 +806,7 @@ discard block |
||
800 | 806 | /** |
801 | 807 | * Gets the date stored in this FeedDate as an ISO 8601 date. |
802 | 808 | * |
803 | - * @return a date in ISO 8601 format |
|
809 | + * @return string date in ISO 8601 format |
|
804 | 810 | */ |
805 | 811 | function iso8601() { |
806 | 812 | $date = gmdate("Y-m-d\TH:i:sO",$this->unix); |
@@ -922,6 +928,7 @@ discard block |
||
922 | 928 | /** |
923 | 929 | * Sets this RSS feed's version number. |
924 | 930 | * @access private |
931 | + * @param string $version |
|
925 | 932 | */ |
926 | 933 | function _setRSSVersion($version) { |
927 | 934 | $this->RSSVersion = $version; |
@@ -450,6 +450,10 @@ discard block |
||
450 | 450 | /** |
451 | 451 | * return XML parser, and possibly re-encoded source |
452 | 452 | * |
453 | + * @param string $source |
|
454 | + * @param string $out_enc |
|
455 | + * @param string|null $in_enc |
|
456 | + * @param boolean $detect |
|
453 | 457 | */ |
454 | 458 | function create_parser($source, $out_enc, $in_enc, $detect) { |
455 | 459 | if ( substr(phpversion(),0,1) == 5) { |
@@ -561,6 +565,9 @@ discard block |
||
561 | 565 | } |
562 | 566 | } |
563 | 567 | |
568 | + /** |
|
569 | + * @param integer $lvl |
|
570 | + */ |
|
564 | 571 | function error ($errormsg, $lvl=E_USER_WARNING) { |
565 | 572 | // append PHP's error message if track_errors enabled |
566 | 573 | if ( !empty($php_errormsg) ) { |
@@ -93,6 +93,10 @@ |
||
93 | 93 | $this->version = $version; |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $var |
|
98 | + * @param FeedImage $val |
|
99 | + */ |
|
96 | 100 | function setVar($var, $val, $encoding = false) |
97 | 101 | { |
98 | 102 | if(!empty($encoding)) $val = $this->convert_encoding($val); |
@@ -53,13 +53,6 @@ |
||
53 | 53 | * @param string $content string containing the RSS to be parsed |
54 | 54 | * |
55 | 55 | * |
56 | - * @param string $output_encoding output the parsed RSS in this character |
|
57 | - * set defaults to ISO-8859-1 as this is PHP's |
|
58 | - * default. |
|
59 | - * |
|
60 | - * @param string $input_encoding the character set of the incoming RSS source. |
|
61 | - * Leave blank and Magpie will try to figure it |
|
62 | - * out. |
|
63 | 56 | * |
64 | 57 | */ |
65 | 58 | function XmlParser ($content, $input_charset, $output_charset = _CHARSET, $tags = array()) |
@@ -37,11 +37,17 @@ |
||
37 | 37 | if(!defined("PLANET_FUNCTIONS_INI")): |
38 | 38 | define("PLANET_FUNCTIONS_INI",1); |
39 | 39 | |
40 | +/** |
|
41 | + * @param string $name |
|
42 | + */ |
|
40 | 43 | function planet_constant($name) |
41 | 44 | { |
42 | 45 | return mod_constant($name); |
43 | 46 | } |
44 | 47 | |
48 | +/** |
|
49 | + * @param string $name |
|
50 | + */ |
|
45 | 51 | function planet_DB_prefix($name, $isRel = false) |
46 | 52 | { |
47 | 53 | return mod_DB_prefix($name, $isRel); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @var mixed $pattern |
99 | 99 | * @var mixed $replacement |
100 | 100 | * |
101 | - * @return bool true on success |
|
101 | + * @return null|boolean true on success |
|
102 | 102 | */ |
103 | 103 | function planet_parse_class($class_string, $pattern="", $replacement="") |
104 | 104 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * @var mixed $pattern |
132 | 132 | * @var mixed $replacement |
133 | 133 | * |
134 | - * @return bool true on success |
|
134 | + * @return null|boolean true on success |
|
135 | 135 | */ |
136 | 136 | function planet_parse_function($function_string, $pattern="", $replacement="") |
137 | 137 | { |