public static function displayAsHtml($result, $tplFile = null, $echo = true) { import("HTMLAnalysis"); $ha = HTMLAnalysis::init(); if ($echo) { $ha->display($result, "./site/" . $tplFile); return true; } else { ob_start(); $ha->display($result, "./site/" . $tplFile); $s = ob_get_clean(); return $s; } }
/** * 释放当前类 * @return bool */ public static function release() { self::$objectNow = array_pop(self::$objectStack); return true; }