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

  • Atme
  • Comment
  • Feed
  • FeedData
  • FeedDigg
  • Message
  • MessageContent
  • MessageList
  • MessageUser
  • Notify
  • NotifyEmail
  • NotifyMessage
  • NotifySms
  • UserData

Class FeedDigg

CActiveRecord
Extended by application\core\model\Model
Extended by application\modules\message\model\FeedDigg
Namespace: application\modules\message\model
Located at system/modules/message/model/FeedDigg.php

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public array
# fetchUserList( integer $feedId, integer $nums, integer $offset = 0, string $order = 'ctime DESC' )

查找指定动态的赞人员列表

查找指定动态的赞人员列表

Parameters

$feedId
动态ID
$nums
获取的条数
$offset
$order
排序方式

Returns

array
用户数组列表
public array
# checkIsDigg( mixed $feedIds, integer $uid )

检查所给的feedid是否已经赞

检查所给的feedid是否已经赞

Parameters

$feedIds
动态ID数组
$uid

Returns

array
public boolean
# getIsExists( integer $feedId, integer $uid )

查找单条feed的指定uid是否已赞

查找单条feed的指定uid是否已赞

Parameters

$feedId
动态ID
$uid
用户ID

Returns

boolean
public boolean
# addDigg( integer $feedId, integer $uid )

赞一个动态

赞一个动态

Parameters

$feedId
动态ID
$uid
用户ID

Returns

boolean
赞成功与否
public boolean
# delDigg( integer $feedId, integer $uid )

取消赞

取消赞

Parameters

$feedId
动态ID
$uid
用户ID

Returns

boolean
取消成功与否

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