Context class
封裝系統上下文相關信息
public static class Context
1
Public Members
| name | description |
|---|---|
| static AdminApi { get; } | 管理員及權限Api接口。 |
| static AdminDirectory { get; } | 系統後(hòu)台文件夾名稱,默認爲XYCMS。 |
| static ChannelApi { get; } | 欄目Api接口。 |
| static ConfigApi { get; } | 插件及系統配置Api接口。 |
| static ConnectionString { get; } | 系統使用的數據庫連接字符串。 |
| static ContentApi { get; } | 内容Api接口。 |
| static DatabaseApi { get; } | 數據庫操作Api接口。 |
| static DatabaseType { get; } | 系統使用的數據庫類型。 |
| static ParseApi { get; } | STL解析Api接口。 |
| static PhysicalApplicationPath { get; } | 網站根目錄文件夾地址。 |
| static PluginApi { get; } | 插件Api接口。 |
| static Request { get; } | 獲取插件Url訪問請求IRequest。 當存在對(duì)插件的HTTP訪問請求時(shí)(REST Api訪問、頁面(miàn)訪問等),返回IRequest實例;否則返回 null。 |
| static SiteApi { get; } | 站點Api接口。 |
| static UserApi { get; } | 用戶Api接口。 |
| static UtilsApi { get; } | 工具類Api接口。 |
| static Initialize(…) | 初始化上下文 |
