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 UserData

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

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public type
# fetchKeyValueByUid( type $uid, type $key )

Parameters

$uid
$key

Returns

type
public array
# fetchRecentAt( integer $uid )

获取指定用户的最近at

获取指定用户的最近at

Parameters

$uid

Returns

array
public
# fetchActiveUsers( integer $nums = 10 )

获取活跃成员 (暂时是以微博数最高为排序)

获取活跃成员 (暂时是以微博数最高为排序)

Parameters

$nums
$name 要获取的数量
public
# updateUserCount( integer $uid, string $key, integer $rate )

更新指定用户的通知统计数目

更新指定用户的通知统计数目

Parameters

$uid
用户UID
$key
统计数目的Key值
$rate
数目变动的值
public array
# updateKey( string $key, integer $nums, boolean $add = true, integer $uid = '' )

更新某个用户的指定Key值的统计数目 Key值: feedcount:动态总数 followingcount:关注数 followercount:粉丝数 unreadcomment:评论未读数 unreadatme:@Me未读数

更新某个用户的指定Key值的统计数目 Key值: feedcount:动态总数 followingcount:关注数 followercount:粉丝数 unreadcomment:评论未读数 unreadatme:@Me未读数

Parameters

$key
Key值
$nums
更新的数目
$add
是否添加数目,默认为true
$uid
用户UID

Returns

array
返回更新后的数据
public array
# getUserData( integer $uid = '' )

获取指定用户的统计数据

获取指定用户的统计数据

Parameters

$uid
用户UID

Returns

array
指定用户的统计数据
public array
# getUnreadCount( integer $uid )

获取指定用户的通知统计数目

获取指定用户的通知统计数目

Parameters

$uid
用户UID

Returns

array
指定用户的通知统计数目
public array
# getNotifyCount( integer $uid )

获取指定用户的提醒通知统计

获取指定用户的提醒通知统计

Parameters

$uid
用户ID

Returns

array
指定用户的提醒通知统计
public
# setKeyValue( integer $uid, string $key, integer $value )

设置指定用户指定Key值的统计数目

设置指定用户指定Key值的统计数目

Parameters

$uid
用户UID
$key
Key值
$value
设置的统计数值
public integer
# countUnreadAtMeByUid( integer $uid )

统计指定用户的@ 条数

统计指定用户的@ 条数

Parameters

$uid
用户ID

Returns

integer
条数
public
# resetUserCount( integer $uid, string $key, integer $value = 0 )

重置指定用户的通知统计数目

重置指定用户的通知统计数目

Parameters

$uid
用户UID
$key
统计数目的Key值
$value
统计数目变化的值,默认为0

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