Пример #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'name', 'type' => TType::STRING), 2 => array('var' => 'value', 'type' => TType::STRING), 3 => array('var' => 'type', 'type' => TType::I32), 4 => array('var' => 'applicationArgument', 'type' => TType::STRING), 5 => array('var' => 'standardInput', 'type' => TType::BOOL), 6 => array('var' => 'userFriendlyDescription', 'type' => TType::STRING), 7 => array('var' => 'metaData', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['name'])) {
             $this->name = $vals['name'];
         }
         if (isset($vals['value'])) {
             $this->value = $vals['value'];
         }
         if (isset($vals['type'])) {
             $this->type = $vals['type'];
         }
         if (isset($vals['applicationArgument'])) {
             $this->applicationArgument = $vals['applicationArgument'];
         }
         if (isset($vals['standardInput'])) {
             $this->standardInput = $vals['standardInput'];
         }
         if (isset($vals['userFriendlyDescription'])) {
             $this->userFriendlyDescription = $vals['userFriendlyDescription'];
         }
         if (isset($vals['metaData'])) {
             $this->metaData = $vals['metaData'];
         }
     }
 }
Пример #2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'name', 'type' => TType::STRING), 2 => array('var' => 'value', 'type' => TType::STRING), 3 => array('var' => 'type', 'type' => TType::I32), 4 => array('var' => 'applicationArgument', 'type' => TType::STRING), 5 => array('var' => 'standardInput', 'type' => TType::BOOL), 6 => array('var' => 'userFriendlyDescription', 'type' => TType::STRING), 7 => array('var' => 'metaData', 'type' => TType::STRING), 8 => array('var' => 'inputOrder', 'type' => TType::I32), 9 => array('var' => 'isRequired', 'type' => TType::BOOL), 10 => array('var' => 'requiredToAddedToCommandLine', 'type' => TType::BOOL), 11 => array('var' => 'dataStaged', 'type' => TType::BOOL));
     }
     if (is_array($vals)) {
         if (isset($vals['name'])) {
             $this->name = $vals['name'];
         }
         if (isset($vals['value'])) {
             $this->value = $vals['value'];
         }
         if (isset($vals['type'])) {
             $this->type = $vals['type'];
         }
         if (isset($vals['applicationArgument'])) {
             $this->applicationArgument = $vals['applicationArgument'];
         }
         if (isset($vals['standardInput'])) {
             $this->standardInput = $vals['standardInput'];
         }
         if (isset($vals['userFriendlyDescription'])) {
             $this->userFriendlyDescription = $vals['userFriendlyDescription'];
         }
         if (isset($vals['metaData'])) {
             $this->metaData = $vals['metaData'];
         }
         if (isset($vals['inputOrder'])) {
             $this->inputOrder = $vals['inputOrder'];
         }
         if (isset($vals['isRequired'])) {
             $this->isRequired = $vals['isRequired'];
         }
         if (isset($vals['requiredToAddedToCommandLine'])) {
             $this->requiredToAddedToCommandLine = $vals['requiredToAddedToCommandLine'];
         }
         if (isset($vals['dataStaged'])) {
             $this->dataStaged = $vals['dataStaged'];
         }
     }
 }