Properties

$EFFECTIVE_DEVICE_TYPES

$EFFECTIVE_DEVICE_TYPES : 

Type

$client

$client : 

Type

$url

$url : 

Type

$cid

$cid : 

Type

$platform

$platform : 

Type

$audience

$audience : 

Type

$tags

$tags : 

Type

$tagAnds

$tagAnds : 

Type

$tagNots

$tagNots : 

Type

$alias

$alias : 

Type

$registrationIds

$registrationIds : 

Type

$segmentIds

$segmentIds : 

Type

$abtests

$abtests : 

Type

$notificationAlert

$notificationAlert : 

Type

$iosNotification

$iosNotification : 

Type

$androidNotification

$androidNotification : 

Type

$winPhoneNotification

$winPhoneNotification : 

Type

$smsMessage

$smsMessage : 

Type

$message

$message : 

Type

$options

$options : 

Type

Methods

__construct()

__construct(  $client) 

PushPayload constructor.

Parameters

$client

JPush

getCid()

getCid(  $count = 1,   $type = 'push') 

Parameters

$count
$type

setCid()

setCid(  $cid) 

Parameters

$cid

setPlatform()

setPlatform(  $platform) 

Parameters

$platform

setAudience()

setAudience(  $all) 

Parameters

$all

addAllAudience()

addAllAudience() 

addTag()

addTag(  $tag) 

Parameters

$tag

addTagAnd()

addTagAnd(  $tag) 

Parameters

$tag

addTagNot()

addTagNot(  $tag) 

Parameters

$tag

addAlias()

addAlias(  $alias) 

Parameters

$alias

addRegistrationId()

addRegistrationId(  $registrationId) 

Parameters

$registrationId

addSegmentId()

addSegmentId(  $segmentId) 

Parameters

$segmentId

addAbtest()

addAbtest(  $abtest) 

Parameters

$abtest

setNotificationAlert()

setNotificationAlert(  $alert) 

Parameters

$alert

addWinPhoneNotification()

addWinPhoneNotification(  $alert = null,   $title = null,   $_open_page = null,   $extras = null) 

Parameters

$alert
$title
$_open_page
$extras

setSmsMessage()

setSmsMessage(  $content,   $delay_time) 

Parameters

$content
$delay_time

build()

build() 

toJSON()

toJSON() 

printJSON()

printJSON() 

send()

send() 

validate()

validate() 

iosNotification()

iosNotification(  $alert = '', array  $notification = array()) 

Parameters

$alert
array $notification

androidNotification()

androidNotification(  $alert = '', array  $notification = array()) 

Parameters

$alert
array $notification

message()

message(  $msg_content, array  $msg = array()) 

Parameters

$msg_content
array $msg

options()

options(array  $opts = array()) 

Parameters

array $opts

addIosNotification()

addIosNotification(  $alert = null,   $sound = null,   $badge = null,   $content_available = null,   $category = null,   $extras = null) 

Parameters

$alert
$sound
$badge
$content_available
$category
$extras

addAndroidNotification()

addAndroidNotification(  $alert = null,   $title = null,   $builderId = null,   $extras = null) 

Parameters

$alert
$title
$builderId
$extras

setMessage()

setMessage(  $msg_content,   $title = null,   $content_type = null,   $extras = null) 

Parameters

$msg_content
$title
$content_type
$extras

setOptions()

setOptions(  $sendno = null,   $time_to_live = null,   $override_msg_id = null,   $apns_production = null,   $big_push_duration = null) 

Parameters

$sendno
$time_to_live
$override_msg_id
$apns_production
$big_push_duration

updateAudience()

updateAudience(  $key,   $value,   $name) 

Parameters

$key
$value
$name

generateSendno()

generateSendno()