PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\permission\BanList Class Reference
+ Collaboration diagram for pocketmine\permission\BanList:

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)
 

Detailed Description

Definition at line 27 of file BanList.php.

Constructor & Destructor Documentation

pocketmine\permission\BanList::__construct (   $file)
Parameters
string$file

Definition at line 41 of file BanList.php.

Member Function Documentation

pocketmine\permission\BanList::add ( BanEntry  $entry)
Parameters
BanEntry$entry

Definition at line 87 of file BanList.php.

pocketmine\permission\BanList::addBan (   $target,
  $reason = null,
  $expires = null,
  $source = null 
)
Parameters
string$target
string$reason
\DateTime$expires
string$source
Returns
BanEntry

Definition at line 100 of file BanList.php.

pocketmine\permission\BanList::getEntries ( )
Returns
BanEntry[]

Definition at line 62 of file BanList.php.

pocketmine\permission\BanList::isBanned (   $name)
Parameters
string$name
Returns
bool

Definition at line 73 of file BanList.php.

References pocketmine\permission\BanList\isEnabled().

+ Here is the call graph for this function:

pocketmine\permission\BanList::isEnabled ( )
Returns
bool

Definition at line 48 of file BanList.php.

Referenced by pocketmine\permission\BanList\isBanned().

+ Here is the caller graph for this function:

pocketmine\permission\BanList::remove (   $name)
Parameters
string$name

Definition at line 115 of file BanList.php.

pocketmine\permission\BanList::setEnabled (   $flag)
Parameters
bool$flag

Definition at line 55 of file BanList.php.


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