Lines Matching defs:class

64 class SimplePie
434 * @var object Instance of \SimplePie\Sanitize (or other class)
648 public $strip_attributes = ['bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc'];
678 * The SimplePie class contains feed level data and options
787 $this->multifeed_url[] = $this->registry->call(Misc::class, 'fix_protocol', [$value, 1]);
790 $this->feed_url = $this->registry->call(Misc::class, 'fix_protocol', [$url, 1]);
1022 * Get the class registry
1035 * Set which class SimplePie uses for caching
1039 * @param string $class Name of custom class
1043 public function set_cache_class($class = Cache::class)
1047 return $this->registry->register(Cache::class, $class, true);
1051 * Set which class SimplePie uses for auto-discovery
1055 * @param string $class Name of custom class
1059 public function set_locator_class($class = Locator::class)
1063 return $this->registry->register(Locator::class, $class, true);
1067 * Set which class SimplePie uses for XML parsing
1071 * @param string $class Name of custom class
1075 public function set_parser_class($class = Parser::class)
1079 return $this->registry->register(Parser::class, $class, true);
1083 * Set which class SimplePie uses for remote file fetching
1087 * @param string $class Name of custom class
1091 public function set_file_class($class = File::class)
1095 return $this->registry->register(File::class, $class, true);
1099 * Set which class SimplePie uses for data sanitization
1103 * @param string $class Name of custom class
1107 public function set_sanitize_class($class = Sanitize::class)
1111 return $this->registry->register(Sanitize::class, $class, true);
1115 * Set which class SimplePie uses for handling feed items
1119 * @param string $class Name of custom class
1123 public function set_item_class($class = Item::class)
1127 return $this->registry->register(Item::class, $class, true);
1131 * Set which class SimplePie uses for handling author data
1135 * @param string $class Name of custom class
1139 public function set_author_class($class = Author::class)
1143 return $this->registry->register(Author::class, $class, true);
1147 * Set which class SimplePie uses for handling category data
1151 * @param string $class Name of custom class
1155 public function set_category_class($class = Category::class)
1159 return $this->registry->register(Category::class, $class, true);
1163 * Set which class SimplePie uses for feed enclosures
1167 * @param string $class Name of custom class
1171 public function set_enclosure_class($class = Enclosure::class)
1175 return $this->registry->register(Enclosure::class, $class, true);
1179 * Set which class SimplePie uses for `<media:text>` captions
1183 * @param string $class Name of custom class
1187 public function set_caption_class($class = Caption::class)
1191 return $this->registry->register(Caption::class, $class, true);
1195 * Set which class SimplePie uses for `<media:copyright>`
1199 * @param string $class Name of custom class
1203 public function set_copyright_class($class = Copyright::class)
1207 return $this->registry->register(Copyright::class, $class, true);
1211 * Set which class SimplePie uses for `<media:credit>`
1215 * @param string $class Name of custom class
1219 public function set_credit_class($class = Credit::class)
1223 return $this->registry->register(Credit::class, $class, true);
1227 * Set which class SimplePie uses for `<media:rating>`
1231 * @param string $class Name of custom class
1235 public function set_rating_class($class = Rating::class)
1239 return $this->registry->register(Rating::class, $class, true);
1243 * Set which class SimplePie uses for `<media:restriction>`
1247 * @param string $class Name of custom class
1251 public function set_restriction_class($class = Restriction::class)
1255 return $this->registry->register(Restriction::class, $class, true);
1259 * Set which class SimplePie uses for content-type sniffing
1263 * @param string $class Name of custom class
1267 public function set_content_type_sniffer_class($class = Sniffer::class)
1271 return $this->registry->register(Sniffer::class, $class, true);
1275 * Set which class SimplePie uses item sources
1279 * @param string $class Name of custom class
1283 public function set_source_class($class = Source::class)
1287 return $this->registry->register(Source::class, $class, true);
1536 // The default sanitize class gets set in the constructor, check if it has
1538 if ($this->registry->get_class(Sanitize::class) !== 'SimplePie\Sanitize') {
1539 $this->sanitize = $this->registry->create(Sanitize::class);
1551 $this->registry->get_class(Cache::class),
1554 $this->sanitize->pass_file_data($this->registry->get_class(File::class), $this->timeout, $this->useragent, $this->force_fsockopen, $this->curl_options);
1583 $parsed_feed_url = $this->registry->call(Misc::class, 'parse_url', [$this->feed_url]);
1603 $this->registry->call(Misc::class, 'error', [$this->error, E_USER_NOTICE, __FILE__, __LINE__]);
1624 $encodings = array_merge($encodings, $this->registry->call(Misc::class, 'xml_encoding', [$this->raw_data, &$this->registry]));
1639 $encodings = array_merge($encodings, $this->registry->call(Misc::class, 'xml_encoding', [$this->raw_data, &$this->registry]));
1649 if ($utf8_data = $this->registry->call(Misc::class, 'change_encoding', [$this->raw_data, $encoding, 'UTF-8'])) {
1651 $parser = $this->registry->create(Parser::class);
1658 $this->registry->call(Misc::class, 'error', [$this->error, E_USER_NOTICE, __FILE__, __LINE__]);
1700 $this->registry->call(Misc::class, 'error', [$this->error, E_USER_NOTICE, __FILE__, __LINE__]);
1723 DataCache::class
1777 $file = $this->registry->create(File::class, [$this->feed_url, $this->timeout/10, 5, $headers, $this->useragent, $this->force_fsockopen, $this->curl_options]);
1819 $file = $this->registry->create(File::class, [$this->feed_url, $this->timeout, 5, $headers, $this->useragent, $this->force_fsockopen, $this->curl_options]);
1832 $locate = $this->registry->create(Locator::class, [&$file, $this->timeout, $this->useragent, $this->max_checked_feeds, $this->force_fsockopen, $this->curl_options]);
1845 $query = '//*[contains(concat(" ", @class, " "), " h-feed ") or '.
1846 'contains(concat(" ", @class, " "), " h-entry ")]';
1874 $this->registry->call(Misc::class, 'error', [$this->error, E_USER_NOTICE, __FILE__, __LINE__]);
1883 $this->registry->call(Misc::class, 'error', [$this->error, E_USER_NOTICE, $e->getFile(), $e->getLine()]);
1907 $sniffer = $this->registry->create(Sniffer::class, [&$file]);
2311 $this->registry->call(Misc::class, 'error', [$this->error, E_USER_WARNING, $e->getFile(), $e->getLine()]);
2330 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_10_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2332 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_03_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2390 $categories[] = $this->registry->create(Category::class, [$term, $scheme, $label]);
2401 $categories[] = $this->registry->create(Category::class, [$term, $scheme, null]);
2404 $categories[] = $this->registry->create(Category::class, [$this->sanitize($category['data'], self::CONSTRUCT_TEXT), null, null]);
2407 $categories[] = $this->registry->create(Category::class, [$this->sanitize($category['data'], self::CONSTRUCT_TEXT), null, null]);
2459 $authors[] = $this->registry->create(Author::class, [$name, $uri, $email]);
2476 $authors[] = $this->registry->create(Author::class, [$name, $url, $email]);
2480 $authors[] = $this->registry->create(Author::class, [$this->sanitize($author['data'], self::CONSTRUCT_TEXT), null, null]);
2483 $authors[] = $this->registry->create(Author::class, [$this->sanitize($author['data'], self::CONSTRUCT_TEXT), null, null]);
2486 $authors[] = $this->registry->create(Author::class, [$this->sanitize($author['data'], self::CONSTRUCT_TEXT), null, null]);
2538 $contributors[] = $this->registry->create(Author::class, [$name, $uri, $email]);
2555 $contributors[] = $this->registry->create(Author::class, [$name, $url, $email]);
2641 if ($this->registry->call(Misc::class, 'is_isegment_nz_nc', [$key])) {
2691 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_10_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2693 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_03_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2724 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_10_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
2726 return $this->sanitize($return[0]['data'], $this->registry->call(Misc::class, 'atom_03_construct_type', [$return[0]['attribs']]), $this->get_base($return[0]));
3007 $this->data['items'][] = $this->registry->create(Item::class, [$this, $items[$key]]);
3013 $this->data['items'][] = $this->registry->create(Item::class, [$this, $items[$key]]);
3019 $this->data['items'][] = $this->registry->create(Item::class, [$this, $items[$key]]);
3025 $this->data['items'][] = $this->registry->create(Item::class, [$this, $items[$key]]);
3031 $this->data['items'][] = $this->registry->create(Item::class, [$this, $items[$key]]);
3102 $class = get_class($this);
3106 trigger_error("Call to undefined method $class::$method() in $file on line $line", E_USER_ERROR);
3215 $cache = $this->registry->call(Cache::class, 'get_handler', [