public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'fid', 'type' => TType::I32), 2 => array('var' => 'url', 'type' => TType::STRING), 3 => array('var' => 'name', 'type' => TType::STRING), 4 => array('var' => 'plugin', 'type' => TType::STRING), 5 => array('var' => 'size', 'type' => TType::I64), 6 => array('var' => 'format_size', 'type' => TType::STRING), 7 => array('var' => 'status', 'type' => TType::I32), 8 => array('var' => 'statusmsg', 'type' => TType::STRING), 9 => array('var' => 'packageID', 'type' => TType::I32), 10 => array('var' => 'error', 'type' => TType::STRING), 11 => array('var' => 'order', 'type' => TType::I16), 12 => array('var' => 'progress', 'type' => TType::BYTE)); } if (is_array($vals)) { if (isset($vals['fid'])) { $this->fid = $vals['fid']; } if (isset($vals['url'])) { $this->url = $vals['url']; } if (isset($vals['name'])) { $this->name = $vals['name']; } if (isset($vals['plugin'])) { $this->plugin = $vals['plugin']; } if (isset($vals['size'])) { $this->size = $vals['size']; } if (isset($vals['format_size'])) { $this->format_size = $vals['format_size']; } if (isset($vals['status'])) { $this->status = $vals['status']; } if (isset($vals['statusmsg'])) { $this->statusmsg = $vals['statusmsg']; } if (isset($vals['packageID'])) { $this->packageID = $vals['packageID']; } if (isset($vals['error'])) { $this->error = $vals['error']; } if (isset($vals['order'])) { $this->order = $vals['order']; } if (isset($vals['progress'])) { $this->progress = $vals['progress']; } } }