Function CMS_RSS->__construct

Definitions

sources/rss.php

  • Constructs the RSS reader: downloads the URL and parses it. Check $error after constructing.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$url URLPATH No No required parameter N/A N/A The URL to the RSS we will be reading
$is_filesystem_path boolean No No False N/A N/A Whether the 'url' is actually a filesystem path
$timeout float No No 6 N/A N/A HTTP timeout

Preview

Code (PHP)

/**
 * Constructs the RSS reader: downloads the URL and parses it. Check $error after constructing.
 *
 * @param  URLPATH $url The URL to the RSS we will be reading
 * @param  boolean $is_filesystem_path Whether the 'url' is actually a filesystem path
 * @param  float $timeout HTTP timeout
 */

public function __construct(string $url, bool $is_filesystem_path = false, float $timeout = 6)