PConfig
- Full name:
\Zotlabs\Lib\PConfig
Methods
Load
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$uid |
string | The channel_id |
Return Value:
Nothing or false if $uid is null or false
Get
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$uid |
string | The channel_id |
$family |
string | The category of the configuration value |
$key |
string | The configuration key to query |
$default |
mixed | (optional, default false) Default value to return if key does not exist |
Return Value:
Stored value or false if it does not exist
Set
public static Set(string $uid, string $family, string $key, string $value, string $updated = NULL): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$uid |
string | The channel_id |
$family |
string | The category of the configuration value |
$key |
string | The configuration key to set |
$value |
string | The value to store |
$updated |
string | (optional) The datetime to store |
Return Value:
Stored $value or false
Delete
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$uid |
string | The channel_id |
$family |
string | The category of the configuration value |
$key |
string | The configuration key to delete |
$updated |
string | (optional) The datetime to store |
Automatically generated on 2025-03-19