View file lib/registry.php

File size: 369B
<?
class Registry{
    protected function __construct() {}
    protected function __clone() {}
    protected static $method = array();

    static public function get($name){
        return (isset(self :: $method[$name])) ? self :: $method[$name] : 0;
    }

    static public function set($name, $data){
        self :: $method[$name] = $data;
    }
}
?>