public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 0: if ($ftype == TType::LST) { $this->success = array(); $_size7 = 0; $_etype10 = 0; $xfer += $input->readListBegin($_etype10, $_size7); for ($_i11 = 0; $_i11 < $_size7; ++$_i11) { $elem12 = null; $elem12 = new logcommentfilter_ZSearch(); $xfer += $elem12->read($input); $this->success[] = $elem12; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'vipId', 'type' => TType::I32), 2 => array('var' => 'remove', 'type' => TType::I32), 3 => array('var' => 'approve', 'type' => TType::I32), 4 => array('var' => 'count', 'type' => TType::I32)); } if (is_array($vals)) { if (isset($vals['vipId'])) { $this->vipId = $vals['vipId']; } if (isset($vals['remove'])) { $this->remove = $vals['remove']; } if (isset($vals['approve'])) { $this->approve = $vals['approve']; } if (isset($vals['count'])) { $this->count = $vals['count']; } } }