Class Article
- CActiveRecord
-
application\core\model\Model
-
application\modules\article\model\Article
Namespace: application\modules\article\model
Copyright: Copyright © 2008-2013 IBOS Inc
Author: Ring Ring@ibos.com.cn
Located at system/modules/article/model/Article.php
Copyright: Copyright © 2008-2013 IBOS Inc
Author: Ring Ring@ibos.com.cn
Located at system/modules/article/model/Article.php
Methods summary
public static
|
|
public
|
|
public
array
|
#
fetchAllAndPage( string $conditions = '', integer $pageSize = null )
根据条件,查询出对应数据,返回一个数组,其中数组元素中的pages为翻页所需的数据,datas为列表所需的数据 array( 'pages' => $pages, 'datas' => $datas ); |
public
array
|
#
fetchAllFieldValueByArticleids(
根据articleid获取一个指定字段的所有值 |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
updateHighlightStatus( string $ids, integer $ishighlight, string $highlightstyle, integer $highlightendtime )
设置/取消高亮 |
public
integer
|
|
public
integer
|
#
updateAllStatusAndApproverByPks( string $ids, integer $approver, string $status = 1 )
根据文章ids更新所有符合条件的文章的状态和审批人 |
public
integer
|
|
public
integer
|
|
public
array
|
|
public
array
|
|
public
|
#
getArticleCount( string $type, integer $uid, type $catid = 0, type $condition = '' )
未读,待审核,草稿 统计数 |
Methods inherited from application\core\model\Model
add()
,
beforeDelete()
,
create()
,
deleteByPk()
,
fetch()
,
fetchAll()
,
fetchAllByAttributes()
,
fetchAllByPk()
,
fetchAllSortByPk()
,
fetchByAttributes()
,
fetchByPk()
,
fetchCache()
,
fetchCaches()
,
getCacheKey()
,
getIsAllowCache()
,
getMaxId()
,
getModelClass()
,
init()
,
modify()
,
remove()
,
updateAll()
,
updateByPk()