Class

Feed

Package: Content\Feed Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Loic ROUCHON horn@phpboost.com Version: PHPBoost 5.2 - last update: 2018 10 23 Since: PHPBoost 2.0 - 2008 04 21 Contributor: Julien BRISWALTER j1.seth@phpboost.com Located at: content/feed/Feed.class.php
Direct known subclasses
ATOM, RSS
Methods summary
public
# __construct( string $module_id, string $name = self::DEFAULT_FEED_NAME, integer $id_cat = 0 )

Builds a new feed object

public
# load_data( FeedData $data )

Loads a FeedData element

public
# load_file( string $url )

Loads a feed by its url

public string
# export( mixed $template = false, integer $number = 10, integer $begin_at = 0 )

Exports the feed as a string parsed by the <$tpl> template

public string
# read( )

Loads the feed data in cache and export it

public
# cache( )

Send the feed data in the cache

public boolean
# is_in_cache( )

Returns true if the feed data are in the cache

public string
# get_cache_file_name( )

Returns the feed data cache filename

public static
# clear_cache( mixed $module_id = false )

Clear the cache of the specified module_id.

public static string
# get_parsed( string $module_id, string $name = self::DEFAULT_FEED_NAME, integer $idcat = 0, mixed $template = false, integer $number = 10, integer $begin_at = 0 )

Export a feed

public static string
# get_feed_menu( string $module_id, $id_cat = 0 )
Constants summary
string DEFAULT_FEED_NAME
# 'master'
Properties summary
protected string $tpl

The feed Template to use

# null
Annonces