42 private static $registry = array();
50 public static function set($index, $value)
52 self::$registry[$index] = $value;
61 public static function append($index, $value)
63 if (!isset(self::$registry[$index])) {
64 self::$registry[$index] = array();
66 self::$registry[$index][] = $value;
75 public static function prepend($index, $value)
77 if (!isset(self::$registry[$index])) {
78 self::$registry[$index] = array();
80 array_unshift(self::$registry[$index], $value);
89 public static function get($index)
91 if (isset(self::$registry[$index])) {
92 return self::$registry[$index];