PHP 클래스 Phergie_Plugin_FeedTicker, phergie

저자: Phergie Development Team ([email protected])
상속: extends Phergie_Plugin_Abstract
파일 보기 프로젝트 열기: phergie/phergie

보호된 프로퍼티들

프로퍼티 타입 설명
$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