FRED™
3.0
FRED™: Framework for Rapid and Easy Development
|
Basic component class. More...
Public Member Functions | |
__construct ($fred, $config=null) | |
__destruct () | |
clientConfig () | |
Public configuration. More... | |
config ($key, $default=null) | |
Retrieve a config value. More... | |
ping () | |
Ping function. More... | |
filemtime ($filename) | |
Filemtime with session cache. More... | |
component ($name) | |
Get a component (local or default). More... | |
components (... $names) | |
Get multiple components in an array. More... | |
Public Member Functions inherited from Thing | |
propertyExists ($property) | |
Check if a property exists (public or published). More... | |
constants ($prefix=null) | |
Return all constants. More... | |
get ($key) | |
Get one or more properties. More... | |
set ($key, $value=null) | |
Set one or more properties. More... | |
__get ($key) | |
__set ($key, $value) | |
Data Fields | |
$filemtimeTtl = 0 | |
Data Fields inherited from Thing | |
const | HIDDEN = 0 |
Property is hidden. More... | |
const | READABLE = 1 |
Property is readable. More... | |
const | WRITEABLE = 2 |
Property is writeable. More... | |
const | READWRITE = 3 |
Property is readable and writeable. More... | |
Protected Member Functions | |
init () | |
done () | |
getSession () | |
Protected Member Functions inherited from Thing | |
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... | |
Protected Attributes | |
$_fred = null | |
$_config = null | |
$_name = null | |
$_components = [] | |
Local components (key = component name, value = component). More... | |
$_session = null | |
Protected Attributes inherited from Thing | |
$_published = [] | |
Published properties (key = name of property, value = visibility). More... | |
Basic component class.
Definition at line 8 of file Component.php.
__construct | ( | $fred, | |
$config = null |
|||
) |
Definition at line 19 of file Component.php.
__destruct | ( | ) |
Definition at line 26 of file Component.php.
clientConfig | ( | ) |
Public configuration.
Definition at line 40 of file Component.php.
component | ( | $name | ) |
Get a component (local or default).
string | $name | Name of the component. |
Definition at line 80 of file Component.php.
components | ( | $names | ) |
Get multiple components in an array.
string | $names,... | Names of the components. |
Definition at line 89 of file Component.php.
config | ( | $key, | |
$default = null |
|||
) |
Retrieve a config value.
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. |
Definition at line 53 of file Component.php.
|
protected |
Definition at line 34 of file Component.php.
filemtime | ( | $filename | ) |
Filemtime with session cache.
string | $filename | File to get modification time for. |
Definition at line 66 of file Component.php.
|
protected |
Definition at line 95 of file Component.php.
|
protected |
Definition at line 30 of file Component.php.
ping | ( | ) |
Ping function.
Definition at line 59 of file Component.php.
|
protected |
Local components (key = component name, value = component).
Definition at line 16 of file Component.php.
|
protected |
Definition at line 13 of file Component.php.
|
protected |
Definition at line 12 of file Component.php.
|
protected |
Definition at line 14 of file Component.php.
|
protected |
Definition at line 17 of file Component.php.
$filemtimeTtl = 0 |
Definition at line 10 of file Component.php.