Property | Type | Description | |
---|---|---|---|
$db | resource | PDO resource for a SQLite database containing the reminders. | |
$keepListInMemory | boolean | Flag that indicates whether or not to use an in-memory reminder list. | |
$msgStorage | In-memory store for pending reminders. | ||
$onlyTargetedReminders | boolean | Respond *only* to targeted reminders or not. | |
$publicReminders | Number of reminders to show in public. | ||
$remindOnJoin | boolean | Send reminders when a user joins the channel or not. |
Method | Description | |
---|---|---|
onCommandAsk ( string $recipient, string $message ) : void | Handle reminder requests | |
onCommandRemind ( string $recipient, string $message ) : void | Handle reminder requests | |
onCommandTell ( string $recipient, string $message ) : void | Handle reminder requests | |
onJoin ( ) : void | Handler for when a user joins a channel. | |
onLoad ( ) : void | Check for dependencies. | |
onPrivmsg ( ) : void | Intercepts a message and processes any contained recognized commands. |
Method | Description | |
---|---|---|
createTables ( ) : void | Creates the database table(s) (if they don't exist) | |
deleteMessage ( integer $rowid, string $channel, string $nick ) : void | Deletes a delivered message | |
deliverReminders ( string $channel, string $nick ) : void | Determines if the user has pending reminders, and if so, delivers them. | |
fetchMessages ( string $channel = null, string $recipient = null ) : array | Get pending messages (for a specific channel/recipient) | |
handleDelivery ( ) : void | Deliver reminders to a user. | |
handleRemind ( string $recipient, string $message ) : void | Handles the tell/remind command (stores the message) | |
haveTable ( string $name ) : boolean | Determines if a table exists | |
populateMemory ( ) : void | Populates the in-memory cache of pending reminders |
protected createTables ( ) : void | ||
return | void |
protected handleDelivery ( ) : void | ||
return | void |
protected populateMemory ( ) : void | ||
return | void |
protected resource $db | ||
return | resource |
protected bool $keepListInMemory | ||
return | boolean |
protected bool $onlyTargetedReminders | ||
return | boolean |
protected $publicReminders |
protected bool $remindOnJoin | ||
return | boolean |