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

  • Callback
  • Code
  • Event
  • Factory
  • Push
  • WxApi

Class Callback

CApplicationComponent
Extended by application\modules\message\core\wx\Callback

Direct known subclasses

application\modules\message\core\wx\callback\Calendar, application\modules\message\core\wx\callback\Chat, application\modules\message\core\wx\callback\Contact, application\modules\message\core\wx\callback\Email, application\modules\message\core\wx\callback\File, application\modules\message\core\wx\callback\Home, application\modules\message\core\wx\callback\News, application\modules\message\core\wx\Event

Indirect known subclasses

application\modules\message\core\wx\event\CalendarClick, application\modules\message\core\wx\event\CalendarView, application\modules\message\core\wx\event\LocationEvent, application\modules\message\core\wx\event\NewsView, application\modules\message\core\wx\event\ScanEvent, application\modules\message\core\wx\event\ClickEvent, application\modules\message\core\wx\event\ContactView, application\modules\message\core\wx\event\DiaryView, application\modules\message\core\wx\event\DocsView, application\modules\message\core\wx\event\EmailView, application\modules\message\core\wx\event\FileView, application\modules\message\core\wx\event\HelperScan, application\modules\message\core\wx\event\HomeView

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

Methods summary

public
# setCorpId( string $id )

设置微信企业号的企业ID

设置微信企业号的企业ID

Parameters

$id
public
# setAppId( integer $id )

设置应用ID

设置应用ID

Parameters

$id
public
# setResType( string $type )

设置回复类型

设置回复类型

Parameters

$type
public
# setEventType( type $type )

设置事件类型

设置事件类型

Parameters

$type
public
# setUserId( string $userId )

设置用户ID

设置用户ID

Parameters

$userId
public
# setMessage( string $message )

设置处理文本

设置处理文本

Parameters

$message
public string
# getCorpId( )

返回微信企业号企业ID

返回微信企业号企业ID

Returns

string
public integer
# getAppId( )

获取应用ID

获取应用ID

Returns

integer
public string
# getUserId( )

获取用户ID

获取用户ID

Returns

string
public string
# getMessage( )

获取处理文本

获取处理文本

Returns

string
public type
# getResType( )

Returns

type
public type
# getEventType( )

获取事件类型

获取事件类型

Returns

type
public
# setMediaId( string $mediaId )

设置媒体ID

设置媒体ID

Parameters

$mediaId
public string
# getMediaId( )

获取媒体ID

获取媒体ID

Returns

string
protected string
# resText( string $text = '' , string $text,… )

回调给微信端的文本消息

回调给微信端的文本消息

Parameters

$text
$userId 微信用户ID
$text,…
文本内容

Returns

string
替换组合后的XML格式字符串
protected string
# resNews( string $items = array() , array $items,… )

回复给微信端的图文格式

回复给微信端的图文格式

Parameters

$items
$userId
$items,…

Returns

string
替换组合后的XML格式字符串
abstract public
# handle( )

Constants summary

string RES_TEXT
# 'text'
string RES_IMAGE
# 'image'
string RES_VOICE
# 'voice'
string RES_VIDEO
# 'video'
string RES_EVENT
# 'event'

Properties summary

protected string $corpId

微信企业号的企业ID

微信企业号的企业ID

# ''
protected integer $appId

应用ID

应用ID

# 0
protected string $resType

回调处理的类型

回调处理的类型

# ''
protected type $eventType

事件类型

事件类型

# ''
protected string $userId

微信用户ID

微信用户ID

# ''
protected string $message

用户发送给微信端的信息

用户发送给微信端的信息

# ''
protected string $mediaId

媒体ID

媒体ID

# ''
IBOS open source API documentation generated by ApiGen