Basic component class.
More...
|
| init () |
|
| done () |
|
| getSession () |
|
| publish ($property, $visibility=self::READABLE) |
| Publish a property (or hide it again). More...
|
|
| configure ($config) |
| Configure the object. More...
|
|
| _get ($key) |
| Default getter if no specific setter is defined, and the property is also not published (readable). More...
|
|
| _set ($key, $value) |
| Default setter if no specific setter is defined, and the property is also not published (writeable). More...
|
|
Basic component class.
Definition at line 8 of file Component.php.
◆ __construct()
__construct |
( |
|
$fred, |
|
|
|
$config = null |
|
) |
| |
◆ __destruct()
◆ clientConfig()
Public configuration.
- Returns
- array Public configuration for this component in key => value pairs.
Definition at line 40 of file Component.php.
◆ component()
◆ components()
Get multiple components in an array.
- Parameters
-
string | $names,... | Names of the components. |
- Returns
- array Key = component name, value = component.
Definition at line 89 of file Component.php.
◆ config()
config |
( |
|
$key, |
|
|
|
$default = null |
|
) |
| |
Retrieve a config value.
- Parameters
-
string | array | $key | Key to look at. An array indicates a nested key. If the array is ['foo' => ['bar' => 'acme']], then the nested key for the 'acme' value will be ['foo','bar']. |
mixed | $default | Default value if the key does not exist. |
- Returns
- mixed Found value, or default value if the key does not exist.
Definition at line 53 of file Component.php.
◆ done()
◆ filemtime()
Filemtime with session cache.
- Parameters
-
string | $filename | File to get modification time for. |
- Returns
- int Last modification time. False if file does not exists.
Definition at line 66 of file Component.php.
◆ getSession()
◆ init()
◆ ping()
◆ $_components
Local components (key = component name, value = component).
Definition at line 16 of file Component.php.
◆ $_config
◆ $_fred
◆ $_name
◆ $_session
◆ $filemtimeTtl
The documentation for this class was generated from the following file: