PHP Class Phergie_Plugin_FeedManager, phergie

Inheritance: extends Phergie_Plugin_Abstract
Afficher le fichier Open project: phergie/phergie

Protected Properties

Свойство Type Description
$db resource PDO resource for a SQLite database.
$feeds Array with registred feeds

Méthodes publiques

Méthode 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 méthode

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

feedExists() public méthode

Determines if the feed_id exists
public feedExists ( integer $feed_id ) : boolean
$feed_id integer ToDo desc
Résultat boolean

getAllFeeds() public méthode

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

getFeedsList() public méthode

Return the Feedlist
public getFeedsList ( ) : array
Résultat array

onCommandFeedadd() public méthode

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

onCommandFeedclear() public méthode

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

onCommandFeeddelay() public méthode

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

onCommandFeeddelete() public méthode

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

onCommandFeeddisable() public méthode

Disables the Feed
public onCommandFeeddisable ( integer $feed_id ) : void
$feed_id integer ToDo desc
Résultat void

onCommandFeedenable() public méthode

Enables the Feed
public onCommandFeedenable ( integer $feed_id ) : void
$feed_id integer ToDo desc
Résultat void

onCommandFeedlist() public méthode

Show a list of registred feeds
public onCommandFeedlist ( ) : void
Résultat void

onCommandFeedsearch() public méthode

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

onConnect() public méthode

TODO: Function Description
public onConnect ( ) : void
Résultat void

onLoad() public méthode

Checks for dependencies
public onLoad ( ) : void
Résultat void

Property Details

$db protected_oe property

PDO resource for a SQLite database.
protected resource $db
Résultat resource

$feeds protected_oe property

Array with registred feeds
protected $feeds