Skip to content

icms_feeds_Simplerss

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_feeds_Simplerss

Class handling RSS feeds, using SimplePie class

SimplePie is a very fast and easy-to-use class, written in PHP, that puts the 'simple' back into 'really simple syndication'. Flexible enough to suit beginners and veterans alike, SimplePie is focused on speed, ease of use, compatibility and standards compliance.

  • Class name: icms_feeds_Simplerss
  • Namespace:
  • Parent class: SimplePie

Methods

__construct

mixed icms_feeds_Simplerss::__construct(\str feed_url, int cache_duration)

The icms_feeds_Simplerss class contains feed level data and options

There are two ways that you can create a new icms_feeds_Simplerss object. The first is by passing a feed URL as a parameter to the icms_feeds_Simplerss constructor (as well as optionally setting the cache expiry - The cache location is automatically set as ICMS_CACHE_PATH). This will initialise the whole feed with all of the default settings, and you can begin accessing methods and properties immediately.

The second way is to create the icms_feeds_Simplerss object with no parameters at all. This will enable you to set configuration options. After setting them, you must initialise the feed using $feed->init(). At that point the object's methods and properties will be available to you.

  • Visibility: public

Arguments

  • feed_url str - <p>This is the URL you want to parse.</p>
  • cache_duration int - <p>This is the number of seconds that you want to store the cache file for.</p>
Clone this wiki locally