示例#1
0
 function get_transparent()
 {
     $transparent = new Transparent();
     $transparent->set_id('');
     $transparent->set_messageId('');
     $transparent->set_taskId('');
     $transparent->set_action('pushmessage');
     $transparent->set_pushInfo($this->get_pushInfo());
     $transparent->set_appId($this->appId);
     $transparent->set_appKey($this->appkey);
     $actionChainList = $this->getActionChain();
     foreach ($actionChainList as $index => $actionChain) {
         $transparent->add_actionChain();
         $transparent->set_actionChain($index, $actionChain);
     }
     $transparent->append_condition($this->get_durcondition());
     return $transparent->SerializeToString();
     //return $transparent->condition(0);
 }
示例#2
0
 /**
  * @return string
  */
 public function getTransparent()
 {
     $transparent = new Transparent();
     $transparent->setId('');
     $transparent->setMessageId('');
     $transparent->setTaskId('');
     $transparent->setAction('pushmessage');
     $transparent->setPushInfo($this->getPushInfo());
     $transparent->setAppId($this->appId);
     $transparent->setAppKey($this->appkey);
     $actionChainList = $this->getActionChain();
     foreach ($actionChainList as $index => $actionChain) {
         $transparent->addActionChain();
         $transparent->setActionChain($index, $actionChain);
     }
     $transparent->appendCondition($this->getDurcondition());
     return $transparent->serializeToString();
     //return $transparent->condition(0);
 }
示例#3
0
 public function __construct($meta = 0)
 {
     Transparent::__construct(self::WALL_SIGN, $meta, "Wall Sign");
 }
 public function __construct()
 {
     parent::__construct();
 }