33 public static function get($name) {
34 if (self::check($name))
35 return self::$vars[$name];
47 public static function set($name, $val) {
48 if (array_key_exists($name, self::$vars))
49 throw new nException(
'Registry: property '.$name.
' already exists.');
51 self::$vars[$name] = $val;
63 public static function setInArray($name, $val, $unique=
true) {
64 if (!array_key_exists($name, self::$vars))
65 self::$vars[$name] = array();
67 if (!$unique || !array_key_exists($val, self::$vars[$name]))
68 self::$vars[$name][] = $val;
78 public static function check($name) {
79 return array_key_exists($name, self::$vars);
static setInArray($name, $val, $unique=true)