[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/ -> class-wp-simplepie-file.php (summary)

Feed API: WP_SimplePie_File class

File Size: 102 lines (3 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_SimplePie_File:: (1 method):
  __construct()


Class: WP_SimplePie_File  - X-Ref

Core class for fetching remote files and reading local files with SimplePie.

This uses Core's HTTP API to make requests, which gives plugins the ability
to hook into the process.

__construct( $url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false )   X-Ref
Constructor.

since: 2.8.0
since: 3.2.0 Updated to use a PHP5 constructor.
since: 5.6.1 Multiple headers are concatenated into a comma-separated string, rather than remaining
param: string       $url             Remote file URL.
param: int          $timeout         Optional. How long the connection should stay open in seconds.
param: int          $redirects       Optional. The number of allowed redirects. Default 5.
param: string|array $headers         Optional. Array or string of headers to send with the request.
param: string       $useragent       Optional. User-agent value sent. Default null.
param: bool         $force_fsockopen Optional. Whether to force opening internet or unix domain socket



Generated: Mon Mar 1 01:00:03 2021 Cross-referenced by PHPXref 0.7.1