14 namespace Fossology\UI\Api\Models;
195 public function getArray($apiVersion = ApiVersion::V1)
197 if ($apiVersion == ApiVersion::V2) {
199 "id" => $this->
getId(),
209 "id" => $this->
getId(),
228 $licenseData[
'rf_shortname'], $licenseData[
'rf_spdx_id'],
229 $licenseData[
'rf_fullname'], $licenseData[
'rf_text'],
230 $licenseData[
'group_name'], $licenseData[
'group_pk']);
245 foreach ($rows as $row) {
__construct($id, $shortname, $spdxid, $fullname, $text, $group_name, $group_id)
static createFromArray($licenseData)
static convertDbArray($rows, $version=ApiVersion::V1)
setGroupName($group_name)