获取分类树
MBlog::categoryTree
( )
获取最新博客
MBlog::latestBlog
( $limit )
参数 |
类型 |
说明 |
$limit |
integer |
限制条数 |
获取置顶博客
MBlog::topBlog
( $limit )
参数 |
类型 |
说明 |
$limit |
integer |
限制条数 |
获取热门博客
MBlog::hotBlog
( $limit )
参数 |
类型 |
说明 |
$limit |
integer |
限制条数 |
获取推荐博客
MBlog::recommendBlog
( $limit )
参数 |
类型 |
说明 |
$limit |
integer |
限制条数 |
最新博客评论
MBlog::latestComment
( $limit )
参数 |
类型 |
说明 |
$limit |
integer |
限制条数 |
最新留言内容
MBlog::latestMessage
( $limit )
参数 |
类型 |
说明 |
$limit |
integer |
限制条数 |
获取最热博客
MBlog::hottestBlog
( $limit )
参数 |
类型 |
说明 |
$limit |
integer |
限制条数 |
随机获取博客
MBlog::randomBlog
( $limit )
参数 |
类型 |
说明 |
$limit |
integer |
限制条数 |
获取博客分页
MBlog::paginateBlog
( $categoryId, $page, $pageSize, $option )
参数 |
类型 |
说明 |
$categoryId |
integer |
分类ID |
$page |
integer |
分页,默认为1 |
$pageSize |
integer |
分页大小,默认为10 |
$option |
array |
分页高级参数 |
根据年份列出所有博客
MBlog::listBlogByYear
( array )
获取分类信息
MBlog::getCategory
( $categoryId )
参数 |
类型 |
说明 |
$categoryId |
integer |
分类ID |
获取子分类信息
MBlog::listChildCategories
( $parentCategoryId )
参数 |
类型 |
说明 |
$parentCategoryId |
integer |
分类ID |
获取所有博客标签信息
MBlog::tags
( $limit )
参数 |
类型 |
说明 |
$limit |
integer |
限制数量,0为不限制 |
获取所有博客标签信息
MBlog::tagRecords
( )
按月获取归档数量
MBlog::archiveMonthCounts
( $year )
参数 |
类型 |
说明 |
$year |
number|string |
年 |
按年获取归档数量
MBlog::archiveYearCounts
( )