예제 #1
0
 public static function getCFMLTagsFile($file)
 {
     $parser = new CFMLParser();
     $tokens = $parser->tokenize($file);
     $output = $parser->parse($tokens, 'tags');
     return $output;
 }
예제 #2
0
 public static function getCFMLTagsFile($file, $vars = array())
 {
     self::$fallback = $vars;
     self::$variables = method_exists($vars, 'getRecord') ? (array) $vars->getRecord() : (array) $vars;
     $parser = new CFMLParser();
     $tokens = $parser->tokenize($file);
     $output = $parser->parse($tokens, 'tags');
     return $output;
 }
예제 #3
0
 public function parseCFMLFile($file)
 {
     $parser = new CFMLParser();
     $tokens = $parser->tokenize($file);
     echo '<pre>';
     var_dump($tokens);
     echo '</pre>';
     $output = $parser->parse($tokens);
     return $output;
 }
예제 #4
0
 public function parseCFMLFile($file)
 {
     $parser = new CFMLParser();
     $time = microtime(true);
     $tokens = $parser->tokenize($file);
     $this->compilationTime = number_format(microtime(true) - $time, 4);
     echo htmlentities(print_r($tokens, TRUE));
     $time = microtime(true);
     $output = $parser->parse($tokens);
     $this->executionTime = number_format(microtime(true) - $time, 4);
     return $output;
 }