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 NotifyMessage

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

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public array
# fetchAllNotifyListByUid( integer $uid, string $order = 'ctime DESC', integer $limit = 10, integer $offset = 0 )

消息提醒列表页,以模块分类,最新消息在前

消息提醒列表页,以模块分类,最新消息在前

Parameters

$uid
用户ID
$order
排序
$limit
每页条数
$offset
页数偏移量

Returns

array
public array
# fetchAllDetailByTimeLine( integer $uid, string $module, integer $limit = 10, integer $offset = 0 )

提醒详情页面,按时间轴排序

提醒详情页面,按时间轴排序

Parameters

$uid
用户ID
$module
模块名称
$limit
每页条数
$offset
页数偏移量

Returns

array
public integer
# countUnreadByUid( integer $uid )

获取指定用户未读消息的总数

获取指定用户未读消息的总数

Parameters

$uid
用户ID

Returns

integer
指定用户未读消息的总数
public mixed
# setRead( integer $uid )

更改指定用户的消息从未读为已读

更改指定用户的消息从未读为已读

Parameters

$uid
用户ID

Returns

mixed
更改失败返回false,更改成功返回影响消息ID
public mixed
# setReadByModule( integer $uid, string $module )

更改指定用户指定模块的消息从未读为已读

更改指定用户指定模块的消息从未读为已读

Parameters

$uid
用户ID
$module
模块名称

Returns

mixed
更改失败返回false,更改成功返回影响消息ID
public boolean
# sendMessage( array $data )

发送一条消息提醒

发送一条消息提醒

Parameters

$data
发送消息提醒所需数组

Returns

boolean
public mixed
# deleteNotify( mixed $id, $type = 'id' )

根据ID或模块删除通知

根据ID或模块删除通知

Parameters

$id
通知ID或模块
$type

Returns

mixed
删除失败返回false,删除成功返回删除的条数
public integer
# fetchPageCountByUid( integer $uid )

根据uid查找有多少个模块有消息,用于分页

根据uid查找有多少个模块有消息,用于分页

Parameters

$uid
用户uid

Returns

integer
符合条件的条数,注:是根据模块分组

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