Property | Type | Description | |
---|---|---|---|
$db | PDO | PDO instance for the database | |
$delete | PDOStatement | Prepared statement for deleting the definition for a given term | |
$process | PDOStatement | Prepared statement for searching for a definition for which the term matches as a regular expression against a given search string | |
$save | PDOStatement | Prepared statement for inserting a new definition | |
$select | PDOStatement | Prepared statement for searching for a definition by its exact term |
Method | Description | |
---|---|---|
onAction ( ) : void | Processes definition triggers in CTCP actions. | |
onCommandAddlart ( string $term, string $definition ) : void | Creates a new definition. | |
onCommandDeletelart ( string $term ) : void | Removes an existing definition. | |
onCommandLartinfo ( string $term ) : void | Returns information about a definition. | |
onLoad ( ) : void | Checks for dependencies and initializes the database. | |
onPrivmsg ( ) : void | Processes definition triggers in messages. |
Method | Description | |
---|---|---|
deleteLart ( string $term ) : boolean | Deletes a given definition. | |
getLart ( string $term ) : mixed | Retrieves the definition for a given term if it exists. | |
processLart ( ) : void | Processes definition triggers in the text of the current event. | |
saveLart ( string $term, string $definition ) : boolean | Saves a given definition. |
protected deleteLart ( string $term ) : boolean | ||
$term | string | Term for which the definition should be deleted |
return | boolean | TRUE if the definition was found and deleted, FALSE otherwise |
public onCommandDeletelart ( string $term ) : void | ||
$term | string | Term for which the definition should be removed |
return | void |
public onCommandLartinfo ( string $term ) : void | ||
$term | string | Term about which to return information |
return | void |
protected processLart ( ) : void | ||
return | void |
protected saveLart ( string $term, string $definition ) : boolean | ||
$term | string | Term to trigger a response containing the corresponding definition, may be a regular expression |
$definition | string | Definition corresponding to the term |
return | boolean | TRUE if the definition was saved successfully, FALSE otherwise |
protected PDOStatement $delete | ||
return | PDOStatement |
protected PDOStatement $process | ||
return | PDOStatement |
protected PDOStatement $save | ||
return | PDOStatement |