Location: PHPKode > projects > Anchor CMS > anchor-cms-0.8/anchor/libraries/registry.php
<?php

class Registry {

	private static $data = array();

	public static function get($key) {
		if(isset(static::$data[$key])) {
			return static::$data[$key];
		}
	}

	public static function prop($object, $key) {
		try {
			if($obj = static::get($object)) {
				return $obj->{$key};
			}
		} catch(Exception $e) {}
	}

	public static function set($key, $value) {
		static::$data[$key] = $value;
	}

	public static function has($key) {
		return isset(static::$data[$key]);
	}

}
Return current item: Anchor CMS