[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/SimplePie/src/ -> Locator.php (summary)

(no description)

File Size: 478 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Locator:: (13 methods):
  __construct()
  set_http_client()
  set_registry()
  find()
  is_feed()
  get_base()
  autodiscovery()
  search_elements_by_tag()
  get_links()
  get_rel_link()
  extension()
  body()
  get_http_client()


Class: Locator  - X-Ref

Used for feed auto-discovery

This class can be overloaded with {@see \SimplePie\SimplePie::set_locator_class()}
__construct(File $file, int $timeout = 10, ?string $useragent = null, int $max_checked_feeds = 10, bool $force_fsockopen = false, array $curl_options = [])   X-Ref

param: array<int, mixed> $curl_options

set_http_client(ClientInterface $http_client,RequestFactoryInterface $request_factory,UriFactoryInterface $uri_factory)   X-Ref
Set a PSR-18 client and PSR-17 factories

Allows you to use your own HTTP client implementations.

set_registry(\SimplePie\Registry $registry)   X-Ref

return: void

find(int $type = \SimplePie\SimplePie::LOCATOR_ALL, ?array &$working = null)   X-Ref

return: Response|null
param: SimplePie::LOCATOR_* $type
param: array<Response>|null $working

is_feed(Response $file, bool $check_html = false)   X-Ref

return: bool

get_base()   X-Ref

return: void

autodiscovery()   X-Ref

return: array<Response>|null

search_elements_by_tag(string $name, array &$done, array $feeds)   X-Ref

return: array<string, Response>
param: string[] $done
param: array<string, Response> $feeds

get_links()   X-Ref

return: true|null

get_rel_link(string $rel)   X-Ref
Extracts first `link` element with given `rel` attribute inside the `head` element.

return: string|null

extension(array &$array)   X-Ref

return: array<Response>|null
param: string[] $array

body(array &$array)   X-Ref

return: array<Response>|null
param: string[] $array

get_http_client()   X-Ref
Get a HTTP client




Generated : Fri Oct 10 08:20:03 2025 Cross-referenced by PHPXref