Пример #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'key', 'type' => TType::STRING), 2 => array('var' => 'value', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['key'])) {
             $this->key = $vals['key'];
         }
         if (isset($vals['value'])) {
             $this->value = $vals['value'];
         }
     }
 }
Пример #2
0
 protected function process_setOption($seqid, $input, $output)
 {
     $args = new FacebookService_setOption_args();
     $args->read($input);
     $input->readMessageEnd();
     $result = new FacebookService_setOption_result();
     $this->handler_->setOption($args->key, $args->value);
     $output->writeMessageBegin('setOption', TMessageType::REPLY, $seqid);
     $result->write($output);
     $output->getTransport()->flush();
 }