Пример #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'ready', 'type' => TType::BOOL), 2 => array('var' => 'columns', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 3 => array('var' => 'data', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 4 => array('var' => 'start_row', 'type' => TType::I64), 5 => array('var' => 'has_more', 'type' => TType::BOOL));
     }
     if (is_array($vals)) {
         if (isset($vals['ready'])) {
             $this->ready = $vals['ready'];
         }
         if (isset($vals['columns'])) {
             $this->columns = $vals['columns'];
         }
         if (isset($vals['data'])) {
             $this->data = $vals['data'];
         }
         if (isset($vals['start_row'])) {
             $this->start_row = $vals['start_row'];
         }
         if (isset($vals['has_more'])) {
             $this->has_more = $vals['has_more'];
         }
     }
 }