Ejemplo n.º 1
0
 /**
  * Set a global variable containing the option values to be used throughout
  * the program.
  */
 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();
 }