Extensions/WordPress/Options/OptionsPage.php
private function set_global_variable()
    {
        $var_name = "";
        
        if( null != $this->config->global_variable )
        {
            $var_name = $this->config->global_variable;
        }
        else
        {
            $var_name = $this->page->get_slug().'_options';
        }
        
        $GLOBALS[$var_name] = $this->options->get();
    }
private function set_global_variable()
    {
        $var_name = "";
        
        if( null != $this->config->global_variable )
        {
            $var_name = $this->config->global_variable;
        }
        else
        {
            $var_name = $this->page->get_slug().'_options';
        }
        
        $GLOBALS[$var_name] = $this->options->get();
    }
private function set_global_variable ( ) { $ var_name = "" ; if ( null != $ this -> config -> global_variable ) { $ var_name = $ this -> config -> global_variable ; } else { $ var_name = $ this -> page -> get_slug ( ) . '_options' ; } $ GLOBALS [ $ var_name ] = $ this -> options -> get ( ) ; }
Set a global variable containing the option values to be used throughout
the program.
Set a global variable containing the option values to be used throughout the program .