Example #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'templateId', 'type' => TType::STRING), 2 => array('var' => 'name', 'type' => TType::STRING), 3 => array('var' => 'graph', 'type' => TType::STRING), 4 => array('var' => 'image', 'type' => TType::STRING), 5 => array('var' => 'workflowInputs', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\Airavata\\Model\\Application\\Io\\InputDataObjectType')), 6 => array('var' => 'workflowOutputs', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\Airavata\\Model\\Application\\Io\\OutputDataObjectType')));
     }
     if (is_array($vals)) {
         if (isset($vals['templateId'])) {
             $this->templateId = $vals['templateId'];
         }
         if (isset($vals['name'])) {
             $this->name = $vals['name'];
         }
         if (isset($vals['graph'])) {
             $this->graph = $vals['graph'];
         }
         if (isset($vals['image'])) {
             $this->image = $vals['image'];
         }
         if (isset($vals['workflowInputs'])) {
             $this->workflowInputs = $vals['workflowInputs'];
         }
         if (isset($vals['workflowOutputs'])) {
             $this->workflowOutputs = $vals['workflowOutputs'];
         }
     }
 }
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'templateId', 'type' => TType::STRING), 2 => array('var' => 'name', 'type' => TType::STRING), 3 => array('var' => 'graph', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['templateId'])) {
             $this->templateId = $vals['templateId'];
         }
         if (isset($vals['name'])) {
             $this->name = $vals['name'];
         }
         if (isset($vals['graph'])) {
             $this->graph = $vals['graph'];
         }
     }
 }