Sinisakrisan (Talk | contribs) (→Example) |
Sinisakrisan (Talk | contribs) (→Example) |
||
Line 7: | Line 7: | ||
===Example=== | ===Example=== | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | function OnAfterBanningUser( | + | /** |
− | { | + | * @param $adminId admin id who banned the user |
− | + | * @param $userId user id who has been banned | |
− | } | + | */ |
+ | public function OnAfterBanningUser($adminId, $userId) | ||
+ | { | ||
+ | //do any operation that you need here with the $adminid and $userid | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br /> | <br /> |
Revision as of 03:27, 5 July 2016
Description
This event will be triggered when the user is banned.
Params
An array of two items; user id who performed the banning action and the user id which is banned.
Example
/** * @param $adminId admin id who banned the user * @param $userId user id who has been banned */ public function OnAfterBanningUser($adminId, $userId) { //do any operation that you need here with the $adminid and $userid }