Lines Matching refs:registry

583      * Class registry object
587 public $registry;
704 $this->registry = new \SimplePie\Registry();
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
1031 return $this->registry;
1047 return $this->registry->register(Cache::class, $class, true);
1063 return $this->registry->register(Locator::class, $class, true);
1079 return $this->registry->register(Parser::class, $class, true);
1095 return $this->registry->register(File::class, $class, true);
1111 return $this->registry->register(Sanitize::class, $class, true);
1127 return $this->registry->register(Item::class, $class, true);
1143 return $this->registry->register(Author::class, $class, true);
1159 return $this->registry->register(Category::class, $class, true);
1175 return $this->registry->register(Enclosure::class, $class, true);
1191 return $this->registry->register(Caption::class, $class, true);
1207 return $this->registry->register(Copyright::class, $class, true);
1223 return $this->registry->register(Credit::class, $class, true);
1239 return $this->registry->register(Rating::class, $class, true);
1255 return $this->registry->register(Restriction::class, $class, true);
1271 return $this->registry->register(Sniffer::class, $class, true);
1287 return $this->registry->register(Source::class, $class, true);
1538 if ($this->registry->get_class(Sanitize::class) !== 'SimplePie\Sanitize') {
1539 $this->sanitize = $this->registry->create(Sanitize::class);
1542 $this->sanitize->set_registry($this->registry);
1546 // Pass the classes in for legacy support; new classes should use the registry instead
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__]);
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]);
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]]);
3215 $cache = $this->registry->call(Cache::class, 'get_handler', [