public class Channel extends BaseChannel<Channel>
COLUMN_CREATED, COLUMN_DOMAIN, COLUMN_MODIFIED, COLUMN_REMOVED, COLUMN_SORT, COLUMN_USED| 构造器和说明 |
|---|
Channel() |
| 限定符和类型 | 方法和说明 |
|---|---|
Channel |
by(String code)
根据别名返回栏目
|
List<Channel> |
children()
返回子栏目
|
String |
counter()
模板指令:栏目访问统计
如果是动态模式,则直接显示统计结果;
否则显示空白标签占位,由 siteHandle.js 来进行动态渲染
|
Integer |
counterValue()
栏目访问统计总数
包含当前栏目页、各子栏目页、栏目下各内容页的总访问数
|
String |
domainUrl(Integer page)
返回栏目的定义地址(避免使用其他方式访问时,自动生成的静态页链接获取异常的情况)
|
String |
dynamicUrl(Integer page)
返回栏目的动态地址
|
Content |
first()
返回栏目下第一篇文章
|
Channel |
index()
返回首页栏目
|
Content |
last()
返回栏目下最后一篇文章
|
List<Content> |
list()
返回栏目内全部文章
注1:按倒叙返回文章列表
注2:不包含子栏目文章
|
List<Content> |
list(Integer count)
返回栏目内头几篇文章
注1:按倒叙返回文章列表
注2:不包含子栏目文章
|
List<Content> |
list(Integer count,
boolean desc)
返回栏目内头几篇文章
注1:不包含子栏目文章
|
List<Content> |
list(Integer count,
boolean desc,
boolean children)
返回栏目内头几篇文章
|
List<Content> |
list(String codes,
Integer count,
boolean desc,
boolean children)
返回指定栏目内头几篇文章
|
List<Channel> |
location()
返回栏目路径
|
com.jfinal.plugin.activerecord.Page<Content> |
page(int pageNum,
int pageSize,
boolean desc,
boolean children)
返回栏目内指定页码的文章列表
|
com.jfinal.plugin.activerecord.Page<Content> |
page(String codes,
int pageNum,
int pageSize,
boolean desc,
boolean children)
返回指定栏目内指定页码的文章列表
|
Channel |
parent()
返回上级栏目
|
List<Content> |
search(String keyword,
boolean desc,
boolean children)
搜索栏目内的文章
|
List<Content> |
search(String codes,
String keyword,
boolean desc,
boolean children)
搜索指定栏目内的文章
|
com.jfinal.plugin.activerecord.Page<Content> |
searchPage(String codes,
String keyword,
boolean desc,
boolean children,
int pageNum,
int pageSize)
搜索指定栏目内的文章
|
String |
staticUrl(Integer page)
返回栏目的静态页面地址
|
List<Content> |
tops()
返回栏目内的置顶文章
|
String |
url()
返回栏目地址
|
String |
url(Integer page)
返回栏目地址
|
getCaption, getChannelTemp, getCode, getConbtAble, getConbtDraft, getContent, getContentTemp, getDomain, getIcon, getId, getPath, getPic, getPid, getSort, getSubCaption, getSubDomain, getTagCaps, getTagCodes, getUsed, setCaption, setChannelTemp, setCode, setConbtAble, setConbtDraft, setContent, setContentTemp, setDomain, setIcon, setId, setPath, setPic, setPid, setSort, setSubCaption, setSubDomain, setTagCaps, setTagCodes, setUsed_getAttrs, _getConfig, _getTable, _getTableName, $comp, $domain, $logined, $uid, $user, $UUID, able, copy, decrypt, decryptAll, deleteById, disable, enable, find, find, findByCode, findByIda, findByIds, findFirst, findFirst, getPk, getPks, getPkType, hasColumn, paginate, paginate, required, save, saveOrUpdate, select, select, select, select, select, selectCol, selectFirst, selectFirst, selectFirst, selectFirst, selectFirst, selectFirst, selectFirst, update_getAttrNames, _getAttrsEntrySet, _getAttrValues, _getModifyFlag, _getUsefulClass, _setAttrs, _setAttrs, _setOrPut, _setOrPut, clear, dao, delete, deleteByIds, equals, filter, find, find, findAll, findByCache, findByCache, findById, findByIdLoadColumns, findByIdLoadColumns, findByIds, findFirst, findFirstByCache, findFirstByCache, get, get, getBigDecimal, getBigInteger, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getNumber, getShort, getSql, getSqlPara, getSqlPara, getSqlPara, getStr, getTime, getTimestamp, hashCode, keep, keep, paginate, paginate, paginate, paginate, paginateByCache, paginateByCache, paginateByCache, paginateByFullSql, paginateByFullSql, put, put, put, put, remove, remove, removeNullValueAttrs, set, setOrPut, toJson, toRecord, toString, usepublic String url()
返回栏目地址
public String counter()
模板指令:栏目访问统计 如果是动态模式,则直接显示统计结果; 否则显示空白标签占位,由 siteHandle.js 来进行动态渲染
public Integer counterValue()
栏目访问统计总数 包含当前栏目页、各子栏目页、栏目下各内容页的总访问数
public Channel index()
返回首页栏目
public Channel parent()
返回上级栏目
public Content first()
返回栏目下第一篇文章
public Content last()
返回栏目下最后一篇文章
public List<Content> list(Integer count)
返回栏目内头几篇文章 注1:按倒叙返回文章列表 注2:不包含子栏目文章
count - 返回文章条数public List<Content> list(Integer count, boolean desc)
返回栏目内头几篇文章 注1:不包含子栏目文章
count - 返回文章条数desc - 是否倒叙(true:倒叙,false:正序)public List<Content> list(Integer count, boolean desc, boolean children)
返回栏目内头几篇文章
count - 返回文章条数desc - 是否倒叙(true:倒叙,false:正序)children - 是否包含子栏目public com.jfinal.plugin.activerecord.Page<Content> page(int pageNum, int pageSize, boolean desc, boolean children)
返回栏目内指定页码的文章列表
pageNum - 页码pageSize - 每页文章条数desc - 是否倒叙children - 是否包含子栏目public List<Content> search(String keyword, boolean desc, boolean children)
搜索栏目内的文章
keyword - 关键字desc - 是否倒叙children - 是否包含子栏目public List<Content> list(String codes, Integer count, boolean desc, boolean children)
返回指定栏目内头几篇文章
codes - 栏目别名(多个别名时中间用逗号分隔)count - 返回文章条数desc - 是否倒叙(true:倒叙,false:正序)children - 是否包含子栏目public com.jfinal.plugin.activerecord.Page<Content> page(String codes, int pageNum, int pageSize, boolean desc, boolean children)
返回指定栏目内指定页码的文章列表
codes - 栏目别名(多个别名时中间用逗号分隔)pageNum - 页码pageSize - 每页条数desc - 是否倒叙children - 是否包含子栏目public List<Content> search(String codes, String keyword, boolean desc, boolean children)
搜索指定栏目内的文章
codes - 栏目别名(多个别名时中间用逗号分隔)keyword - 关键字desc - 是否倒叙children - 是否包含子栏目Copyright © 2023. All rights reserved.