53 $this->prefix = $prefix;
59 public function get( $name ) {
60 if ( !$this->
has( $name ) ) {
61 throw new ConfigException( __METHOD__ .
": undefined option: '$name'" );
63 return $GLOBALS[$this->prefix . $name];
69 public function has( $name ) {
70 $var = $this->prefix . $name;
75 return isset( $GLOBALS[$var] ) || array_key_exists( $var, $GLOBALS );
80class_alias( GlobalVarConfig::class,
'GlobalVarConfig' );