예제 #1
0
 public function getActionChain()
 {
     $actionChains = array();
     // 设置actionChain
     $actionChain1 = new ActionChain();
     $actionChain1->setActionId(1);
     $actionChain1->setType(ActionChainType::refer);
     $actionChain1->setNext(10030);
     //appStartUp
     $appStartUp = new AppStartUp();
     $appStartUp->setAndroid("");
     $appStartUp->setSymbia("");
     $appStartUp->setIos("");
     //启动app
     $actionChain2 = new ActionChain();
     $actionChain2->setActionId(10030);
     $actionChain2->setType(ActionChainType::startapp);
     $actionChain2->setAppid("");
     $actionChain2->setAutostart($this->transmissionType == '1' ? true : false);
     $actionChain2->setAppstartupid($appStartUp);
     $actionChain2->setFailedAction(100);
     $actionChain2->setNext(100);
     //结束
     $actionChain3 = new ActionChain();
     $actionChain3->setActionId(100);
     $actionChain3->setType(ActionChainType::eoa);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3);
     return $actionChains;
 }
예제 #2
0
 public function getActionChain()
 {
     $actionChains = array();
     // 设置actionChain
     $actionChain1 = new ActionChain();
     $actionChain1->setActionId(1);
     $actionChain1->setType(ActionChainType::refer);
     $actionChain1->setNext(10000);
     //通知
     $actionChain2 = new ActionChain();
     $actionChain2->setActionId(10000);
     $actionChain2->setType(ActionChainType::notification);
     $actionChain2->setTitle($this->title);
     $actionChain2->setText($this->text);
     $actionChain2->setLogo($this->logo);
     $actionChain2->setLogoURL($this->logoURL);
     $actionChain2->setRing($this->isRing ? true : false);
     $actionChain2->setClearable($this->isClearable ? true : false);
     $actionChain2->setBuzz($this->isVibrate ? true : false);
     $actionChain2->setNext(10010);
     //goto
     $actionChain3 = new ActionChain();
     $actionChain3->setActionId(10010);
     $actionChain3->setType(ActionChainType::refer);
     $actionChain3->setNext(10030);
     //appStartUp
     $appStartUp = new AppStartUp();
     $appStartUp->setAndroid("");
     $appStartUp->setSymbia("");
     $appStartUp->setIos("");
     //启动app
     $actionChain4 = new ActionChain();
     $actionChain4->setActionId(10030);
     $actionChain4->setType(ActionChainType::startapp);
     $actionChain4->setAppid("");
     $actionChain4->setAutostart($this->transmissionType == '1' ? true : false);
     $actionChain4->setAppstartupid($appStartUp);
     $actionChain4->setFailedAction(100);
     $actionChain4->setNext(100);
     //结束
     $actionChain5 = new ActionChain();
     $actionChain5->setActionId(100);
     $actionChain5->setType(ActionChainType::eoa);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3, $actionChain4, $actionChain5);
     return $actionChains;
 }
예제 #3
0
 public function getActionChain()
 {
     $actionChains = array();
     //设置actionchain
     $actionChain1 = new ActionChain();
     $actionChain1->setActionId(1);
     $actionChain1->setType(ActionChainType::refer);
     $actionChain1->setNext(10000);
     //通知
     $actionChain2 = new ActionChain();
     $actionChain2->setActionId(10000);
     $actionChain2->setType(ActionChainType::notification);
     $actionChain2->setTitle($this->notyTitle);
     $actionChain2->setText($this->notyContent);
     $actionChain2->setLogo($this->notyIcon);
     $actionChain2->setLogoURL($this->logoURL);
     $actionChain2->setRing($this->isBelled);
     $actionChain2->setClearable($this->isCleared);
     $actionChain2->setBuzz($this->isVibrationed);
     $actionChain2->setNext(10010);
     $actionChain3 = new ActionChain();
     $actionChain3->setActionId(10010);
     $actionChain3->setType(ActionChainType::refer);
     $actionChain3->setNext(10020);
     //弹框按钮
     $button1 = new Button();
     $button1->setText($this->popButton1);
     $button1->setNext(10040);
     $button2 = new Button();
     $button2->setText($this->popButton2);
     $button2->setNext(100);
     //弹框
     $actionChain4 = new ActionChain();
     $actionChain4->setActionId(10020);
     $actionChain4->setType(ActionChainType::popup);
     $actionChain4->setTitle($this->popTitle);
     $actionChain4->setText($this->popContent);
     $actionChain4->setImg($this->popImage);
     $actionChain4->setButtons(0, $button1);
     $actionChain4->setButtons(1, $button2);
     $actionChain4->setNext(6);
     //下载
     //appstartupid
     $appStartUp = new AppStartUp();
     $appStartUp->setAndroid($this->androidMark);
     $appStartUp->setIos($this->iosMark);
     $appStartUp->setSymbia($this->symbianMark);
     $actionChain5 = new ActionChain();
     $actionChain5->setActionId(10040);
     $actionChain5->setType(ActionChainType::appdownload);
     $actionChain5->setName($this->loadTitle);
     $actionChain5->setUrl($this->loadUrl);
     $actionChain5->setLogo($this->loadIcon);
     $actionChain5->setAutoInstall($this->isAutoInstall);
     $actionChain5->setAutostart($this->isActived);
     $actionChain5->setAppstartupid($appStartUp);
     $actionChain5->setNext(6);
     $actionChain6 = new ActionChain();
     $actionChain6->setActionId(100);
     $actionChain6->setType(ActionChainType::eoa);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3, $actionChain4, $actionChain5, $actionChain6);
     return $actionChains;
 }