示例#1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'mutator', 'type' => TType::I64), 2 => array('var' => 'cell', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)));
     }
     if (is_array($vals)) {
         if (isset($vals['mutator'])) {
             $this->mutator = $vals['mutator'];
         }
         if (isset($vals['cell'])) {
             $this->cell = $vals['cell'];
         }
     }
 }
示例#2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'ns', 'type' => TType::I64), 2 => array('var' => 'table_name', 'type' => TType::STRING), 3 => array('var' => 'cell', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)));
     }
     if (is_array($vals)) {
         if (isset($vals['ns'])) {
             $this->ns = $vals['ns'];
         }
         if (isset($vals['table_name'])) {
             $this->table_name = $vals['table_name'];
         }
         if (isset($vals['cell'])) {
             $this->cell = $vals['cell'];
         }
     }
 }