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.php
Go to the documentation of this file.
00001 <?php
00030 class registry extends singleton {
00031 
00032         /*
00033          * @brief array containing the registry variables
00034          */
00035         private $vars = array();
00036 
00044         public function __set($index, $value) {
00045                 $this->vars[$index] = $value;
00046         }
00047 
00048         
00055         public function addCss($css) {
00056                 $this->vars['css'][] = $css;    
00057         }
00058  
00059        
00066         public function addJs($js) {
00067                 $this->vars['js'][] = $js;
00068         }
00069 
00070        
00081         public function addMeta($meta) {
00082                 $this->vars['meta'][] = $meta;  
00083         }
00084  
00085        
00097         public function addHeadLink($link) {    
00098                 $this->vars['head_links'][] = $link;
00099         }
00100 
00107         public function __get($index) {
00108                 return $this->vars[$index];
00109         }
00110 
00111 }
00112 
00113 ?>