Combu Server
3.1.1
PHP API Documentation
|
Public Member Functions | |
__construct ($folder) | |
GetFolder () | |
GetFile ($fileRelativePath) | |
GetMenuLink ($menu) | |
GetTooltip () | |
GetProperties () | |
GetProperty ($name) | |
SetProperty ($name, $value) | |
AddAdminMenu ($displayText, $url) | |
GetAdminMenu () | |
BlockUpdateUserCustomData ($dataKey) | |
Static Public Member Functions | |
static | LoadAddons () |
static | GetAddon ($addonName) |
static | IsBlockedUpdateUserCustomData ($dataKey) |
static | ProcessOutputUserCustomData ($user, &$customData) |
static | ProcessOutputUser (&$userData) |
static | NotifyUserCreate ($user) |
static | NotifyUserUpdate ($user) |
static | NotifyUserDelete ($user) |
static | NotifyUserLogout ($user) |
Data Fields | |
$Id = 0 | |
$Name = "" | |
$Version = "1.0" | |
$OnUserCreate = NULL | |
$OnUserUpdate = NULL | |
$OnUserDelete = NULL | |
$OnUserCustomDataOutput = NULL | |
$OnUserProcessOutput = NULL | |
$OnUserLogout = NULL | |
Class to handle add-on modules
Definition at line 10 of file AddonModule.php.
__construct | ( | $folder | ) |
Definition at line 27 of file AddonModule.php.
AddAdminMenu | ( | $displayText, | |
$url | |||
) |
Add a link in the Addon section of the admin console menu
string | $displayText | |
string | $url |
Definition at line 171 of file AddonModule.php.
BlockUpdateUserCustomData | ( | $dataKey | ) |
Block an account custom data key from being updated by clients
string | $dataKey |
Definition at line 188 of file AddonModule.php.
|
static |
Get the installed addon if exists self[] $Addons
string | $addonName |
Definition at line 93 of file AddonModule.php.
GetAdminMenu | ( | ) |
Get the links in the Addon section of the admin console menu
Definition at line 180 of file AddonModule.php.
GetFile | ( | $fileRelativePath | ) |
Get the path to a file in the folder of this Addon
string | $fileRelativePath |
Definition at line 115 of file AddonModule.php.
GetFolder | ( | ) |
GetMenuLink | ( | $menu | ) |
Get the link to the specified menu for the admin console
int | $menu |
Definition at line 126 of file AddonModule.php.
GetProperties | ( | ) |
Get all custom properties of this Addon as associative array
Definition at line 142 of file AddonModule.php.
GetProperty | ( | $name | ) |
Get a custom property of this Addon
type | $name |
Definition at line 151 of file AddonModule.php.
GetTooltip | ( | ) |
Get the link tooltip of this addon
Definition at line 134 of file AddonModule.php.
|
static |
Check if an account custom data key is blocked by this Addon self[] $Addons
string | $dataKey |
Definition at line 199 of file AddonModule.php.
|
static |
Load the admin modules installed
Definition at line 38 of file AddonModule.php.
|
static |
This function is called when a new account is created self[] $Addons
Account | $user |
Definition at line 243 of file AddonModule.php.
|
static |
This function is called when an account is deleted self[] $Addons
Account | $user |
Definition at line 269 of file AddonModule.php.
|
static |
This function is called when an account logged out self[] $Addons
Account | $user |
Definition at line 282 of file AddonModule.php.
|
static |
This function is called when an account is updated self[] $Addons
Account | $user |
Definition at line 256 of file AddonModule.php.
|
static |
This function is called in Account::ToArrayFiltered to filter the outgoing data of an account. Addons can use their own callback to add, remove or edit data that will be sent to the clients. self[] $Addons
Account | $user | |
array | $customData |
Definition at line 230 of file AddonModule.php.
|
static |
This function is called in Account::ToArrayFiltered to filter the outgoing custom data of an account. Addons can use their own callback to add, remove or edit custom data that will be sent to the clients. self[] $Addons
Account | $user | |
array | $customData |
Definition at line 215 of file AddonModule.php.
SetProperty | ( | $name, | |
$value | |||
) |
Set a custom property for this Addon
string | $name | |
object | $value |
Definition at line 162 of file AddonModule.php.
$Id = 0 |
Definition at line 12 of file AddonModule.php.
$Name = "" |
Definition at line 13 of file AddonModule.php.
$OnUserCreate = NULL |
Definition at line 15 of file AddonModule.php.
$OnUserCustomDataOutput = NULL |
Definition at line 18 of file AddonModule.php.
$OnUserDelete = NULL |
Definition at line 17 of file AddonModule.php.
$OnUserLogout = NULL |
Definition at line 20 of file AddonModule.php.
$OnUserProcessOutput = NULL |
Definition at line 19 of file AddonModule.php.
$OnUserUpdate = NULL |
Definition at line 16 of file AddonModule.php.
$Version = "1.0" |
Definition at line 14 of file AddonModule.php.