@@ -960,6 +960,10 @@ discard block |
||
960 | 960 | return null; |
961 | 961 | } |
962 | 962 | |
963 | + /** |
|
964 | + * @param string $namespace |
|
965 | + * @param string $tag |
|
966 | + */ |
|
963 | 967 | public function get_channel_tags($namespace, $tag) |
964 | 968 | { |
965 | 969 | $type = $this->get_type(); |
@@ -1003,6 +1007,10 @@ discard block |
||
1003 | 1007 | return null; |
1004 | 1008 | } |
1005 | 1009 | |
1010 | + /** |
|
1011 | + * @param string $namespace |
|
1012 | + * @param string $tag |
|
1013 | + */ |
|
1006 | 1014 | public function get_image_tags($namespace, $tag) |
1007 | 1015 | { |
1008 | 1016 | $type = $this->get_type(); |
@@ -1039,6 +1047,9 @@ discard block |
||
1039 | 1047 | return null; |
1040 | 1048 | } |
1041 | 1049 | |
1050 | + /** |
|
1051 | + * @return string |
|
1052 | + */ |
|
1042 | 1053 | public function get_base($element = array()) |
1043 | 1054 | { |
1044 | 1055 | if (!($this->get_type() & SIMPLEPIE_TYPE_RSS_SYNDICATION) && !empty($element['xml_base_explicit']) && isset($element['xml_base'])) |
@@ -1316,6 +1327,9 @@ discard block |
||
1316 | 1327 | } |
1317 | 1328 | } |
1318 | 1329 | |
1330 | + /** |
|
1331 | + * @return string |
|
1332 | + */ |
|
1319 | 1333 | public function get_link($key = 0, $rel = 'alternate') |
1320 | 1334 | { |
1321 | 1335 | $links = $this->get_links($rel); |
@@ -1960,6 +1974,9 @@ discard block |
||
1960 | 1974 | abstract class SimplePie_Cache_DB implements SimplePie_Cache_Base |
1961 | 1975 | { |
1962 | 1976 | |
1977 | + /** |
|
1978 | + * @param SimplePie $data |
|
1979 | + */ |
|
1963 | 1980 | protected static function prepare_simplepie_object_for_cache($data) |
1964 | 1981 | { |
1965 | 1982 | $items = $data->get_items(); |
@@ -3049,6 +3066,9 @@ discard block |
||
3049 | 3066 | } |
3050 | 3067 | } |
3051 | 3068 | |
3069 | + /** |
|
3070 | + * @param string $chars |
|
3071 | + */ |
|
3052 | 3072 | public function consume_range($chars) |
3053 | 3073 | { |
3054 | 3074 | if ($len = strspn($this->data, $chars, $this->position)) |
@@ -4682,6 +4702,9 @@ discard block |
||
4682 | 4702 | trigger_error("Cannot write property $name", E_USER_ERROR); |
4683 | 4703 | } |
4684 | 4704 | |
4705 | + /** |
|
4706 | + * @param string $data |
|
4707 | + */ |
|
4685 | 4708 | public function __construct($data) |
4686 | 4709 | { |
4687 | 4710 | $this->compressed_data = $data; |
@@ -5295,6 +5318,9 @@ discard block |
||
5295 | 5318 | $this->set_iri($iri); |
5296 | 5319 | } |
5297 | 5320 | |
5321 | + /** |
|
5322 | + * @param SimplePie_IRI $base |
|
5323 | + */ |
|
5298 | 5324 | public static function absolutize($base, $relative) |
5299 | 5325 | { |
5300 | 5326 | if (!($relative instanceof SimplePie_IRI)) |
@@ -5382,6 +5408,9 @@ discard block |
||
5382 | 5408 | } |
5383 | 5409 | } |
5384 | 5410 | |
5411 | + /** |
|
5412 | + * @param string $iri |
|
5413 | + */ |
|
5385 | 5414 | protected function parse_iri($iri) |
5386 | 5415 | { |
5387 | 5416 | $iri = trim($iri, "\x20\x09\x0A\x0C\x0D"); |
@@ -5470,6 +5499,9 @@ discard block |
||
5470 | 5499 | return $output . $input; |
5471 | 5500 | } |
5472 | 5501 | |
5502 | + /** |
|
5503 | + * @param string $extra_chars |
|
5504 | + */ |
|
5473 | 5505 | protected function replace_invalid_with_pct_encoding($string, $extra_chars, $iprivate = false) |
5474 | 5506 | { |
5475 | 5507 | // Normalize as many pct-encoded sections as possible |
@@ -5808,6 +5840,9 @@ discard block |
||
5808 | 5840 | } |
5809 | 5841 | } |
5810 | 5842 | |
5843 | + /** |
|
5844 | + * @param string|null $scheme |
|
5845 | + */ |
|
5811 | 5846 | public function set_scheme($scheme) |
5812 | 5847 | { |
5813 | 5848 | if ($scheme === null) |
@@ -5826,6 +5861,9 @@ discard block |
||
5826 | 5861 | return true; |
5827 | 5862 | } |
5828 | 5863 | |
5864 | + /** |
|
5865 | + * @param string|null $authority |
|
5866 | + */ |
|
5829 | 5867 | public function set_authority($authority) |
5830 | 5868 | { |
5831 | 5869 | static $cache; |
@@ -5881,6 +5919,9 @@ discard block |
||
5881 | 5919 | } |
5882 | 5920 | } |
5883 | 5921 | |
5922 | + /** |
|
5923 | + * @param string|null $iuserinfo |
|
5924 | + */ |
|
5884 | 5925 | public function set_userinfo($iuserinfo) |
5885 | 5926 | { |
5886 | 5927 | if ($iuserinfo === null) |
@@ -5940,6 +5981,9 @@ discard block |
||
5940 | 5981 | return true; |
5941 | 5982 | } |
5942 | 5983 | |
5984 | + /** |
|
5985 | + * @param null|string $port |
|
5986 | + */ |
|
5943 | 5987 | public function set_port($port) |
5944 | 5988 | { |
5945 | 5989 | if ($port === null) |
@@ -5960,6 +6004,9 @@ discard block |
||
5960 | 6004 | } |
5961 | 6005 | } |
5962 | 6006 | |
6007 | + /** |
|
6008 | + * @param string|null $ipath |
|
6009 | + */ |
|
5963 | 6010 | public function set_path($ipath) |
5964 | 6011 | { |
5965 | 6012 | static $cache; |
@@ -5983,6 +6030,9 @@ discard block |
||
5983 | 6030 | return true; |
5984 | 6031 | } |
5985 | 6032 | |
6033 | + /** |
|
6034 | + * @param string|null $iquery |
|
6035 | + */ |
|
5986 | 6036 | public function set_query($iquery) |
5987 | 6037 | { |
5988 | 6038 | if ($iquery === null) |
@@ -5997,6 +6047,9 @@ discard block |
||
5997 | 6047 | return true; |
5998 | 6048 | } |
5999 | 6049 | |
6050 | + /** |
|
6051 | + * @param string|null $ifragment |
|
6052 | + */ |
|
6000 | 6053 | public function set_fragment($ifragment) |
6001 | 6054 | { |
6002 | 6055 | if ($ifragment === null) |
@@ -6011,6 +6064,9 @@ discard block |
||
6011 | 6064 | return true; |
6012 | 6065 | } |
6013 | 6066 | |
6067 | + /** |
|
6068 | + * @param false|string $string |
|
6069 | + */ |
|
6014 | 6070 | public function to_uri($string) |
6015 | 6071 | { |
6016 | 6072 | static $non_ascii; |
@@ -6135,6 +6191,10 @@ discard block |
||
6135 | 6191 | } |
6136 | 6192 | } |
6137 | 6193 | |
6194 | + /** |
|
6195 | + * @param string $namespace |
|
6196 | + * @param string $tag |
|
6197 | + */ |
|
6138 | 6198 | public function get_item_tags($namespace, $tag) |
6139 | 6199 | { |
6140 | 6200 | if (isset($this->data['child'][$namespace][$tag])) |
@@ -6147,11 +6207,17 @@ discard block |
||
6147 | 6207 | } |
6148 | 6208 | } |
6149 | 6209 | |
6210 | + /** |
|
6211 | + * @return string |
|
6212 | + */ |
|
6150 | 6213 | public function get_base($element = array()) |
6151 | 6214 | { |
6152 | 6215 | return $this->feed->get_base($element); |
6153 | 6216 | } |
6154 | 6217 | |
6218 | + /** |
|
6219 | + * @return string |
|
6220 | + */ |
|
6155 | 6221 | public function sanitize($data, $type, $base = '') |
6156 | 6222 | { |
6157 | 6223 | return $this->feed->sanitize($data, $type, $base); |
@@ -8755,6 +8821,10 @@ discard block |
||
8755 | 8821 | return null; |
8756 | 8822 | } |
8757 | 8823 | } |
8824 | + |
|
8825 | + /** |
|
8826 | + * @param string $name |
|
8827 | + */ |
|
8758 | 8828 | protected function search_elements_by_tag($name, &$done, $feeds) |
8759 | 8829 | { |
8760 | 8830 | if ($this->dom === null) |
@@ -9102,6 +9172,11 @@ discard block |
||
9102 | 9172 | return strtr($string, $convert_table); |
9103 | 9173 | } |
9104 | 9174 | |
9175 | + /** |
|
9176 | + * @param string $data |
|
9177 | + * @param string $input |
|
9178 | + * @param string $output |
|
9179 | + */ |
|
9105 | 9180 | public static function change_encoding($data, $input, $output) |
9106 | 9181 | { |
9107 | 9182 | $input = SimplePie_Misc::encoding($input); |
@@ -10243,6 +10318,10 @@ discard block |
||
10243 | 10318 | return $charset; |
10244 | 10319 | } |
10245 | 10320 | } |
10321 | + |
|
10322 | + /** |
|
10323 | + * @return string |
|
10324 | + */ |
|
10246 | 10325 | public static function get_curl_version() |
10247 | 10326 | { |
10248 | 10327 | if (is_array($curl = curl_version())) |
@@ -10287,6 +10366,9 @@ discard block |
||
10287 | 10366 | return $parser->parse($dt); |
10288 | 10367 | } |
10289 | 10368 | |
10369 | + /** |
|
10370 | + * @param string|false $data |
|
10371 | + */ |
|
10290 | 10372 | public static function entities_decode($data) |
10291 | 10373 | { |
10292 | 10374 | $decoder = new SimplePie_Decode_HTML_Entities($data); |
@@ -10766,6 +10848,9 @@ discard block |
||
10766 | 10848 | return $ip; |
10767 | 10849 | } |
10768 | 10850 | |
10851 | + /** |
|
10852 | + * @param string $ip |
|
10853 | + */ |
|
10769 | 10854 | public static function compress($ip) |
10770 | 10855 | { |
10771 | 10856 | // Prepare the IP to be compressed |
@@ -11852,6 +11937,10 @@ discard block |
||
11852 | 11937 | { |
11853 | 11938 | return $this->data; |
11854 | 11939 | } |
11940 | + |
|
11941 | + /** |
|
11942 | + * @param string $tag |
|
11943 | + */ |
|
11855 | 11944 | public function tag_open($parser, $tag, $attributes) |
11856 | 11945 | { |
11857 | 11946 | list($this->namespace[], $this->element[]) = $this->split_ns($tag); |
@@ -11914,6 +12003,10 @@ discard block |
||
11914 | 12003 | } |
11915 | 12004 | } |
11916 | 12005 | } |
12006 | + |
|
12007 | + /** |
|
12008 | + * @param string $cdata |
|
12009 | + */ |
|
11917 | 12010 | public function cdata($parser, $cdata) |
11918 | 12011 | { |
11919 | 12012 | if ($this->current_xhtml_construct >= 0) |
@@ -11925,6 +12018,10 @@ discard block |
||
11925 | 12018 | $this->data['data'] .= $cdata; |
11926 | 12019 | } |
11927 | 12020 | } |
12021 | + |
|
12022 | + /** |
|
12023 | + * @param string $tag |
|
12024 | + */ |
|
11928 | 12025 | public function tag_close($parser, $tag) |
11929 | 12026 | { |
11930 | 12027 | if ($this->current_xhtml_construct >= 0) |
@@ -12057,6 +12154,10 @@ discard block |
||
12057 | 12154 | |
12058 | 12155 | public function __construct() { } |
12059 | 12156 | |
12157 | + /** |
|
12158 | + * @param string $type |
|
12159 | + * @param string $class |
|
12160 | + */ |
|
12060 | 12161 | public function register($type, $class, $legacy = false) |
12061 | 12162 | { |
12062 | 12163 | if (!is_subclass_of($class, $this->default[$type])) |
@@ -12084,6 +12185,9 @@ discard block |
||
12084 | 12185 | return null; |
12085 | 12186 | } |
12086 | 12187 | |
12188 | + /** |
|
12189 | + * @param string $type |
|
12190 | + */ |
|
12087 | 12191 | public function &create($type, $parameters = array()) |
12088 | 12192 | { |
12089 | 12193 | $class = $this->get_class($type); |
@@ -12115,6 +12219,10 @@ discard block |
||
12115 | 12219 | return $instance; |
12116 | 12220 | } |
12117 | 12221 | |
12222 | + /** |
|
12223 | + * @param string $type |
|
12224 | + * @param string $method |
|
12225 | + */ |
|
12118 | 12226 | public function &call($type, $method, $parameters = array()) |
12119 | 12227 | { |
12120 | 12228 | $class = $this->get_class($type); |
@@ -12146,6 +12254,10 @@ discard block |
||
12146 | 12254 | |
12147 | 12255 | var $value; |
12148 | 12256 | |
12257 | + /** |
|
12258 | + * @param string $relationship |
|
12259 | + * @param string $value |
|
12260 | + */ |
|
12149 | 12261 | public function __construct($relationship = null, $type = null, $value = null) |
12150 | 12262 | { |
12151 | 12263 | $this->relationship = $relationship; |
@@ -12472,6 +12584,10 @@ discard block |
||
12472 | 12584 | } |
12473 | 12585 | return $data; |
12474 | 12586 | } |
12587 | + |
|
12588 | + /** |
|
12589 | + * @param string $html |
|
12590 | + */ |
|
12475 | 12591 | protected function preprocess($html, $type) |
12476 | 12592 | { |
12477 | 12593 | $ret = ''; |
@@ -12493,6 +12609,10 @@ discard block |
||
12493 | 12609 | $ret .= '</head><body>' . $html . '</body></html>'; |
12494 | 12610 | return $ret; |
12495 | 12611 | } |
12612 | + |
|
12613 | + /** |
|
12614 | + * @param DOMDocument $document |
|
12615 | + */ |
|
12496 | 12616 | public function replace_urls($document, $tag, $attributes) |
12497 | 12617 | { |
12498 | 12618 | if (!is_array($attributes)) |
@@ -12542,6 +12662,10 @@ discard block |
||
12542 | 12662 | return ''; |
12543 | 12663 | } |
12544 | 12664 | } |
12665 | + |
|
12666 | + /** |
|
12667 | + * @param DOMDocument $document |
|
12668 | + */ |
|
12545 | 12669 | protected function strip_tag($tag, $document, $type) |
12546 | 12670 | { |
12547 | 12671 | $xpath = new DOMXPath($document); |
@@ -12617,6 +12741,10 @@ discard block |
||
12617 | 12741 | } |
12618 | 12742 | } |
12619 | 12743 | } |
12744 | + |
|
12745 | + /** |
|
12746 | + * @param DOMDocument $document |
|
12747 | + */ |
|
12620 | 12748 | protected function strip_attr($attrib, $document) |
12621 | 12749 | { |
12622 | 12750 | $xpath = new DOMXPath($document); |
@@ -12645,6 +12773,11 @@ discard block |
||
12645 | 12773 | { |
12646 | 12774 | return md5(serialize($this->data)); |
12647 | 12775 | } |
12776 | + |
|
12777 | + /** |
|
12778 | + * @param string $namespace |
|
12779 | + * @param string $tag |
|
12780 | + */ |
|
12648 | 12781 | public function get_source_tags($namespace, $tag) |
12649 | 12782 | { |
12650 | 12783 | if (isset($this->data['child'][$namespace][$tag])) |
@@ -12656,6 +12789,10 @@ discard block |
||
12656 | 12789 | return null; |
12657 | 12790 | } |
12658 | 12791 | } |
12792 | + |
|
12793 | + /** |
|
12794 | + * @return string |
|
12795 | + */ |
|
12659 | 12796 | public function get_base($element = array()) |
12660 | 12797 | { |
12661 | 12798 | return $this->item->get_base($element); |