PHP Class Phergie_Plugin_FeedManager, phergie

Inheritance: extends Phergie_Plugin_Abstract
Show file Open project: phergie/phergie

Protected Properties

Property Type Description
$db resource PDO resource for a SQLite database.
$feeds Array with registred feeds

Public Methods

Method Description
addItems ( integer $feed_id, Array $items ) : void Add items on the database
feedExists ( integer $feed_id ) : boolean Determines if the feed_id exists
getAllFeeds ( String $channel = '' ) : array Get all feeds from database
getFeedsList ( ) : array Return the Feedlist
onCommandFeedadd ( String $feed_url, String $channel = '' ) : void Add a Feed
onCommandFeedclear ( String $feed_id = 'all' ) : void Cleans items from the database
onCommandFeeddelay ( integer $feed_id, integer $delay ) : void Set time delay to read this feed
onCommandFeeddelete ( integer $feed_id ) : void Removes the Feed from the database
onCommandFeeddisable ( integer $feed_id ) : void Disables the Feed
onCommandFeedenable ( integer $feed_id ) : void Enables the Feed
onCommandFeedlist ( ) : void Show a list of registred feeds
onCommandFeedsearch ( String $query ) : void Search items in the database
onConnect ( ) : void TODO: Function Description
onLoad ( ) : void Checks for dependencies

Method Details

addItems() public method

Add items on the database
public addItems ( integer $feed_id, Array $items ) : void
$feed_id integer ToDo desc
$items Array ToDo desc
return void

feedExists() public method

Determines if the feed_id exists
public feedExists ( integer $feed_id ) : boolean
$feed_id integer ToDo desc
return boolean

getAllFeeds() public method

Get all feeds from database
public getAllFeeds ( String $channel = '' ) : array
$channel String (optional)
return array

getFeedsList() public method

Return the Feedlist
public getFeedsList ( ) : array
return array

onCommandFeedadd() public method

Add a Feed
public onCommandFeedadd ( String $feed_url, String $channel = '' ) : void
$feed_url String ToDo desc
$channel String (optional)
return void

onCommandFeedclear() public method

Cleans items from the database
public onCommandFeedclear ( String $feed_id = 'all' ) : void
$feed_id String optional
return void

onCommandFeeddelay() public method

Set time delay to read this feed
public onCommandFeeddelay ( integer $feed_id, integer $delay ) : void
$feed_id integer ToDo desc
$delay integer ToDo desc
return void

onCommandFeeddelete() public method

Removes the Feed from the database
public onCommandFeeddelete ( integer $feed_id ) : void
$feed_id integer ToDo desc
return void

onCommandFeeddisable() public method

Disables the Feed
public onCommandFeeddisable ( integer $feed_id ) : void
$feed_id integer ToDo desc
return void

onCommandFeedenable() public method

Enables the Feed
public onCommandFeedenable ( integer $feed_id ) : void
$feed_id integer ToDo desc
return void

onCommandFeedlist() public method

Show a list of registred feeds
public onCommandFeedlist ( ) : void
return void

onCommandFeedsearch() public method

Search items in the database
public onCommandFeedsearch ( String $query ) : void
$query String ToDo desc
return void

onConnect() public method

TODO: Function Description
public onConnect ( ) : void
return void

onLoad() public method

Checks for dependencies
public onLoad ( ) : void
return void

Property Details

$db protected property

PDO resource for a SQLite database.
protected resource $db
return resource

$feeds protected property

Array with registred feeds
protected $feeds