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 Notify

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

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public
# sendNotify( array $toIds, string $node, array $config = array() )

全局发送提醒接口

全局发送提醒接口

Parameters

$toIds
接收消息的用户ID数组
$node
节点Key值
$config
配置数据
public array
# getNode( string $node )

获取指定节点信息

获取指定节点信息

Parameters

$node
节点Key值

Returns

array
指定节点信息
public array
# getNodeList( )

获取节点列表

获取节点列表

Returns

array
节点列表数据
protected array
# getNotifyData( array $nodeInfo, array $config = array() )

获取推送消息所需数组

获取推送消息所需数组

Parameters

$nodeInfo
节点数组
$config
节点配置数组

Returns

array
protected
# setImPush( array $toIds, array $data )

推送IM消息

推送IM消息

Parameters

$toIds
要发送的用户身份标识
$data
推送消息数组
protected
# setPushByUser( array $toIds, array $data, array $node, array & $pushDatas )

根据推送的用户及其设置,设置全局推送数据

根据推送的用户及其设置,设置全局推送数据

Parameters

$toIds
要发送的用户ID
$data
推送消息数组
$node
节点数组
$pushDatas
全局推送数组
protected
# setWechatPush( array $toIds, array $data, array & $pushData )

设置微信推送数据

设置微信推送数据

Parameters

$toIds
要发送的用户身份标识,此处指绑定的weixinID
$data
推送消息数组
$pushData
全局推送数组
protected
# setCoPush( array $toIds, array $data, array & $pushData )

设置酷办公推送数据

设置酷办公推送数据

Parameters

$toIds
要发送的用户身份标识,此处指绑定的酷办公唯一标识
$data
推送消息数组
$pushData
全局推送数组
protected
# setEmailPush( string $to, array $data, boolean $isCloud, array & $pushData )

设置邮件推送数组

设置邮件推送数组

Parameters

$to
要发送的邮箱地址
$data
推送消息数组
$isCloud
是否开通了云端邮件推送
$pushData
全局推送数组
protected
# setSmsPush( string $to, array $data, boolean $isCloud, array & $pushData )

Parameters

$to
$data
推送消息数组
$isCloud
是否开通了云端短信推送
$pushData
全局推送数组

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