IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Article
  • ArticleApproval
  • ArticleBack
  • ArticleCategory
  • ArticlePicture
  • ArticleReader

Class ArticleReader

CActiveRecord
Extended by application\core\model\Model
Extended by application\modules\article\model\ArticleReader
Namespace: application\modules\article\model
Copyright: Copyright © 2008-2013 IBOS Inc
Author: gzwwb gzwwb@ibos.com.cn
Located at system/modules/article/model/ArticleReader.php

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public
# fetchReaderByArticleId( type $articleid )

通过文章id取得一条读者数据

通过文章id取得一条读者数据

Parameters

$articleid
public
# checkIsRead( type $articleid, $uid )

判断用户是否已经读过这篇文章

判断用户是否已经读过这篇文章

Parameters

$articleid
$uid
public array
# fetchReadArtIdsByUid( integer $uid )

获取某个用户所有已读新闻id

获取某个用户所有已读新闻id

Parameters

$uid
用户id

Returns

array
public boolean
# addReader( integer $articleid, integer $uid )

添加阅读者信息

添加阅读者信息

Parameters

$articleid
文章Id
$uid
用户Id

Returns

boolean
添加成功或失败
public array
# fetchArticleidsByUid( type $uid )

通过uid取得所有有关的articleids

array(1=>15,2=>25...)

通过uid取得所有有关的articleids

array(1=>15,2=>25...)

Parameters

$uid

Returns

array
public string
# fetchArticleReaderByDeptid( integer $articleId, integer $deptId )

取得一篇文章中一个部门的阅读人员名单

取得一篇文章中一个部门的阅读人员名单

Parameters

$articleId
新闻id
$deptId
部门id

Returns

string
逗号隔开的名单

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()

Properties summary

Properties inherited from application\core\model\Model

$allowCache, $cacheLife

IBOS open source API documentation generated by ApiGen