PHP Class pocketmine\permission\BanList

Show file Open project: ClearSkyTeam/ClearSky Class Usage Examples

Public Methods

Method 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 method

public __construct ( string $file )
$file string

add() public method

public add ( BanEntry $entry )
$entry BanEntry

addBan() public method

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

getEntries() public method

public getEntries ( ) : BanEntry[]
return BanEntry[]

isBanned() public method

public isBanned ( string $name ) : boolean
$name string
return boolean

isEnabled() public method

public isEnabled ( ) : boolean
return boolean

load() public method

public load ( )

remove() public method

public remove ( string $name )
$name string

removeExpired() public method

public removeExpired ( )

save() public method

public save ( $flag = true )

setEnabled() public method

public setEnabled ( boolean $flag )
$flag boolean