/** * 模板调用函数。在标签关闭时调用,将会返回标签父级节点的执行状态。 * * @param int $type 标签类型 * @static * @final * @access public * @return bool 父级节点是否需要执行 * @see compileCloseTag * @see PageController::closeTag */ public static final function close($type, $params = null) { assert('self::$state === self::STAT_FIRST || self::$state === self::STAT_LOOP'); $context = self::$context; assert('$context->type === $type'); self::$controller->closeTag($context); $context->opened = false; $context = $context->parent; self::$context = $context; return $context->opened; }