@@ -40,6 +40,10 @@ |
||
40 | 40 | } |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param string $id |
|
45 | + * @param string $ident |
|
46 | + */ |
|
43 | 47 | public function get_Schedule($id,$ident) { |
44 | 48 | global $globalDebug, $globalFork, $globalSchedulesFetch; |
45 | 49 | // Get schedule here, so it's done only one time |
@@ -125,6 +125,9 @@ discard block |
||
125 | 125 | public $tag_start = 0; |
126 | 126 | private $dom = null; |
127 | 127 | |
128 | + /** |
|
129 | + * @param simple_html_dom $dom |
|
130 | + */ |
|
128 | 131 | function __construct($dom) |
129 | 132 | { |
130 | 133 | $this->dom = $dom; |
@@ -1501,6 +1504,11 @@ discard block |
||
1501 | 1504 | } |
1502 | 1505 | |
1503 | 1506 | // parse attributes |
1507 | + |
|
1508 | + /** |
|
1509 | + * @param simple_html_dom_node $node |
|
1510 | + * @param string[] $space |
|
1511 | + */ |
|
1504 | 1512 | protected function parse_attr($node, $name, &$space) |
1505 | 1513 | { |
1506 | 1514 | // Per sourceforge: http://sourceforge.net/tracker/?func=detail&aid=3061408&group_id=218559&atid=1044037 |
@@ -1538,6 +1546,11 @@ discard block |
||
1538 | 1546 | } |
1539 | 1547 | |
1540 | 1548 | // link node's parent |
1549 | + |
|
1550 | + /** |
|
1551 | + * @param simple_html_dom_node $node |
|
1552 | + * @param boolean $is_child |
|
1553 | + */ |
|
1541 | 1554 | protected function link_nodes(&$node, $is_child) |
1542 | 1555 | { |
1543 | 1556 | $node->parent = $this->parent; |
@@ -1549,6 +1562,10 @@ discard block |
||
1549 | 1562 | } |
1550 | 1563 | |
1551 | 1564 | // as a text node |
1565 | + |
|
1566 | + /** |
|
1567 | + * @param string $tag |
|
1568 | + */ |
|
1552 | 1569 | protected function as_text_node($tag) |
1553 | 1570 | { |
1554 | 1571 | $node = new simple_html_dom_node($this); |
@@ -1559,12 +1576,18 @@ discard block |
||
1559 | 1576 | return true; |
1560 | 1577 | } |
1561 | 1578 | |
1579 | + /** |
|
1580 | + * @param string $chars |
|
1581 | + */ |
|
1562 | 1582 | protected function skip($chars) |
1563 | 1583 | { |
1564 | 1584 | $this->pos += strspn($this->doc, $chars, $this->pos); |
1565 | 1585 | $this->char = ($this->pos<$this->size) ? $this->doc[$this->pos] : null; // next |
1566 | 1586 | } |
1567 | 1587 | |
1588 | + /** |
|
1589 | + * @param string $chars |
|
1590 | + */ |
|
1568 | 1591 | protected function copy_skip($chars) |
1569 | 1592 | { |
1570 | 1593 | $pos = $this->pos; |
@@ -1575,6 +1598,9 @@ discard block |
||
1575 | 1598 | return substr($this->doc, $pos, $len); |
1576 | 1599 | } |
1577 | 1600 | |
1601 | + /** |
|
1602 | + * @param string $chars |
|
1603 | + */ |
|
1578 | 1604 | protected function copy_until($chars) |
1579 | 1605 | { |
1580 | 1606 | $pos = $this->pos; |
@@ -1584,6 +1610,9 @@ discard block |
||
1584 | 1610 | return substr($this->doc, $pos, $len); |
1585 | 1611 | } |
1586 | 1612 | |
1613 | + /** |
|
1614 | + * @param string $char |
|
1615 | + */ |
|
1587 | 1616 | protected function copy_until_char($char) |
1588 | 1617 | { |
1589 | 1618 | if ($this->char===null) return ''; |
@@ -1602,6 +1631,9 @@ discard block |
||
1602 | 1631 | return substr($this->doc, $pos_old, $pos-$pos_old); |
1603 | 1632 | } |
1604 | 1633 | |
1634 | + /** |
|
1635 | + * @param string $char |
|
1636 | + */ |
|
1605 | 1637 | protected function copy_until_char_escape($char) |
1606 | 1638 | { |
1607 | 1639 | if ($this->char===null) return ''; |
@@ -1633,6 +1665,10 @@ discard block |
||
1633 | 1665 | |
1634 | 1666 | // remove noise from html content |
1635 | 1667 | // save the noise in the $this->noise array. |
1668 | + |
|
1669 | + /** |
|
1670 | + * @param string $pattern |
|
1671 | + */ |
|
1636 | 1672 | protected function remove_noise($pattern, $remove_tag=false) |
1637 | 1673 | { |
1638 | 1674 | global $debug_object; |
@@ -1658,6 +1694,10 @@ discard block |
||
1658 | 1694 | } |
1659 | 1695 | |
1660 | 1696 | // restore noise to html content |
1697 | + |
|
1698 | + /** |
|
1699 | + * @param string|null $text |
|
1700 | + */ |
|
1661 | 1701 | function restore_noise($text) |
1662 | 1702 | { |
1663 | 1703 | global $debug_object; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Get SQL query part for filter used |
16 | 16 | * @param Array $filter the filter |
17 | - * @return Array the SQL part |
|
17 | + * @return string the SQL part |
|
18 | 18 | */ |
19 | 19 | public function getFilter($filter = array(),$where = false,$and = false) { |
20 | 20 | global $globalFilter, $globalStatsFilters, $globalFilterName, $globalDBdriver; |
@@ -759,10 +759,6 @@ discard block |
||
759 | 759 | * |
760 | 760 | * @param String $famtrackid the ID from flightaware |
761 | 761 | * @param String $ident the flight ident |
762 | - * @param String $aircraft_icao the aircraft type |
|
763 | - * @param String $departure_airport_icao the departure airport |
|
764 | - * @param String $arrival_airport_icao the arrival airport |
|
765 | - * @return String success or false |
|
766 | 762 | * |
767 | 763 | */ |
768 | 764 | public function addLiveTrackerData($famtrackid = '', $ident = '', $latitude = '', $longitude = '', $altitude = '', $heading = '', $groundspeed = '', $date = '', $putinarchive = false, $comment = '', $type = '',$noarchive = false,$format_source = '', $source_name = '', $over_country = '') |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * Get SQL query part for filter used |
16 | 16 | * @param Array $filter the filter |
17 | - * @return Array the SQL part |
|
17 | + * @return string the SQL part |
|
18 | 18 | */ |
19 | 19 | public function getFilter($filter = array(),$where = false,$and = false) { |
20 | 20 | global $globalFilter, $globalStatsFilters, $globalFilterName, $globalDBdriver; |
@@ -91,6 +91,10 @@ |
||
91 | 91 | $this->rlatres = (($this->height - 1) / 180.0); |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param integer $ix |
|
96 | + * @param integer $iy |
|
97 | + */ |
|
94 | 98 | private function _rawval($ix,$iy) { |
95 | 99 | if (($iy < 0)) { |
96 | 100 | $iy = -$iy; |
@@ -58,6 +58,10 @@ discard block |
||
58 | 58 | } else return $ident; |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $correct_ident |
|
63 | + * @param string $source |
|
64 | + */ |
|
61 | 65 | public function addOperator($ident,$correct_ident,$source) { |
62 | 66 | $query = "INSERT INTO translation (Operator,Operator_correct,Source) VALUES (:ident,:correct_ident,:source)"; |
63 | 67 | $query_values = array(':ident' => $ident,':correct_ident' => $correct_ident, ':source' => $source); |
@@ -69,6 +73,10 @@ discard block |
||
69 | 73 | } |
70 | 74 | } |
71 | 75 | |
76 | + /** |
|
77 | + * @param string $correct_ident |
|
78 | + * @param string $source |
|
79 | + */ |
|
72 | 80 | public function updateOperator($ident,$correct_ident,$source) { |
73 | 81 | $query = "UPDATE translation SET Operator_correct = :correct_ident,Source = :source WHERE Operator = :ident"; |
74 | 82 | $query_values = array(':ident' => $ident,':correct_ident' => $correct_ident, ':source' => $source); |
@@ -21,6 +21,10 @@ discard block |
||
21 | 21 | if ($this->db === null) die('Error: No DB connection. (Stats)'); |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $type |
|
26 | + * @param string $stats_date |
|
27 | + */ |
|
24 | 28 | public function addLastStatsUpdate($type,$stats_date) { |
25 | 29 | $query = "DELETE FROM config WHERE name = :type; |
26 | 30 | INSERT INTO config (name,value) VALUES (:type,:stats_date);"; |
@@ -1415,6 +1419,10 @@ discard block |
||
1415 | 1419 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
1416 | 1420 | return $all; |
1417 | 1421 | } |
1422 | + |
|
1423 | + /** |
|
1424 | + * @param string $type |
|
1425 | + */ |
|
1418 | 1426 | public function deleteStatsByType($type,$stats_airline = '', $filter_name = '') { |
1419 | 1427 | if ($filter_name == '') $filter_name = $this->filter_name; |
1420 | 1428 | $query = "DELETE FROM stats WHERE stats_type = :type AND stats_airline = :stats_airline AND filter_name = :filter_name"; |
@@ -1426,6 +1434,11 @@ discard block |
||
1426 | 1434 | echo "error : ".$e->getMessage(); |
1427 | 1435 | } |
1428 | 1436 | } |
1437 | + |
|
1438 | + /** |
|
1439 | + * @param string $type |
|
1440 | + * @param string $year |
|
1441 | + */ |
|
1429 | 1442 | public function getSumStats($type,$year,$stats_airline = '',$filter_name = '',$month = '') { |
1430 | 1443 | if ($filter_name == '') $filter_name = $this->filter_name; |
1431 | 1444 | global $globalArchiveMonths, $globalDBdriver; |
@@ -1625,6 +1638,10 @@ discard block |
||
1625 | 1638 | else return 0; |
1626 | 1639 | } |
1627 | 1640 | |
1641 | + /** |
|
1642 | + * @param string $type |
|
1643 | + * @param string $stats_date |
|
1644 | + */ |
|
1628 | 1645 | public function addStat($type,$cnt,$stats_date,$stats_airline = '',$filter_name = '') { |
1629 | 1646 | global $globalDBdriver; |
1630 | 1647 | if ($filter_name == '') $filter_name = $this->filter_name; |
@@ -1678,6 +1695,9 @@ discard block |
||
1678 | 1695 | } |
1679 | 1696 | */ |
1680 | 1697 | |
1698 | + /** |
|
1699 | + * @param string $stats_type |
|
1700 | + */ |
|
1681 | 1701 | public function getStatsSource($stats_type,$year = '',$month = '',$day = '') { |
1682 | 1702 | global $globalDBdriver; |
1683 | 1703 | $query = "SELECT * FROM stats_source WHERE stats_type = :stats_type"; |
@@ -1721,6 +1741,9 @@ discard block |
||
1721 | 1741 | return $all; |
1722 | 1742 | } |
1723 | 1743 | |
1744 | + /** |
|
1745 | + * @param string $stats_type |
|
1746 | + */ |
|
1724 | 1747 | public function addStatSource($data,$source_name,$stats_type,$date) { |
1725 | 1748 | global $globalDBdriver; |
1726 | 1749 | if ($globalDBdriver == 'mysql') { |
@@ -1736,6 +1759,10 @@ discard block |
||
1736 | 1759 | return "error : ".$e->getMessage(); |
1737 | 1760 | } |
1738 | 1761 | } |
1762 | + |
|
1763 | + /** |
|
1764 | + * @param string $type |
|
1765 | + */ |
|
1739 | 1766 | public function addStatFlight($type,$date_name,$cnt,$stats_airline = '',$filter_name = '') { |
1740 | 1767 | $query = "INSERT INTO stats_flight (stats_type,flight_date,cnt,stats_airline,filter_name) VALUES (:type,:flight_date,:cnt,:stats_airline,:filter_name)"; |
1741 | 1768 | $query_values = array(':type' => $type,':flight_date' => $date_name,':cnt' => $cnt, ':stats_airline' => $stats_airline,':filter_name' => $filter_name); |
@@ -1746,6 +1773,10 @@ discard block |
||
1746 | 1773 | return "error : ".$e->getMessage(); |
1747 | 1774 | } |
1748 | 1775 | } |
1776 | + |
|
1777 | + /** |
|
1778 | + * @param string $type |
|
1779 | + */ |
|
1749 | 1780 | public function addStatMarine($type,$date_name,$cnt,$filter_name = '') { |
1750 | 1781 | $query = "INSERT INTO stats_marine (stats_type,marine_date,cnt,filter_name) VALUES (:type,:flight_date,:cnt,:filter_name)"; |
1751 | 1782 | $query_values = array(':type' => $type,':flight_date' => $date_name,':cnt' => $cnt,':filter_name' => $filter_name); |
@@ -1756,6 +1787,10 @@ discard block |
||
1756 | 1787 | return "error : ".$e->getMessage(); |
1757 | 1788 | } |
1758 | 1789 | } |
1790 | + |
|
1791 | + /** |
|
1792 | + * @param string $type |
|
1793 | + */ |
|
1759 | 1794 | public function addStatTracker($type,$date_name,$cnt,$filter_name = '') { |
1760 | 1795 | $query = "INSERT INTO stats_tracker (stats_type,tracker_date,cnt,filter_name) VALUES (:type,:flight_date,:cnt,:filter_name)"; |
1761 | 1796 | $query_values = array(':type' => $type,':flight_date' => $date_name,':cnt' => $cnt,':filter_name' => $filter_name); |
@@ -2068,6 +2103,10 @@ discard block |
||
2068 | 2103 | return "error : ".$e->getMessage(); |
2069 | 2104 | } |
2070 | 2105 | } |
2106 | + |
|
2107 | + /** |
|
2108 | + * @param string $type |
|
2109 | + */ |
|
2071 | 2110 | public function deleteStatFlight($type) { |
2072 | 2111 | $query = "DELETE FROM stats_flight WHERE stats_type = :type"; |
2073 | 2112 | $query_values = array(':type' => $type); |
@@ -2078,6 +2117,10 @@ discard block |
||
2078 | 2117 | return "error : ".$e->getMessage(); |
2079 | 2118 | } |
2080 | 2119 | } |
2120 | + |
|
2121 | + /** |
|
2122 | + * @param string $type |
|
2123 | + */ |
|
2081 | 2124 | public function deleteStatMarine($type) { |
2082 | 2125 | $query = "DELETE FROM stats_marine WHERE stats_type = :type"; |
2083 | 2126 | $query_values = array(':type' => $type); |
@@ -2088,6 +2131,10 @@ discard block |
||
2088 | 2131 | return "error : ".$e->getMessage(); |
2089 | 2132 | } |
2090 | 2133 | } |
2134 | + |
|
2135 | + /** |
|
2136 | + * @param string $type |
|
2137 | + */ |
|
2091 | 2138 | public function deleteStatTracker($type) { |
2092 | 2139 | $query = "DELETE FROM stats_tracker WHERE stats_type = :type"; |
2093 | 2140 | $query_values = array(':type' => $type); |
@@ -2098,6 +2145,10 @@ discard block |
||
2098 | 2145 | return "error : ".$e->getMessage(); |
2099 | 2146 | } |
2100 | 2147 | } |
2148 | + |
|
2149 | + /** |
|
2150 | + * @param string $type |
|
2151 | + */ |
|
2101 | 2152 | public function deleteStatAirport($type) { |
2102 | 2153 | $query = "DELETE FROM stats_airport WHERE stats_type = :type"; |
2103 | 2154 | $query_values = array(':type' => $type); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * Get SQL query part for filter used |
18 | 18 | * @param Array $filter the filter |
19 | - * @return Array the SQL part |
|
19 | + * @return string the SQL part |
|
20 | 20 | */ |
21 | 21 | |
22 | 22 | public function getFilter($filter = array(),$where = false,$and = false) { |
@@ -487,9 +487,6 @@ discard block |
||
487 | 487 | /** |
488 | 488 | * Update ident tracker data |
489 | 489 | * |
490 | - * @param String $flightaware_id the ID from flightaware |
|
491 | - * @param String $ident the flight ident |
|
492 | - * @return String success or false |
|
493 | 490 | * |
494 | 491 | */ |
495 | 492 | public function updateIdentTrackerData($famtrackid = '', $ident = '',$fromsource = NULL) |
@@ -511,10 +508,6 @@ discard block |
||
511 | 508 | /** |
512 | 509 | * Update latest tracker data |
513 | 510 | * |
514 | - * @param String $flightaware_id the ID from flightaware |
|
515 | - * @param String $ident the flight ident |
|
516 | - * @param String $arrival_airport_icao the arrival airport |
|
517 | - * @return String success or false |
|
518 | 511 | * |
519 | 512 | */ |
520 | 513 | public function updateLatestTrackerData($famtrackid = '', $ident = '', $latitude = '', $longitude = '', $altitude = '', $groundspeed = NULL, $date = '') |
@@ -536,29 +529,6 @@ discard block |
||
536 | 529 | /** |
537 | 530 | * Adds a new tracker data |
538 | 531 | * |
539 | - * @param String $flightaware_id the ID from flightaware |
|
540 | - * @param String $ident the flight ident |
|
541 | - * @param String $aircraft_icao the aircraft type |
|
542 | - * @param String $departure_airport_icao the departure airport |
|
543 | - * @param String $arrival_airport_icao the arrival airport |
|
544 | - * @param String $latitude latitude of flight |
|
545 | - * @param String $longitude latitude of flight |
|
546 | - * @param String $waypoints waypoints of flight |
|
547 | - * @param String $altitude altitude of flight |
|
548 | - * @param String $heading heading of flight |
|
549 | - * @param String $groundspeed speed of flight |
|
550 | - * @param String $date date of flight |
|
551 | - * @param String $departure_airport_time departure time of flight |
|
552 | - * @param String $arrival_airport_time arrival time of flight |
|
553 | - * @param String $squawk squawk code of flight |
|
554 | - * @param String $route_stop route stop of flight |
|
555 | - * @param String $highlight highlight or not |
|
556 | - * @param String $ModeS ModesS code of flight |
|
557 | - * @param String $registration registration code of flight |
|
558 | - * @param String $pilot_id pilot id of flight (for virtual airlines) |
|
559 | - * @param String $pilot_name pilot name of flight (for virtual airlines) |
|
560 | - * @param String $verticalrate vertival rate of flight |
|
561 | - * @return String success or false |
|
562 | 532 | */ |
563 | 533 | public function addTrackerData($famtrackid = '', $ident = '', $latitude = '', $longitude = '', $altitude = '', $heading = '', $groundspeed = '', $date = '', $comment = '', $type = '',$format_source = '', $source_name = '') |
564 | 534 | { |
@@ -1132,6 +1102,7 @@ discard block |
||
1132 | 1102 | /** |
1133 | 1103 | * Counts all hours |
1134 | 1104 | * |
1105 | + * @param string $orderby |
|
1135 | 1106 | * @return Array the hour list |
1136 | 1107 | * |
1137 | 1108 | */ |
@@ -1483,7 +1454,7 @@ discard block |
||
1483 | 1454 | /** |
1484 | 1455 | * Parses the direction degrees to working |
1485 | 1456 | * |
1486 | - * @param Float $direction the direction in degrees |
|
1457 | + * @param integer $direction the direction in degrees |
|
1487 | 1458 | * @return Array the direction information |
1488 | 1459 | * |
1489 | 1460 | */ |
@@ -2760,7 +2760,7 @@ discard block |
||
2760 | 2760 | * @since 1.0 |
2761 | 2761 | * @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo |
2762 | 2762 | * @link http://www.georss.org/ GeoRSS |
2763 | - * @return string|null |
|
2763 | + * @return double|null |
|
2764 | 2764 | */ |
2765 | 2765 | public function get_latitude() |
2766 | 2766 | { |
@@ -2789,7 +2789,7 @@ discard block |
||
2789 | 2789 | * @since 1.0 |
2790 | 2790 | * @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo |
2791 | 2791 | * @link http://www.georss.org/ GeoRSS |
2792 | - * @return string|null |
|
2792 | + * @return double|null |
|
2793 | 2793 | */ |
2794 | 2794 | public function get_longitude() |
2795 | 2795 | { |
@@ -2930,7 +2930,7 @@ discard block |
||
2930 | 2930 | * Uses `<image><width>` or defaults to 88.0 if no width is specified and |
2931 | 2931 | * the feed is an RSS 2.0 feed. |
2932 | 2932 | * |
2933 | - * @return int|float|null |
|
2933 | + * @return double|null |
|
2934 | 2934 | */ |
2935 | 2935 | public function get_image_width() |
2936 | 2936 | { |
@@ -2956,7 +2956,7 @@ discard block |
||
2956 | 2956 | * Uses `<image><height>` or defaults to 31.0 if no height is specified and |
2957 | 2957 | * the feed is an RSS 2.0 feed. |
2958 | 2958 | * |
2959 | - * @return int|float|null |
|
2959 | + * @return double|null |
|
2960 | 2960 | */ |
2961 | 2961 | public function get_image_height() |
2962 | 2962 | { |
@@ -3185,7 +3185,7 @@ discard block |
||
3185 | 3185 | * @access private |
3186 | 3186 | * @param SimplePie $a |
3187 | 3187 | * @param SimplePie $b |
3188 | - * @return boolean |
|
3188 | + * @return integer |
|
3189 | 3189 | */ |
3190 | 3190 | public static function sort_items($a, $b) |
3191 | 3191 | { |
@@ -4384,7 +4384,7 @@ discard block |
||
4384 | 4384 | /** |
4385 | 4385 | * Retrieve the last modified time for the cache |
4386 | 4386 | * |
4387 | - * @return int Timestamp |
|
4387 | + * @return false|string Timestamp |
|
4388 | 4388 | */ |
4389 | 4389 | public function mtime() |
4390 | 4390 | { |
@@ -4504,7 +4504,6 @@ discard block |
||
4504 | 4504 | * |
4505 | 4505 | * @param string $location Location string (from SimplePie::$cache_location) |
4506 | 4506 | * @param string $name Unique ID for the cache |
4507 | - * @param string $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data |
|
4508 | 4507 | */ |
4509 | 4508 | public function __construct($location, $name, $options = null) { |
4510 | 4509 | //$this->cache = \flow\simple\cache\Redis::getRedisClientInstance(); |
@@ -5461,7 +5460,7 @@ discard block |
||
5461 | 5460 | * Consume the next byte |
5462 | 5461 | * |
5463 | 5462 | * @access private |
5464 | - * @return mixed The next byte, or false, if there is no more data |
|
5463 | + * @return string|false The next byte, or false, if there is no more data |
|
5465 | 5464 | */ |
5466 | 5465 | public function consume() |
5467 | 5466 | { |
@@ -5481,7 +5480,7 @@ discard block |
||
5481 | 5480 | * |
5482 | 5481 | * @access private |
5483 | 5482 | * @param string $chars Characters to consume |
5484 | - * @return mixed A series of characters that match the range, or false |
|
5483 | + * @return string|false A series of characters that match the range, or false |
|
5485 | 5484 | */ |
5486 | 5485 | public function consume_range($chars) |
5487 | 5486 | { |
@@ -6571,7 +6570,7 @@ discard block |
||
6571 | 6570 | /** |
6572 | 6571 | * Get length |
6573 | 6572 | * |
6574 | - * @return float Length in bytes |
|
6573 | + * @return string|null Length in bytes |
|
6575 | 6574 | */ |
6576 | 6575 | public function get_length() |
6577 | 6576 | { |
@@ -8279,7 +8278,7 @@ discard block |
||
8279 | 8278 | * |
8280 | 8279 | * Returns false if $base is not absolute, otherwise an IRI. |
8281 | 8280 | * |
8282 | - * @param IRI|string $base (Absolute) Base IRI |
|
8281 | + * @param SimplePie_IRI $base (Absolute) Base IRI |
|
8283 | 8282 | * @param IRI|string $relative Relative IRI |
8284 | 8283 | * @return IRI|false |
8285 | 8284 | */ |
@@ -9068,7 +9067,7 @@ discard block |
||
9068 | 9067 | * Set the ipath. |
9069 | 9068 | * |
9070 | 9069 | * @param string $ipath |
9071 | - * @return bool |
|
9070 | + * @return null|boolean |
|
9072 | 9071 | */ |
9073 | 9072 | public function set_path($ipath, $clear_cache = false) |
9074 | 9073 | { |
@@ -9145,6 +9144,7 @@ discard block |
||
9145 | 9144 | /** |
9146 | 9145 | * Convert an IRI to a URI (or parts thereof) |
9147 | 9146 | * |
9147 | + * @param false|string $string |
|
9148 | 9148 | * @return string |
9149 | 9149 | */ |
9150 | 9150 | public function to_uri($string) |
@@ -10114,7 +10114,7 @@ discard block |
||
10114 | 10114 | * @since 1.0 |
10115 | 10115 | * |
10116 | 10116 | * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data) |
10117 | - * @return int|string|null |
|
10117 | + * @return string|null |
|
10118 | 10118 | */ |
10119 | 10119 | public function get_local_date($date_format = '%c') |
10120 | 10120 | { |
@@ -10137,7 +10137,7 @@ discard block |
||
10137 | 10137 | * |
10138 | 10138 | * @see get_date |
10139 | 10139 | * @param string $date_format Supports any PHP date format from {@see http://php.net/date} |
10140 | - * @return int|string|null |
|
10140 | + * @return null|string |
|
10141 | 10141 | */ |
10142 | 10142 | public function get_gmdate($date_format = 'j F Y, g:i a') |
10143 | 10143 | { |
@@ -10155,7 +10155,7 @@ discard block |
||
10155 | 10155 | * |
10156 | 10156 | * @see get_updated_date |
10157 | 10157 | * @param string $date_format Supports any PHP date format from {@see http://php.net/date} |
10158 | - * @return int|string|null |
|
10158 | + * @return null|string |
|
10159 | 10159 | */ |
10160 | 10160 | public function get_updated_gmdate($date_format = 'j F Y, g:i a') |
10161 | 10161 | { |
@@ -12159,7 +12159,7 @@ discard block |
||
12159 | 12159 | * @since 1.0 |
12160 | 12160 | * @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo |
12161 | 12161 | * @link http://www.georss.org/ GeoRSS |
12162 | - * @return string|null |
|
12162 | + * @return double|null |
|
12163 | 12163 | */ |
12164 | 12164 | public function get_latitude() |
12165 | 12165 | { |
@@ -12187,7 +12187,7 @@ discard block |
||
12187 | 12187 | * @since 1.0 |
12188 | 12188 | * @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo |
12189 | 12189 | * @link http://www.georss.org/ GeoRSS |
12190 | - * @return string|null |
|
12190 | + * @return double|null |
|
12191 | 12191 | */ |
12192 | 12192 | public function get_longitude() |
12193 | 12193 | { |
@@ -12403,6 +12403,9 @@ discard block |
||
12403 | 12403 | } |
12404 | 12404 | } |
12405 | 12405 | |
12406 | + /** |
|
12407 | + * @param string $name |
|
12408 | + */ |
|
12406 | 12409 | protected function search_elements_by_tag($name, &$done, $feeds) |
12407 | 12410 | { |
12408 | 12411 | if ($this->dom === null) |
@@ -12621,6 +12624,9 @@ discard block |
||
12621 | 12624 | */ |
12622 | 12625 | class SimplePie_Misc |
12623 | 12626 | { |
12627 | + /** |
|
12628 | + * @param integer $seconds |
|
12629 | + */ |
|
12624 | 12630 | public static function time_hms($seconds) |
12625 | 12631 | { |
12626 | 12632 | $time = ''; |
@@ -12923,6 +12929,11 @@ discard block |
||
12923 | 12929 | } |
12924 | 12930 | } |
12925 | 12931 | |
12932 | + /** |
|
12933 | + * @param string $data |
|
12934 | + * @param string $input |
|
12935 | + * @param string $output |
|
12936 | + */ |
|
12926 | 12937 | protected static function change_encoding_mbstring($data, $input, $output) |
12927 | 12938 | { |
12928 | 12939 | if ($input === 'windows-949') |
@@ -12961,6 +12972,11 @@ discard block |
||
12961 | 12972 | return false; |
12962 | 12973 | } |
12963 | 12974 | |
12975 | + /** |
|
12976 | + * @param string $data |
|
12977 | + * @param string $input |
|
12978 | + * @param string $output |
|
12979 | + */ |
|
12964 | 12980 | protected static function change_encoding_iconv($data, $input, $output) |
12965 | 12981 | { |
12966 | 12982 | return @iconv($input, $output, $data); |
@@ -14301,6 +14317,9 @@ discard block |
||
14301 | 14317 | } |
14302 | 14318 | } |
14303 | 14319 | |
14320 | + /** |
|
14321 | + * @return string |
|
14322 | + */ |
|
14304 | 14323 | public static function get_curl_version() |
14305 | 14324 | { |
14306 | 14325 | if (is_array($curl = curl_version())) |
@@ -14368,7 +14387,6 @@ discard block |
||
14368 | 14387 | /** |
14369 | 14388 | * Remove RFC822 comments |
14370 | 14389 | * |
14371 | - * @param string $data Data to strip comments from |
|
14372 | 14390 | * @return string Comment stripped string |
14373 | 14391 | */ |
14374 | 14392 | public static function uncomment_rfc822($string) |
@@ -14624,7 +14642,7 @@ discard block |
||
14624 | 14642 | * @todo Add support for EBCDIC |
14625 | 14643 | * @param string $data XML data |
14626 | 14644 | * @param SimplePie_Registry $registry Class registry |
14627 | - * @return array Possible encodings |
|
14645 | + * @return string[] Possible encodings |
|
14628 | 14646 | */ |
14629 | 14647 | public static function xml_encoding($data, $registry) |
14630 | 14648 | { |
@@ -14997,7 +15015,7 @@ discard block |
||
14997 | 15015 | * 0:0:0:0:0:FFFF:129.144.52.38 |
14998 | 15016 | * |
14999 | 15017 | * @param string $ip An IPv6 address |
15000 | - * @return array [0] contains the IPv6 represented part, and [1] the IPv4 represented part |
|
15018 | + * @return string[] [0] contains the IPv6 represented part, and [1] the IPv4 represented part |
|
15001 | 15019 | */ |
15002 | 15020 | private static function split_v6_v4($ip) |
15003 | 15021 | { |
@@ -15744,7 +15762,6 @@ discard block |
||
15744 | 15762 | * Remove RFC822 comments |
15745 | 15763 | * |
15746 | 15764 | * @access protected |
15747 | - * @param string $data Data to strip comments from |
|
15748 | 15765 | * @return string Comment stripped string |
15749 | 15766 | */ |
15750 | 15767 | public function remove_rfc2822_comments($string) |
@@ -16258,6 +16275,9 @@ discard block |
||
16258 | 16275 | return $this->data; |
16259 | 16276 | } |
16260 | 16277 | |
16278 | + /** |
|
16279 | + * @param string $tag |
|
16280 | + */ |
|
16261 | 16281 | public function tag_open($parser, $tag, $attributes) |
16262 | 16282 | { |
16263 | 16283 | list($this->namespace[], $this->element[]) = $this->split_ns($tag); |
@@ -16325,6 +16345,9 @@ discard block |
||
16325 | 16345 | } |
16326 | 16346 | } |
16327 | 16347 | |
16348 | + /** |
|
16349 | + * @param string $cdata |
|
16350 | + */ |
|
16328 | 16351 | public function cdata($parser, $cdata) |
16329 | 16352 | { |
16330 | 16353 | if ($this->current_xhtml_construct >= 0) |
@@ -16337,6 +16360,9 @@ discard block |
||
16337 | 16360 | } |
16338 | 16361 | } |
16339 | 16362 | |
16363 | + /** |
|
16364 | + * @param string $tag |
|
16365 | + */ |
|
16340 | 16366 | public function tag_close($parser, $tag) |
16341 | 16367 | { |
16342 | 16368 | if ($this->current_xhtml_construct >= 0) |
@@ -16422,6 +16448,9 @@ discard block |
||
16422 | 16448 | return isset($data['value']) ? $data['value'] : ''; |
16423 | 16449 | } |
16424 | 16450 | |
16451 | + /** |
|
16452 | + * @param string $url |
|
16453 | + */ |
|
16425 | 16454 | private function parse_microformats(&$data, $url) { |
16426 | 16455 | $feed_title = ''; |
16427 | 16456 | $feed_author = NULL; |
@@ -16953,6 +16982,8 @@ discard block |
||
16953 | 16982 | * |
16954 | 16983 | * For documentation on all the parameters, see the corresponding |
16955 | 16984 | * properties and their accessors |
16985 | + * @param string $relationship |
|
16986 | + * @param string $value |
|
16956 | 16987 | */ |
16957 | 16988 | public function __construct($relationship = null, $type = null, $value = null) |
16958 | 16989 | { |
@@ -17390,6 +17421,9 @@ discard block |
||
17390 | 17421 | return $data; |
17391 | 17422 | } |
17392 | 17423 | |
17424 | + /** |
|
17425 | + * @param string $html |
|
17426 | + */ |
|
17393 | 17427 | protected function preprocess($html, $type) |
17394 | 17428 | { |
17395 | 17429 | $ret = ''; |
@@ -17414,6 +17448,9 @@ discard block |
||
17414 | 17448 | return $ret; |
17415 | 17449 | } |
17416 | 17450 | |
17451 | + /** |
|
17452 | + * @param DOMDocument $document |
|
17453 | + */ |
|
17417 | 17454 | public function replace_urls($document, $tag, $attributes) |
17418 | 17455 | { |
17419 | 17456 | if (!is_array($attributes)) |
@@ -17466,6 +17503,10 @@ discard block |
||
17466 | 17503 | } |
17467 | 17504 | } |
17468 | 17505 | |
17506 | + /** |
|
17507 | + * @param DOMDocument $document |
|
17508 | + * @param DOMXPath $xpath |
|
17509 | + */ |
|
17469 | 17510 | protected function strip_tag($tag, $document, $xpath, $type) |
17470 | 17511 | { |
17471 | 17512 | $elements = $xpath->query('body//' . $tag); |
@@ -17550,6 +17591,9 @@ discard block |
||
17550 | 17591 | } |
17551 | 17592 | } |
17552 | 17593 | |
17594 | + /** |
|
17595 | + * @param DOMXPath $xpath |
|
17596 | + */ |
|
17553 | 17597 | protected function strip_attr($attrib, $xpath) |
17554 | 17598 | { |
17555 | 17599 | $elements = $xpath->query('//*[@' . $attrib . ']'); |
@@ -17560,6 +17604,9 @@ discard block |
||
17560 | 17604 | } |
17561 | 17605 | } |
17562 | 17606 | |
17607 | + /** |
|
17608 | + * @param DOMDocument $document |
|
17609 | + */ |
|
17563 | 17610 | protected function add_attr($tag, $valuePairs, $document) |
17564 | 17611 | { |
17565 | 17612 | $elements = $document->getElementsByTagName($tag); |
@@ -17605,6 +17652,10 @@ discard block |
||
17605 | 17652 | return md5(serialize($this->data)); |
17606 | 17653 | } |
17607 | 17654 | |
17655 | + /** |
|
17656 | + * @param string $namespace |
|
17657 | + * @param string $tag |
|
17658 | + */ |
|
17608 | 17659 | public function get_source_tags($namespace, $tag) |
17609 | 17660 | { |
17610 | 17661 | if (isset($this->data['child'][$namespace][$tag])) |
@@ -17617,6 +17668,9 @@ discard block |
||
17617 | 17668 | } |
17618 | 17669 | } |
17619 | 17670 | |
17671 | + /** |
|
17672 | + * @return string |
|
17673 | + */ |
|
17620 | 17674 | public function get_base($element = array()) |
17621 | 17675 | { |
17622 | 17676 | return $this->item->get_base($element); |