Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
registry Class Reference

Global framework registry. More...

+ Inheritance diagram for registry:
+ Collaboration diagram for registry:

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()

Detailed Description

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.

Author:
abidibo abidi.nosp@m.bo@g.nosp@m.mail..nosp@m.com
Version:
0.99
Date:
2011-2012

Definition at line 30 of file registry.class.php.


Member Function Documentation

registry::__get ( index)

Gets a registry variable.

Parameters:
string$indexvariable name
Returns:
void

Definition at line 107 of file registry.class.php.

registry::__set ( index,
value 
)

Sets a registry variable.

Parameters:
string$indexvariable name
mixed$valuevariable value
Returns:
void

Definition at line 44 of file registry.class.php.

registry::addCss ( css)

Adds css file paths to registry.

Parameters:
string$cssrelative path
Returns:
void

Definition at line 55 of file registry.class.php.

registry::addHeadLink ( link)

Adds link tags to the registry.

Parameters:
array$linkassociative array:
  • rel: rel attribute
  • type: type attribute
  • title: title attribute
  • href: href attribute
Returns:
void

Definition at line 97 of file registry.class.php.

registry::addJs ( js)

Adds js file paths to registry.

Parameters:
string$jsrelative path
Returns:
void

Definition at line 66 of file registry.class.php.

registry::addMeta ( meta)

Adds meta tags to the registry.

Parameters:
array$metaassociative array:
  • name: name attribute
  • property: property attribute
  • content: content attribute
Returns:
void

Definition at line 81 of file registry.class.php.


Field Documentation

registry::$vars = array() [private]

Definition at line 35 of file registry.class.php.


The documentation for this class was generated from the following file: