Phpcraft
Public Member Functions | Public Attributes | List of all members
Phpcraft\ClientConfiguration Class Reference
Inheritance diagram for Phpcraft\ClientConfiguration:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\ClientConfiguration:
Collaboration graph
[legend]

Public Member Functions

 __construct (Server &$server, ?ClientConnection $con=null, $file=null)
 
 setGroup (string $name)
 
 hasPermission (string $permission)
 
 getGroup ()
 
 getGroupName ()
 
 isOnline ()
 
 getPlayer ()
 
 getUUID ()
 
 getName ()
 
- Public Member Functions inherited from Phpcraft\Configuration
 __construct ($file=null, $default_data=null)
 
 queueSave ()
 
 __destruct ()
 
 save ()
 
 get (string $key, $default_value=null)
 
 has (string $key)
 
 setFile (string $file)
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 set (string $key, $value)
 
 offsetUnset ($offset)
 
 unset (string $key)
 
 count ()
 

Public Attributes

 $server
 
 $con
 
- Public Attributes inherited from Phpcraft\Configuration
 $file
 
 $data
 
 $unsaved_changes = false
 

Additional Inherited Members

- Static Public Member Functions inherited from Phpcraft\Configuration
static handleQueue (float $time_limit=0.0)
 
- Static Public Attributes inherited from Phpcraft\Configuration
static $save_queue
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\ClientConfiguration::__construct ( Server $server,
?ClientConnection  $con = null,
  $file = null 
)

Member Function Documentation

◆ getGroup()

Phpcraft\ClientConfiguration::getGroup ( )
Returns
Group

◆ getGroupName()

Phpcraft\ClientConfiguration::getGroupName ( )
Returns
string

◆ getName()

Phpcraft\ClientConfiguration::getName ( )
Returns
string|null

◆ getPlayer()

Phpcraft\ClientConfiguration::getPlayer ( )
Returns
ClientConnection|null

◆ getUUID()

Phpcraft\ClientConfiguration::getUUID ( )
Returns
UUID|null

◆ hasPermission()

Phpcraft\ClientConfiguration::hasPermission ( string  $permission)
Parameters
string$permission
Returns
bool

◆ isOnline()

Phpcraft\ClientConfiguration::isOnline ( )
Returns
bool

◆ setGroup()

Phpcraft\ClientConfiguration::setGroup ( string  $name)
Parameters
string$name
Returns
ClientConfiguration

Member Data Documentation

◆ $con

ClientConnection null Phpcraft\ClientConfiguration::$con

The client's active connnection, if applicable.

◆ $server

Server Phpcraft\ClientConfiguration::$server