public static function getCFMLTagsFile($file) { $parser = new CFMLParser(); $tokens = $parser->tokenize($file); $output = $parser->parse($tokens, 'tags'); return $output; }
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; }
public function parseCFMLFile($file) { $parser = new CFMLParser(); $tokens = $parser->tokenize($file); echo '<pre>'; var_dump($tokens); echo '</pre>'; $output = $parser->parse($tokens); return $output; }
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; }