Пример #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(3 => array('var' => 'column_family', 'type' => TType::STRING), 4 => array('var' => 'super_column', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['column_family'])) {
             $this->column_family = $vals['column_family'];
         }
         if (isset($vals['super_column'])) {
             $this->super_column = $vals['super_column'];
         }
     }
 }
Пример #2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(3 => array('var' => 'column_family', 'type' => TType::STRING), 4 => array('var' => 'super_column', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }