PHP Класс Phergie_Plugin_FeedTicker, phergie

Автор: Phergie Development Team ([email protected])
Наследование: extends Phergie_Plugin_Abstract
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$channelsStatus Array with channels's last activity
$db resource PDO resource for a SQLite database.
$lastDeliveryTime Time of last delivery

Открытые методы

Метод Описание
checkQueue ( String $channel ) : void Get unread items from the database and delivery then
createTables ( ) : void Creates the database table(s) (if they don't exist)
feedCheckingCallback ( ) : void Cron callback to check the feed
getFeed ( string $url, string $updated, string $etag = '' ) : FeedParser Check if the feed is valid, updated and returns the content + header
getUnreadItems ( String $channel ) : array Get all unread items from this channel
haveTable ( string $name ) : boolean Determines if a table exists
onJoin ( ) : void Tracks users joining a channel
onLoad ( ) : void Checks for dependencies, set default values and starts Cron callback
onPart ( ) : void Tracks users leaving a channel
onPrivmsg ( ) : void Tracks channel chat
onQuit ( ) : void Tracks users quitting a server
setChannelStatus ( String $channel ) : void Check if the bot is not alone in this channel and set new channel Status

Описание методов

checkQueue() публичный Метод

Get unread items from the database and delivery then
public checkQueue ( String $channel ) : void
$channel String ToDo desc
Результат void

createTables() публичный Метод

Creates the database table(s) (if they don't exist)
public createTables ( ) : void
Результат void

feedCheckingCallback() публичный Метод

Cron callback to check the feed
public feedCheckingCallback ( ) : void
Результат void

getFeed() публичный Метод

Check if the feed is valid, updated and returns the content + header
public getFeed ( string $url, string $updated, string $etag = '' ) : FeedParser
$url string Feed URL
$updated string Last time this feed was checked
$etag string Last etag of this feed
Результат FeedParser

getUnreadItems() публичный Метод

Get all unread items from this channel
public getUnreadItems ( String $channel ) : array
$channel String ToDo desc
Результат array

haveTable() публичный Метод

Determines if a table exists
public haveTable ( string $name ) : boolean
$name string Table name
Результат boolean

onJoin() публичный Метод

Tracks users joining a channel
public onJoin ( ) : void
Результат void

onLoad() публичный Метод

Checks for dependencies, set default values and starts Cron callback
public onLoad ( ) : void
Результат void

onPart() публичный Метод

Tracks users leaving a channel
public onPart ( ) : void
Результат void

onPrivmsg() публичный Метод

Tracks channel chat
public onPrivmsg ( ) : void
Результат void

onQuit() публичный Метод

Tracks users quitting a server
public onQuit ( ) : void
Результат void

setChannelStatus() публичный Метод

Check if the bot is not alone in this channel and set new channel Status
public setChannelStatus ( String $channel ) : void
$channel String TODO desc
Результат void

Описание свойств

$channelsStatus защищенное свойство

Array with channels's last activity
protected $channelsStatus

$db защищенное свойство

PDO resource for a SQLite database.
protected resource $db
Результат resource

$lastDeliveryTime защищенное свойство

Time of last delivery
protected $lastDeliveryTime