PocketMine
BanList Class Reference

Public Member Functions

 __construct ($file)
 
 isEnabled ()
 
 setEnabled ($flag)
 
 getEntries ()
 
 isBanned ($name)
 
 add (BanEntry $entry)
 
 addBan ($target, $reason=null, $expires=null, $source=null)
 
 remove ($name)
 
 removeExpired ()
 
 load ()
 
 save ($flag=true)
 

Constructor & Destructor Documentation

__construct (   $file)
Parameters
string$file

Member Function Documentation

add ( BanEntry  $entry)
Parameters
BanEntry$entry
addBan (   $target,
  $reason = null,
  $expires = null,
  $source = null 
)
Parameters
string$target
string$reason
\DateTime$expires
string$source
Returns
BanEntry
getEntries ( )
Returns
BanEntry[]
isBanned (   $name)
Parameters
string$name
Returns
bool
isEnabled ( )
Returns
bool
remove (   $name)
Parameters
string$name
setEnabled (   $flag)
Parameters
bool$flag

The documentation for this class was generated from the following file: