%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/nailstv/public_html/include/
Upload File :
Create Path :
Current File : /home/nailstv/public_html/include/Registry.class.php

<?php

class Registry
{
    private static $_objects;

    public function __construct()
    {
        self::$_objects = array();
    }

    public static function set($name, $value)
    {
        self::$_objects[$name] = $value;
        return $value;
    }

    public static function get($name)
    {
        if(isset(self::$_objects[$name]))
        {
            return self::$_objects[$name];
        }

        return null;
    }

    public function clear($name)
	{
		if(isset(self::$_objects[$name]))
		{
			unset(self::$_objects[$name]);
			return true;
		}
		return false;
	}

  public function has($name)
  {
    return isset(self :: $_object[$name]) ? true : false;
  }
}

?>

Zerion Mini Shell 1.0