Skip to content

PConfig

  • Full name: \Zotlabs\Lib\PConfig

Methods

Load

public static Load(string $uid): void|false
  • 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

public static Get(string $uid, string $family, string $key, mixed $default = false): 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 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

public static Delete(string $uid, string $family, string $key, string $updated = NULL): bool
  • 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