Constructor
mosMambotHandler
mosMambotHandler
()
Makes a option for a particular list in a group
void
addListOption
(string $group, string $listName, string $value, [string $text = ''])
-
string
$group: The group name
-
string
$listName: The list name
-
string
$value: The value for the list option
-
string
$text: The text for the list option
Same as trigger but only returns the first event and
allows for a variable argument list
array
call
(string $event)
-
string
$event: The event name
array
getList
(string $group, string $listName)
-
string
$group: The group name
-
string
$listName: The list name
Loads all the bot files for a particular group
void
loadBotGroup
(string $group)
-
string
$group: The group name, relates to the sub-directory in the mambots directory
Registers a function to a particular event group
void
registerFunction
(string $event, string $function)
-
string
$event: The event name
-
string
$function: The function name
Calls all functions associated with an event group
array
trigger
(string $event, [array $args = null], [boolean $doUnpublished = false])
-
string
$event: The event name
-
array
$args: An array of arguments
-
boolean
$doUnpublished: True is unpublished bots are to be processed