12 namespace Fossology\UI\Api\Models;
91 $this->
id = intval(
$id);
95 $this->userId = intval(
$userId);
97 $this->eta = intval(
$eta);
106 public function getJSON($version=ApiVersion::V1)
108 return json_encode($this->getArray($version));
115 public function getArray($version = ApiVersion::V1)
117 if ($version == ApiVersion::V2) {
120 $userDao = $GLOBALS[
'container']->get(
"dao.user");
126 'userName' => $userDao->getUserName($this->userId),
127 'groupName' => $userDao->getGroupNameById($this->groupId),
getJSON($version=ApiVersion::V1)
__construct($id, $name="", $queueDate="", $uploadId=0, $userId=0, $groupId=0, $eta=0, $status="", $jobQueue=[])