$cms. cms提供的方法
|
string Cut(string strSource, int intLength, string strAppend)
|
截取字符串
|
string FixBadword(string strSource)
|
替换原文中的敏感字、脏词
|
string FormatDate(string time[, string formatPattern])
|
格式化日期
|
IList<NodeInfo> GetAllNodes()
|
获取所有栏目列表
|
IList<NodeInfo> GetAllChildNodes(int intParentID[/string strParentIdentifier])
|
获取所有的子栏目(包括所有多级子栏目)
|
IList<NodeInfo> GetChildNodes(int intParentID[/string strParentIdentifier])
|
获取直系子栏目
|
IList<NodeInfo> GetNodes(string strNodeIDs)
|
获取指定的栏目列表
|
IList<NodeInfo> GetNodeNav(int intNodeID[/string strNodeIdentifier])
|
获取栏目导航
|
NodeInfo GetNode(int intNodeID[/string strNodeIdentifier])
|
获取栏目信息
|
NodeInfo GetRootNode(int nodeID[/string strNodeIdentifier])
|
获取栏目的顶级栏目
|
IList<ContHelper> GetContents(int intNodeID[/string strNodeIdentifier], int intGetNum)
|
获取指定栏目的内容列表
|
IList<ContHelper> GetContents(int intNodeID[/string strNodeIdentifier], string strCondition, string strSort, int intGetNum)
|
获取指定栏目的内容列表
|
IList<ContHelper> GetContents(int intNodeID[/string strNodeIdentifier], string strCondition, string strSort, int pageIndex, int pageSize[,副表字段])
|
获取指定栏目的分页内容列表
|
int GetCount(int intNodeID[/string strNodeIdentifier], string strCondition)
|
获取指定栏目的内容数量
|
ContentInfo GetContent(int intContentID)
|
获取内容信息
|
ContentInfo GetSingleCont(int intNodeID[/string strNodeIdentifier])
|
获取栏目的单页内容信息
|
ContentInfo GetPrevContent(int intCurrContentID[,int intNodeID])
|
上一条内容
|
ContentInfo GetNextContent(int intCurrContentID[,int intNodeID])
|
下一条内容
|
IList<AttachmentInfo> GetAttachments(string strAttachmentIDs)
|
获取附件信息
|
DictsInfo GetDict(int intDictID[/string strDictName])
|
获取字典信息
|
IList<DictItemInfo> GetItemsByDictID(int intDictID[/string strDictName])
|
获取指定字典的内容列表
|
DictItemInfo GetDictItem(int intDictID[/string strDictName], string strItemKey)
|
获取指定字典的内容信息
|
DataRowCollection GetSQL(string strSQL)
|
指定一段SQL语句并返回集合(不推荐)
|
void ExecSQL(string strSQL)
|
指定一段SQL语句并无返回值(不推荐)
|
string HtmlEncode[/HtmlDecode](string strSource)
|
HTML编码/解码
|
string UrlEncode[/UrlDecode](string strSource)
|
URL编码/解码
|
string DesEncode[/DesDecode](string strSource)
|
DES可逆加/解密
|
string MD5Encode(string strSource)
|
获取MD5加密后的代码
|