static array decompose_key_path(
string
$key_path
)
|
|
Decomposes path into array
When string path is given as parameter this function returns an array where each component of the path is in it's on array element
Parameters:
API Tags:
Information Tags:
| Throws: | TE_Registry_Invalid_Path |
static boolean is_valid_decomposed_path(
array
$path_arr
)
|
|
Checks if decomposed path is valid
Parameters:
API Tags:
| Return: | Returns true if valid, false otherwise |
| Access: | public |
static boolean is_valid_key_name(
string
$key_name
)
|
|
Checks if key name is valid
Valid key names are alphanumeric, lowecase, start with letter, 254 characters max, underscore allowed
Parameters:
API Tags:
| Return: | Returns true if valid, false otherwise |
| Access: | public |
static boolean is_valid_path(
string
$path
)
|
|
Checks if path is valid
Parameters:
API Tags:
| Return: | Returns true if valid, false otherwise |
| Access: | public |
static boolean is_valid_type(
integer
$type
)
|
|
Checks if type is valid
Parameters:
API Tags:
| Return: | Returns true if valid, false otherwise |
| Access: | public |
static string replace_slashes(
string
$key_path
)
|
|
Replaces windows style slashes (\) with normal (/)
Parameters:
API Tags:
Returns key name
API Tags:
Returns key path
API Tags:
Returns key type
API Tags:
Returns value of the key
API Tags:
booleand is_value_ok(
mixed
$value
)
|
|
Checks if value is calid for the key type
Parameters:
API Tags:
| Return: | Returns true if valid, false otherwise |
| Access: | protected |
void set_key_name(
string
$key_name
)
|
|
Sets key name
Parameters:
API Tags:
Information Tags:
| Throws: | TE_Registry_Invalid_Key_Name |
void set_path(
string
$path
)
|
|
Sets key path
Parameters:
API Tags:
Information Tags:
| Throws: | TE_Registry_Invalid_Path |
void set_type(
integer
$type
)
|
|
Sets key type
Parameters:
API Tags:
Information Tags:
| Throws: | TE_Registry_Invalid_Type |
void set_value(
mixed
$value
)
|
|
Sets key value
Parameters:
API Tags: