...
The methods below are optional.
install/upgrade/uninstall()
The methods are invoked when the messenger is installed, upgraded, or uninstalled respectively.
Code Block | ||
---|---|---|
| ||
class MyMessenger extends Messenger {
...
public function install()
{
// Perform install logic
}
public function upgrade($current_version)
{
// Perform upgrade logic
}
public function uninstall($messenger_id, $last_instance)
{
// Perform uninstall logic
}
}
|
getDescription()
The getDescription() method simply returns the description of the messenger. It's always best to define any language in your messenger using language files (see Translating Blesta for more information).
...