Difference between revisions of "OnAfterBanningUser"

(Example)
(Example)
Line 7: Line 7:
 
===Example===
 
===Example===
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
function OnAfterBanningUser( --what here?-- )  
+
/**
{
+
* @param $adminId admin id who banned the user
    // How do i get id of user that made the ban and the user who is banned
+
* @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
	}