PHP Class Infractions, Nameless

Show file Open project: NamelessMC/Nameless Class Usage Examples

Public Methods

Method Description
__construct ( $inf_db, $language ) Connect to database
bam_getAllInfractions ( $uuid = null ) Params: $uuid (string), UUID of a user. If null, will list all infractions
bam_getInfraction ( $type, $id ) Params: $type (string), either ban, kick or mute; $id (int), ID of infraction
bat_getAllInfractions ( $uuid = null ) Params: $uuid (string), UUID of a user. If null, will list all infractions
bat_getInfraction ( $type, $id ) Params: $type (string), either ban, kick or mute; $id (int), ID of infraction
bat_getUsernameFromUUID ( $uuid ) Params: $uuid (string) - UUID of user
bm_getAllInfractions ( $uuid = null ) Params: $uuid (string), UUID of a user. If null, will list all infractions
bm_getInfraction ( $type, $id, $past = false ) Params: $type (string), either ban, kick or mute; $id (int), ID of infraction
bm_getUsernameFromID ( $id ) Params: $id (string (binary)), player_id of user to lookup
bu_getAllInfractions ( $uuid = null ) Params: $uuid (string), UUID of a user. If null, will list all infractions
bu_getInfraction ( $type, $id ) Params: $type (string), either ban or mute; $id (string), UUID of infraction
date_compare ( $a, $b ) Sort by date
lb_getAllInfractions ( $uuid = null ) Params: $uuid (string), UUID of a user. If null, will list all infractions
lb_getInfraction ( $type, $id ) Params: $type (string), either ban, kick or mute; $id (int), ID of infraction

Method Details

__construct() public method

Connect to database
public __construct ( $inf_db, $language )

bam_getAllInfractions() public method

Params: $uuid (string), UUID of a user. If null, will list all infractions
public bam_getAllInfractions ( $uuid = null )

bam_getInfraction() public method

Params: $type (string), either ban, kick or mute; $id (int), ID of infraction
public bam_getInfraction ( $type, $id )

bat_getAllInfractions() public method

Params: $uuid (string), UUID of a user. If null, will list all infractions
public bat_getAllInfractions ( $uuid = null )

bat_getInfraction() public method

Params: $type (string), either ban, kick or mute; $id (int), ID of infraction
public bat_getInfraction ( $type, $id )

bat_getUsernameFromUUID() public method

Params: $uuid (string) - UUID of user
public bat_getUsernameFromUUID ( $uuid )

bm_getAllInfractions() public method

Params: $uuid (string), UUID of a user. If null, will list all infractions
public bm_getAllInfractions ( $uuid = null )

bm_getInfraction() public method

Params: $type (string), either ban, kick or mute; $id (int), ID of infraction
public bm_getInfraction ( $type, $id, $past = false )

bm_getUsernameFromID() public method

Params: $id (string (binary)), player_id of user to lookup
public bm_getUsernameFromID ( $id )

bu_getAllInfractions() public method

Params: $uuid (string), UUID of a user. If null, will list all infractions
public bu_getAllInfractions ( $uuid = null )

bu_getInfraction() public method

Params: $type (string), either ban or mute; $id (string), UUID of infraction
public bu_getInfraction ( $type, $id )

date_compare() public method

Sort by date
public date_compare ( $a, $b )

lb_getAllInfractions() public method

Params: $uuid (string), UUID of a user. If null, will list all infractions
public lb_getAllInfractions ( $uuid = null )

lb_getInfraction() public method

Params: $type (string), either ban, kick or mute; $id (int), ID of infraction
public lb_getInfraction ( $type, $id )