Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 /**
  * 释放当前类
  * @return bool
  */
 public static function release()
 {
     self::$objectNow = array_pop(self::$objectStack);
     return true;
 }