Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
Global framework registry. More...
Public Member Functions | |
__get ($index) | |
Gets a registry variable. | |
__set ($index, $value) | |
Sets a registry variable. | |
addCss ($css) | |
Adds css file paths to registry. | |
addHeadLink ($link) | |
Adds link tags to the registry. | |
addJs ($js) | |
Adds js file paths to registry. | |
addMeta ($meta) | |
Adds meta tags to the registry. | |
Private Attributes | |
$vars = array() |
Global framework registry.
The registry object acts through all the application like a singleton dictionary.
Basically it has a setter and a getter methods by which other objects my create new registry properties. Since the registry is a singleton instance, each of them has access to the properties setted by the others through the __get method.
Hence the registry is a global dictionary (actually an associative array, but I'll call it dictionary since it's what it represents) used to store public and sharable properties and objects.
Definition at line 30 of file registry.class.php.
registry::__get | ( | $ | index | ) |
Gets a registry variable.
string | $index | variable name |
Definition at line 107 of file registry.class.php.
registry::__set | ( | $ | index, |
$ | value | ||
) |
Sets a registry variable.
string | $index | variable name |
mixed | $value | variable value |
Definition at line 44 of file registry.class.php.
registry::addCss | ( | $ | css | ) |
Adds css file paths to registry.
string | $css | relative path |
Definition at line 55 of file registry.class.php.
registry::addHeadLink | ( | $ | link | ) |
Adds link tags to the registry.
array | $link | associative array:
|
Definition at line 97 of file registry.class.php.
registry::addJs | ( | $ | js | ) |
Adds js file paths to registry.
string | $js | relative path |
Definition at line 66 of file registry.class.php.
registry::addMeta | ( | $ | meta | ) |
Adds meta tags to the registry.
array | $meta | associative array:
|
Definition at line 81 of file registry.class.php.
registry::$vars = array() [private] |
Definition at line 35 of file registry.class.php.