public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'name', 'type' => TType::STRING), 2 => array('var' => 'validation_class', 'type' => TType::STRING), 3 => array('var' => 'index_type', 'type' => TType::I32), 4 => array('var' => 'index_name', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['name'])) {
             $this->name = $vals['name'];
         }
         if (isset($vals['validation_class'])) {
             $this->validation_class = $vals['validation_class'];
         }
         if (isset($vals['index_type'])) {
             $this->index_type = $vals['index_type'];
         }
         if (isset($vals['index_name'])) {
             $this->index_name = $vals['index_name'];
         }
     }
 }
Beispiel #2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'name', 'type' => TType::STRING), 2 => array('var' => 'validation_class', 'type' => TType::STRING), 3 => array('var' => 'index_type', 'type' => TType::I32), 4 => array('var' => 'index_name', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }