C# Class yycms.admin.ImportSkin

导入风格包
Datei anzeigen Open project: seven1276/yycms

Public Properties

Property Type Description
SkinBaseDirectory String

Public Methods

Method Description
Import ( Byte FileData, long UserID ) : String

导入模板

ImportSkin ( ) : System

Protected Methods

Method Description
PageReference_Replace ( List pages, String htmlCode ) : String

页面模板引用组建替换 上传之前应为id="组件名称",替换后即为对应的ID号

SourceReference_Replace ( String htmlCode, String SkinName, System.Boolean CompressScript, System.Boolean CompressStyle, System.Boolean CompressDocument ) : String

替换当前源代码中引用的.js/.css/img/video/audio路径 例如开发时可能使用的是script/script1.js,那么就替换为/SkinName/script/script1.js

Private Methods

Method Description
SourceReference_CanReplace ( String _SrcAddress ) : System.Boolean

根据资源连接地址,判断是否需要替换

Method Details

Import() public method

导入模板
public Import ( Byte FileData, long UserID ) : String
FileData Byte 模板包
UserID long 当前上传者的ID
return String

ImportSkin() public method

public ImportSkin ( ) : System
return System

PageReference_Replace() protected method

页面模板引用组建替换 上传之前应为id="组件名称",替换后即为对应的ID号
protected PageReference_Replace ( List pages, String htmlCode ) : String
pages List 当前模板的组件集合
htmlCode String 当前模板页的源代码
return String

SourceReference_Replace() protected method

替换当前源代码中引用的.js/.css/img/video/audio路径 例如开发时可能使用的是script/script1.js,那么就替换为/SkinName/script/script1.js
protected SourceReference_Replace ( String htmlCode, String SkinName, System.Boolean CompressScript, System.Boolean CompressStyle, System.Boolean CompressDocument ) : String
htmlCode String 源代码
SkinName String 模板名称(模板根路径+模板名称+模板版本号)
CompressScript System.Boolean 压缩脚本
CompressStyle System.Boolean 压缩样式
CompressDocument System.Boolean 压缩源码
return String

Property Details

SkinBaseDirectory public_oe property

模板的保存根目录,绝对路径,结尾加上\
public String SkinBaseDirectory
return String