Phpcraft
|
Public Member Functions | |
__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 () | |
Static Public Member Functions | |
static | handleQueue (float $time_limit=0.0) |
Public Attributes | |
$file | |
$data | |
$unsaved_changes = false | |
Static Public Attributes | |
static | $save_queue |
Phpcraft\Configuration::__construct | ( | $file = null , |
|
$default_data = null |
|||
) |
Phpcraft\Configuration::__destruct | ( | ) |
Phpcraft\Configuration::count | ( | ) |
Phpcraft\Configuration::current | ( | ) |
Phpcraft\Configuration::get | ( | string | $key, |
$default_value = null |
|||
) |
|
static |
float | $time_limit |
Phpcraft\Configuration::has | ( | string | $key | ) |
string | $key |
Phpcraft\Configuration::key | ( | ) |
Phpcraft\Configuration::next | ( | ) |
Phpcraft\Configuration::offsetExists | ( | $offset | ) |
Phpcraft\Configuration::offsetGet | ( | $offset | ) |
Phpcraft\Configuration::offsetSet | ( | $offset, | |
$value | |||
) |
Phpcraft\Configuration::offsetUnset | ( | $offset | ) |
Phpcraft\Configuration::queueSave | ( | ) |
Queues the configuration for saving.
Phpcraft\Configuration::rewind | ( | ) |
Phpcraft\Configuration::save | ( | ) |
Forces a save, removing the configuration from the save queue.
Phpcraft\Configuration::set | ( | string | $key, |
$value | |||
) |
Phpcraft\Configuration::setFile | ( | string | $file | ) |
string | $file |
Phpcraft\Configuration::unset | ( | string | $key | ) |
Phpcraft\Configuration::valid | ( | ) |
Phpcraft\Configuration::$data |
Phpcraft\Configuration::$file |
|
static |
Phpcraft\Configuration::$unsaved_changes = false |