예제 #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'key', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['key'])) {
             $this->key = $vals['key'];
         }
     }
 }
예제 #2
0
 protected function process_getCounter($seqid, $input, $output)
 {
     $args = new FacebookService_getCounter_args();
     $args->read($input);
     $input->readMessageEnd();
     $result = new FacebookService_getCounter_result();
     $result->success = $this->handler_->getCounter($args->key);
     $output->writeMessageBegin('getCounter', TMessageType::REPLY, $seqid);
     $result->write($output);
     $output->getTransport()->flush();
 }