part = $arr[2]; $this->vendor = $arr[3]; $this->product = $arr[4]; $this->version = $arr[5]; $this->update = $arr[6]; $this->edition = $arr[7] == '*' ? NULL : $arr[7]; $this->lang = $arr[8] == '*' ? NULL : $arr[8]; $this->sw_edition = $arr[9] == '*' ? NULL : $arr[9]; $this->tgt_sw = $arr[10] == '*' ? NULL : $arr[10]; $this->tgt_hw = $arr[11] == '*' ? NULL : $arr[11]; $this->other = $arr[12] == '*' ? NULL : $arr[12]; } else { $this->part = $arr[1]; $this->vendor = $arr[2]; $this->product = $arr[3]; $this->version = isset($arr[4]) ? $arr[4] : NULL; $this->update = isset($arr[5]) ? $arr[5] : NULL; $this->edition = NULL; $this->lang = NULL; $this->sw_edition = NULL; $this->tgt_sw = NULL; $this->tgt_hw = NULL; $this->other = NULL; } } }