Ejemplo n.º 1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'keyspace', 'type' => TType::STRING), 2 => array('var' => 'key', 'type' => TType::STRING), 3 => array('var' => 'column_parent', 'type' => TType::STRUCT, 'class' => 'cassandra_ColumnParent'), 4 => array('var' => 'consistency_level', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         if (isset($vals['keyspace'])) {
             $this->keyspace = $vals['keyspace'];
         }
         if (isset($vals['key'])) {
             $this->key = $vals['key'];
         }
         if (isset($vals['column_parent'])) {
             $this->column_parent = $vals['column_parent'];
         }
         if (isset($vals['consistency_level'])) {
             $this->consistency_level = $vals['consistency_level'];
         }
     }
 }
Ejemplo n.º 2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'key', 'type' => TType::STRING), 2 => array('var' => 'column_parent', 'type' => TType::STRUCT, 'class' => 'cassandra_ColumnParent'), 3 => array('var' => 'predicate', 'type' => TType::STRUCT, 'class' => 'cassandra_SlicePredicate'), 4 => array('var' => 'consistency_level', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }