Lines Matching refs:return

631      * @var integer Stores the number of items to return per-feed with multifeeds.
729 return md5(serialize($this->data));
799 * @return bool True on success, false on failure
807 return true;
809 return false;
887 * @return void
951 * @return string A filename (i.e. hash, without path and without extension).
974 return $this->cache_namefilter->filter($url);
1027 * @return Registry
1031 return $this->registry;
1041 * @return boolean True on success, false otherwise
1047 return $this->registry->register(Cache::class, $class, true);
1057 * @return boolean True on success, false otherwise
1063 return $this->registry->register(Locator::class, $class, true);
1073 * @return boolean True on success, false otherwise
1079 return $this->registry->register(Parser::class, $class, true);
1089 * @return boolean True on success, false otherwise
1095 return $this->registry->register(File::class, $class, true);
1105 * @return boolean True on success, false otherwise
1111 return $this->registry->register(Sanitize::class, $class, true);
1121 * @return boolean True on success, false otherwise
1127 return $this->registry->register(Item::class, $class, true);
1137 * @return boolean True on success, false otherwise
1143 return $this->registry->register(Author::class, $class, true);
1153 * @return boolean True on success, false otherwise
1159 return $this->registry->register(Category::class, $class, true);
1169 * @return boolean True on success, false otherwise
1175 return $this->registry->register(Enclosure::class, $class, true);
1185 * @return boolean True on success, false otherwise
1191 return $this->registry->register(Caption::class, $class, true);
1201 * @return boolean True on success, false otherwise
1207 return $this->registry->register(Copyright::class, $class, true);
1217 * @return boolean True on success, false otherwise
1223 return $this->registry->register(Credit::class, $class, true);
1233 * @return boolean True on success, false otherwise
1239 return $this->registry->register(Rating::class, $class, true);
1249 * @return boolean True on success, false otherwise
1255 return $this->registry->register(Restriction::class, $class, true);
1265 * @return boolean True on success, false otherwise
1271 return $this->registry->register(Sniffer::class, $class, true);
1281 * @return boolean True on success, false otherwise
1287 return $this->registry->register(Source::class, $class, true);
1309 * @return void
1489 * @param integer $limit The maximum number of items to return.
1513 * @return boolean True if successful, false otherwise
1520 return false;
1532 return false;
1571 return (bool) $success;
1573 return false;
1592 return true;
1594 return false;
1604 return false;
1646 // Loop through each possible encoding, till we return something, or run out of possibilities
1659 return false;
1672 return true;
1702 return false;
1710 * @return array|true Returns true if the data was loaded from the cache, or an array of HTTP headers and sniffed type
1754 return $this->init();
1786 return true;
1792 return true;
1799 // If the cache is still valid, just return true
1802 return true;
1827 return !empty($this->data);
1875 return false;
1884 return false;
1910 return [$headers, $sniffed];
1916 * @return string|array Error message, or array of messages for multifeeds
1920 return $this->error;
1926 * @return int Status code
1930 return $this->status_code;
1939 * @return string|boolean Raw XML data, false if the cache is used
1943 return $this->raw_data;
1950 * @return string
1954 return $this->sanitize->output_encoding;
2013 * @return int \SimplePie\SimplePie::TYPE_* constant
2076 return $this->data['type'];
2094 * @param bool $permanent Permanent mode to return only the original URL or the first redirection
2096 * @return string|null
2103 return str_replace(
2114 return str_replace(
2124 return null;
2133 * The return value is an indexed array of elements matching the given
2156 * @return array
2163 return $this->data['child'][self::NAMESPACE_ATOM_10]['feed'][0]['child'][$namespace][$tag];
2168 return $this->data['child'][self::NAMESPACE_ATOM_03]['feed'][0]['child'][$namespace][$tag];
2173 return $this->data['child'][self::NAMESPACE_RDF]['RDF'][0]['child'][$namespace][$tag];
2178 return $this->data['child'][self::NAMESPACE_RSS_20]['rss'][0]['child'][$namespace][$tag];
2181 return null;
2190 * See {@see SimplePie::get_feed_tags()} for a description of the return value
2196 * @return array
2202 if ($return = $this->get_feed_tags($namespace, $tag)) {
2203 return $return;
2209 return $channel[0]['child'][$namespace][$tag];
2216 return $channel[0]['child'][$namespace][$tag];
2223 return $channel[0]['child'][$namespace][$tag];
2227 return null;
2236 * See {@see SimplePie::get_feed_tags()} for a description of the return value
2242 * @return array
2250 return $image[0]['child'][$namespace][$tag];
2257 return $image[0]['child'][$namespace][$tag];
2264 return $image[0]['child'][$namespace][$tag];
2268 return null;
2281 * @return string
2286 return $element['xml_base'];
2288 return $this->get_link();
2291 return $this->subscribe_url();
2302 * @return string Sanitized data
2307 return $this->sanitize->sanitize($data, $type, $base);
2312 return '';
2325 * @return string|null
2329 if ($return = $this->get_channel_tags(self::NAMESPACE_ATOM_10, 'title')) {
2330 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_10_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2331 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_ATOM_03, 'title')) {
2332 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_03_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2333 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_RSS_10, 'title')) {
2334 return $this->sanitize($return[0]['data'], self::CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
2335 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_RSS_090, 'title')) {
2336 return $this->sanitize($return[0]['data'], self::CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
2337 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_RSS_20, 'title')) {
2338 return $this->sanitize($return[0]['data'], self::CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
2339 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_DC_11, 'title')) {
2340 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2341 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_DC_10, 'title')) {
2342 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2345 return null;
2352 * @param int $key The category that you want to return. Remember that arrays begin with 0, not 1
2353 * @return \SimplePie\Category|null
2359 return $categories[$key];
2362 return null;
2371 * @return array|null List of {@see \SimplePie\Category} objects
2411 return array_unique($categories);
2414 return null;
2421 * @param int $key The author that you want to return. Remember that arrays begin with 0, not 1
2422 * @return \SimplePie\Author|null
2428 return $authors[$key];
2431 return null;
2440 * @return array|null List of {@see \SimplePie\Author} objects
2490 return array_unique($authors);
2493 return null;
2500 * @param int $key The contrbutor that you want to return. Remember that arrays begin with 0, not 1
2501 * @return \SimplePie\Author|null
2507 return $contributors[$key];
2510 return null;
2519 * @return array|null List of {@see \SimplePie\Author} objects
2560 return array_unique($contributors);
2563 return null;
2570 * @param int $key The link that you want to return. Remember that arrays begin with 0, not 1
2571 * @param string $rel The relationship of the link to return
2572 * @return string|null Link URL
2578 return $links[$key];
2581 return null;
2593 * @return string|null Link URL
2597 return $this->get_link(0);
2606 * @param string $rel The relationship of links to return
2607 * @return array|null Links found for the feed (strings)
2663 return $matches['uri'];
2668 return $this->data['links'][$rel];
2671 return null;
2676 return $this->all_discovered_feeds;
2686 * @return string|null
2690 if ($return = $this->get_channel_tags(self::NAMESPACE_ATOM_10, 'subtitle')) {
2691 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_10_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2692 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_ATOM_03, 'tagline')) {
2693 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_03_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2694 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_RSS_10, 'description')) {
2695 return $this->sanitize($return[0]['data'], self::CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
2696 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_RSS_090, 'description')) {
2697 return $this->sanitize($return[0]['data'], self::CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
2698 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_RSS_20, 'description')) {
2699 return $this->sanitize($return[0]['data'], self::CONSTRUCT_HTML, $this->get_base($return[0]));
2700 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_DC_11, 'description')) {
2701 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2702 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_DC_10, 'description')) {
2703 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2704 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_ITUNES, 'summary')) {
2705 return $this->sanitize($return[0]['data'], self::CONSTRUCT_HTML, $this->get_base($return[0]));
2706 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_ITUNES, 'subtitle')) {
2707 return $this->sanitize($return[0]['data'], self::CONSTRUCT_HTML, $this->get_base($return[0]));
2710 return null;
2719 * @return string|null
2723 if ($return = $this->get_channel_tags(self::NAMESPACE_ATOM_10, 'rights')) {
2724 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_10_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2725 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_ATOM_03, 'copyright')) {
2726 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_03_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2727 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_RSS_20, 'copyright')) {
2728 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2729 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_DC_11, 'rights')) {
2730 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2731 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_DC_10, 'rights')) {
2732 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2735 return null;
2744 * @return string|null
2748 if ($return = $this->get_channel_tags(self::NAMESPACE_RSS_20, 'language')) {
2749 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2750 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_DC_11, 'language')) {
2751 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2752 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_DC_10, 'language')) {
2753 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2755 return $this->sanitize($this->data['child'][self::NAMESPACE_ATOM_10]['feed'][0]['xml_lang'], self::CONSTRUCT_TEXT);
2757 return $this->sanitize($this->data['child'][self::NAMESPACE_ATOM_03]['feed'][0]['xml_lang'], self::CONSTRUCT_TEXT);
2759 return $this->sanitize($this->data['child'][self::NAMESPACE_RDF]['RDF'][0]['xml_lang'], self::CONSTRUCT_TEXT);
2761 return $this->sanitize($this->data['headers']['content-language'], self::CONSTRUCT_TEXT);
2764 return null;
2777 * @return string|null
2781 if ($return = $this->get_channel_tags(self::NAMESPACE_W3C_BASIC_GEO, 'lat')) {
2782 return (float) $return[0]['data'];
2783 } elseif (($return = $this->get_channel_tags(self::NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match)) {
2784 return (float) $match[1];
2787 return null;
2800 * @return string|null
2804 if ($return = $this->get_channel_tags(self::NAMESPACE_W3C_BASIC_GEO, 'long')) {
2805 return (float) $return[0]['data'];
2806 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_W3C_BASIC_GEO, 'lon')) {
2807 return (float) $return[0]['data'];
2808 } elseif (($return = $this->get_channel_tags(self::NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match)) {
2809 return (float) $match[2];
2812 return null;
2822 * @return string|null
2826 if ($return = $this->get_image_tags(self::NAMESPACE_RSS_10, 'title')) {
2827 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2828 } elseif ($return = $this->get_image_tags(self::NAMESPACE_RSS_090, 'title')) {
2829 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2830 } elseif ($return = $this->get_image_tags(self::NAMESPACE_RSS_20, 'title')) {
2831 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2832 } elseif ($return = $this->get_image_tags(self::NAMESPACE_DC_11, 'title')) {
2833 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2834 } elseif ($return = $this->get_image_tags(self::NAMESPACE_DC_10, 'title')) {
2835 return $this->sanitize($return[0]['data'], self::CONSTRUCT_TEXT);
2838 return null;
2850 * @return string|null
2854 if ($return = $this->get_channel_tags(self::NAMESPACE_ITUNES, 'image')) {
2855 return $this->sanitize($return[0]['attribs']['']['href'], self::CONSTRUCT_IRI);
2856 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_ATOM_10, 'logo')) {
2857 return $this->sanitize($return[0]['data'], self::CONSTRUCT_IRI, $this->get_base($return[0]));
2858 } elseif ($return = $this->get_channel_tags(self::NAMESPACE_ATOM_10, 'icon')) {
2859 return $this->sanitize($return[0]['data'], self::CONSTRUCT_IRI, $this->get_base($return[0]));
2860 } elseif ($return = $this->get_image_tags(self::NAMESPACE_RSS_10, 'url')) {
2861 return $this->sanitize($return[0]['data'], self::CONSTRUCT_IRI, $this->get_base($return[0]));
2862 } elseif ($return = $this->get_image_tags(self::NAMESPACE_RSS_090, 'url')) {
2863 return $this->sanitize($return[0]['data'], self::CONSTRUCT_IRI, $this->get_base($return[0]));
2864 } elseif ($return = $this->get_image_tags(self::NAMESPACE_RSS_20, 'url')) {
2865 return $this->sanitize($return[0]['data'], self::CONSTRUCT_IRI, $this->get_base($return[0]));
2868 return null;
2881 * @return string|null
2885 if ($return = $this->get_image_tags(self::NAMESPACE_RSS_10, 'link')) {
2886 return $this->sanitize($return[0]['data'], self::CONSTRUCT_IRI, $this->get_base($return[0]));
2887 } elseif ($return = $this->get_image_tags(self::NAMESPACE_RSS_090, 'link')) {
2888 return $this->sanitize($return[0]['data'], self::CONSTRUCT_IRI, $this->get_base($return[0]));
2889 } elseif ($return = $this->get_image_tags(self::NAMESPACE_RSS_20, 'link')) {
2890 return $this->sanitize($return[0]['data'], self::CONSTRUCT_IRI, $this->get_base($return[0]));
2893 return null;
2904 * @return int|null
2908 if ($return = $this->get_image_tags(self::NAMESPACE_RSS_20, 'width')) {
2909 return intval($return[0]['data']);
2911 return 88;
2914 return null;
2925 * @return int|null
2929 if ($return = $this->get_image_tags(self::NAMESPACE_RSS_20, 'height')) {
2930 return intval($return[0]['data']);
2932 return 31;
2935 return null;
2944 * @param int $max Maximum value to return. 0 for no limit
2945 * @return int Number of items in the feed
2952 return $qty;
2955 return ($qty > $max) ? $max : $qty;
2967 * @param int $key The item that you want to return. Remember that arrays begin with 0, not 1
2968 * @return \SimplePie\Item|null
2974 return $items[$key];
2977 return null;
2990 * @param int $end Number of items to return. 0 for all items after `$start`
2991 * @return \SimplePie\Item[]|null List of {@see \SimplePie\Item} objects
2999 return [];
3001 return $this->data['items'];
3037 return [];
3051 return array_slice($items, $start);
3054 return array_slice($items, $start, $end);
3065 return false;
3078 return 'https://www.google.com/s2/favicons?domain=' . urlencode($url);
3081 return false;
3089 * @return mixed
3095 return '';
3099 return false;
3115 * @return boolean
3122 return $a_date > $b_date ? -1 : 1;
3126 return 1;
3129 return -1;
3131 return 0;
3143 * @param int $end Number of items to return
3145 * @return array
3162 return array_slice($items, $start);
3165 return array_slice($items, $start, $end);
3169 return [];
3186 return;
3209 * @return DataCache
3221 return new BaseDataCache($cache);
3224 return $this->cache;