getOption() публичный статический Метод

getOption($option) {{{
public static getOption ( $option )
Пример #1
0
 function yy_r29()
 {
     if (!is_file($this->yystack[$this->yyidx + 0]->minor) || !Haanga_Compiler::getOption('enable_load')) {
         $this->error($this->yystack[$this->yyidx + 0]->minor . " is not a valid file");
     }
     require_once $this->yystack[$this->yyidx + 0]->minor;
 }
Пример #2
0
 /**
  *  Return an echo of an stmt
  *
  *  @return string
  */
 protected function php_print($op)
 {
     $output = $this->php_generate_stmt($op, Haanga_Compiler::getOption('echo_concat'));
     if ($output == "' '" && Haanga_Compiler::getOption('strip_whitespace')) {
         return;
         /* ignore this */
     }
     return 'echo ' . $output . ';';
 }
Пример #3
0
 function yy_r29()
 {
     if (is_file(dirname($this->file) . '/' . $this->yystack[$this->yyidx + 0]->minor)) {
         $this->yystack[$this->yyidx + 0]->minor = dirname($this->file) . '/' . $this->yystack[$this->yyidx + 0]->minor;
     } else {
         if (is_file(getcwd() . '/' . $this->yystack[$this->yyidx + 0]->minor)) {
             $this->yystack[$this->yyidx + 0]->minor = getcwd() . '/' . $this->yystack[$this->yyidx + 0]->minor;
         }
     }
     if (!is_file($this->yystack[$this->yyidx + 0]->minor) || !Haanga_Compiler::getOption('enable_load')) {
         $this->error($this->yystack[$this->yyidx + 0]->minor . " is not a valid file");
     }
     require_once $this->yystack[$this->yyidx + 0]->minor;
 }