PHP Class pocketmine\permission\BanList

Afficher le fichier Open project: ClearSkyTeam/ClearSky Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $file )
add ( BanEntry $entry )
addBan ( string $target, string $reason = null, DateTime $expires = null, string $source = null ) : BanEntry
getEntries ( ) : BanEntry[]
isBanned ( string $name ) : boolean
isEnabled ( ) : boolean
load ( )
remove ( string $name )
removeExpired ( )
save ( $flag = true )
setEnabled ( boolean $flag )

Method Details

__construct() public méthode

public __construct ( string $file )
$file string

add() public méthode

public add ( BanEntry $entry )
$entry BanEntry

addBan() public méthode

public addBan ( string $target, string $reason = null, DateTime $expires = null, string $source = null ) : BanEntry
$target string
$reason string
$expires DateTime
$source string
Résultat BanEntry

getEntries() public méthode

public getEntries ( ) : BanEntry[]
Résultat BanEntry[]

isBanned() public méthode

public isBanned ( string $name ) : boolean
$name string
Résultat boolean

isEnabled() public méthode

public isEnabled ( ) : boolean
Résultat boolean

load() public méthode

public load ( )

remove() public méthode

public remove ( string $name )
$name string

removeExpired() public méthode

public removeExpired ( )

save() public méthode

public save ( $flag = true )

setEnabled() public méthode

public setEnabled ( boolean $flag )
$flag boolean