Exemplo n.º 1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'status', 'type' => TType::STRUCT, 'class' => '\\TStatus'), 2 => array('var' => 'operationState', 'type' => TType::I32), 3 => array('var' => 'sqlState', 'type' => TType::STRING), 4 => array('var' => 'errorCode', 'type' => TType::I32), 5 => array('var' => 'errorMessage', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['status'])) {
             $this->status = $vals['status'];
         }
         if (isset($vals['operationState'])) {
             $this->operationState = $vals['operationState'];
         }
         if (isset($vals['sqlState'])) {
             $this->sqlState = $vals['sqlState'];
         }
         if (isset($vals['errorCode'])) {
             $this->errorCode = $vals['errorCode'];
         }
         if (isset($vals['errorMessage'])) {
             $this->errorMessage = $vals['errorMessage'];
         }
     }
 }
Exemplo n.º 2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'status', 'type' => TType::STRUCT, 'class' => '\\TStatus'), 2 => array('var' => 'operationState', 'type' => TType::I32), 3 => array('var' => 'sqlState', 'type' => TType::STRING), 4 => array('var' => 'errorCode', 'type' => TType::I32), 5 => array('var' => 'errorMessage', 'type' => TType::STRING), 6 => array('var' => 'taskStatus', 'type' => TType::STRING), 7 => array('var' => 'operationStarted', 'type' => TType::I64), 8 => array('var' => 'operationCompleted', 'type' => TType::I64), 9 => array('var' => 'hasResultSet', 'type' => TType::BOOL));
     }
     if (is_array($vals)) {
         if (isset($vals['status'])) {
             $this->status = $vals['status'];
         }
         if (isset($vals['operationState'])) {
             $this->operationState = $vals['operationState'];
         }
         if (isset($vals['sqlState'])) {
             $this->sqlState = $vals['sqlState'];
         }
         if (isset($vals['errorCode'])) {
             $this->errorCode = $vals['errorCode'];
         }
         if (isset($vals['errorMessage'])) {
             $this->errorMessage = $vals['errorMessage'];
         }
         if (isset($vals['taskStatus'])) {
             $this->taskStatus = $vals['taskStatus'];
         }
         if (isset($vals['operationStarted'])) {
             $this->operationStarted = $vals['operationStarted'];
         }
         if (isset($vals['operationCompleted'])) {
             $this->operationCompleted = $vals['operationCompleted'];
         }
         if (isset($vals['hasResultSet'])) {
             $this->hasResultSet = $vals['hasResultSet'];
         }
     }
 }
Exemplo n.º 3
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'status', 'type' => TType::STRUCT, 'class' => 'TStatus'), 2 => array('var' => 'operationState', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         if (isset($vals['status'])) {
             $this->status = $vals['status'];
         }
         if (isset($vals['operationState'])) {
             $this->operationState = $vals['operationState'];
         }
     }
 }