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

  • BQQApi
  • Comment
  • IM
  • IMFactory
  • IMQq
  • IMRtx

Class IM

CApplicationComponent
Extended by application\modules\message\core\IM

Direct known subclasses

application\modules\message\core\IMQq, application\modules\message\core\IMRtx

Abstract
Namespace: application\modules\message\core
Copyright: 2008-2014 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/modules/message/core/IM.php

Methods summary

abstract public
# check( )

抽象检查函数,检查该适配器是否可用

抽象检查函数,检查该适配器是否可用

abstract public
# push( )

抽象推送函数

抽象推送函数

abstract public
# syncUser( )

抽象同步用户函数

抽象同步用户函数

abstract public
# syncOrg( )

同步组织架构

同步组织架构

public
# __construct( array $config )

构建函数,设置适配器的配置数组

构建函数,设置适配器的配置数组

Parameters

$config
public
# setSyncFlag( integer $flag )

设置同步标识

设置同步标识

Parameters

$flag
public integer
# getSyncFlag( )

返回同步标识

返回同步标识

Returns

integer
public
# setError( string $msg, integer $errorLevel = self::ERROR_INIT )

error setter方法

error setter方法

Parameters

$msg
$errorLevel
错误等级
public array
# getError( integer $level = null )

返回错误消息数组

返回错误消息数组

Parameters

$level
错误等级

Returns

array
public
# setConfig( array $config )

设置配置数组

设置配置数组

Parameters

$config
public array
# getConfig( )

返回配置数组

返回配置数组

Returns

array
public
# setPushType( string $type )

设置推送类型

设置推送类型

Parameters

$type
public string
# getPushType( )

返回推送类型

返回推送类型

Returns

string
public
# setUid( array $uid )

设置推送的用户ID

设置推送的用户ID

Parameters

$uid
public array
# getUid( )

获取推送的用户ID

获取推送的用户ID

Returns

array
public
# setMessage( string $message )

设置要推送的内容

设置要推送的内容

Parameters

$message
public string
# getMessage( )

返回推送内容

返回推送内容

Returns

string
public
# setUrl( string $url )

设置URL

设置URL

Parameters

$url
public string
# getUrl( )

获取URL

获取URL

Returns

string
protected boolean
# isEnabled( string $key )

检查某个值是否开启

检查某个值是否开启

Parameters

$key

Returns

boolean

Constants summary

integer ERROR_INIT
# 0
integer ERROR_PUSH
# 1
integer ERROR_SYNC
# 2
integer ERROR_UNKNOWN
# 3

Properties summary

protected array $config

每个适配器的配置数组

每个适配器的配置数组

# array()
protected string $error

可能出现的错误信息,按const定义的类型推进该error数组

可能出现的错误信息,按const定义的类型推进该error数组

# array()
protected type $uid

处理的用户

处理的用户

# array()
protected string $pushType

推送类型

推送类型

# ''
protected string $message

推送的内容

推送的内容

# ''
protected string $url

点击跳转的url

点击跳转的url

# ''
IBOS open source API documentation generated by ApiGen