鼠笼管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
squirrel_cage/application/library/SDK/getui/igetui/template/IGt.TransmissionTemplate.php

62 lines
1.4 KiB

<?php
class IGtTransmissionTemplate extends IGtBaseTemplate {
var $transmissionType;
var $transmissionContent;
public function getActionChain() {
$actionChains = array();
// 设置actionChain
$actionChain1 = new ActionChain();
$actionChain1->set_actionId(1);
$actionChain1->set_type(ActionChain_Type::refer);
$actionChain1->set_next(10030);
//appStartUp
$appStartUp = new AppStartUp();
$appStartUp->set_android("");
$appStartUp->set_symbia("");
$appStartUp->set_ios("");
//启动app
$actionChain2 = new ActionChain();
$actionChain2->set_actionId(10030);
$actionChain2->set_type(ActionChain_Type::startapp);
$actionChain2->set_appid("");
$actionChain2->set_autostart($this->transmissionType == '1'? true : false);
$actionChain2->set_appstartupid($appStartUp);
$actionChain2->set_failedAction(100);
$actionChain2->set_next(100);
//结束
$actionChain3 = new ActionChain();
$actionChain3->set_actionId(100);
$actionChain3->set_type(ActionChain_Type::eoa);
array_push($actionChains, $actionChain1,$actionChain2,$actionChain3);
return $actionChains;
}
function get_transmissionContent() {
return $this->transmissionContent;
}
function get_pushType() {
return 'TransmissionMsg';
}
function set_transmissionType($transmissionType) {
$this->transmissionType = $transmissionType;
}
function set_transmissionContent($transmissionContent) {
$this->transmissionContent = $transmissionContent;
}
}