PHP Class Infractions, Nameless

Afficher le fichier Open project: NamelessMC/Nameless Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

bam_getAllInfractions() public méthode

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

bam_getInfraction() public méthode

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

bat_getAllInfractions() public méthode

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

bat_getInfraction() public méthode

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

bat_getUsernameFromUUID() public méthode

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

bm_getAllInfractions() public méthode

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

bm_getInfraction() public méthode

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

bm_getUsernameFromID() public méthode

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

bu_getAllInfractions() public méthode

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

bu_getInfraction() public méthode

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

date_compare() public méthode

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

lb_getAllInfractions() public méthode

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

lb_getInfraction() public méthode

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