示例#1
0
 /**
  * 模板调用函数。用于控制页面是否需要再次执行。
  * 在 Smarty {/html} 标签处调用
  *
  * @static
  * @final
  * @access public
  * @return bool 页面是否需要再次执行。
  * @see smarty_compiler_htmlclose
  * @see PageController::hasMore
  */
 public static final function more()
 {
     assert('self::$state === self::STAT_FIRST || self::$state === self::STAT_LOOP');
     if (self::$controller->hasMore()) {
         self::$state = self::STAT_LOOP;
         return true;
     } else {
         self::$state = self::STAT_END;
         return false;
     }
 }