public static function widgetEnd() { self::$isInnerWidget = false; $ret = array(); //{{{ 还原 if (self::$arrWidgetRequireAsync) { foreach (self::$arrWidgetRequireAsync as $key => $val) { foreach ($val as $id => $info) { unset(self::$arrLoaded[$id]); unset(self::$arrAsyncDeleted[$id]); } } $ret['async'] = self::getResourceMap(self::$arrWidgetRequireAsync); } foreach (self::$arrWidgetStatic as $key => $val) { foreach ($val as $uri) { foreach (array_keys(self::$arrLoaded, $uri) as $id) { unset(self::$arrLoaded[$id]); unset(self::$arrAsyncDeleted[$id]); } } } //}}} if (self::$arrWidgetStatic['js']) { $ret['js'] = self::$arrWidgetStatic['js']; } if (self::$arrWidgetStatic['css']) { $ret['css'] = self::$arrWidgetStatic['css']; } if (self::$arrWidgetScript) { $ret['script'] = self::$arrWidgetScript; } if (self::$arrWidgetStyle) { $ret['style'] = self::$arrWidgetStyle; } return $ret; }