getOption() public static method

getOption($option) {{{
public static getOption ( $option )
コード例 #1
0
ファイル: Parser.php プロジェクト: hinablue/4money
 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
ファイル: PHP.php プロジェクト: GallardoAlba/Meneame
 /**
  *  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
ファイル: Parser.php プロジェクト: crodas/haanga
 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;
 }