30 private $clearingEvents;
34 private $uploadTreeId;
48 private $acknowledgement;
70 public function __construct($sameFolder, $clearingId, $uploadTreeId, $pfileId, $userName, $userId, $type, $scope, $ts_added, $clearingEvents, $comment =
"", $reportinfo =
"", $acknowledgement =
"")
72 $this->sameFolder = $sameFolder;
73 $this->clearingId = $clearingId;
74 $this->uploadTreeId = $uploadTreeId;
75 $this->pfileId = $pfileId;
76 $this->userName = $userName;
77 $this->userId = $userId;
79 $this->scope = $scope;
80 $this->timeStamp = $ts_added;
81 $this->comment = $comment;
82 $this->reportinfo = $reportinfo;
83 $this->acknowledgement = $acknowledgement;
84 $this->clearingEvents = $clearingEvents;
92 return $this->clearingId;
100 return $this->comment;
108 return $this->timeStamp;
116 $clearingLicenses = array();
117 foreach ($this->clearingEvents as $clearingEvent) {
118 $clearingLicenses[] = $clearingEvent->getClearingLicense();
120 return $clearingLicenses;
129 foreach ($this->clearingEvents as $clearingEvent) {
130 $clearingLicense = $clearingEvent->getClearingLicense();
131 if (! $clearingLicense->isRemoved()) {
132 $result[] = $clearingLicense->getLicenseRef();
144 return $this->clearingEvents;
152 return $this->pfileId;
160 return $this->reportinfo;
168 return $this->acknowledgement;
176 return $this->sameFolder;
200 return $this->uploadTreeId;
208 return $this->userId;
216 return $this->userName;
228 return $this->sameFolder;
233 function __toString()
235 $output =
"ClearingDecision(#" . $this->clearingId .
", ";
237 foreach ($this->clearingLicenses as $clearingLicense) {
238 $output .= ($clearingLicense->isRemoved() ?
"-" :
""). $clearingLicense->getShortName() .
", ";
__construct($sameFolder, $clearingId, $uploadTreeId, $pfileId, $userName, $userId, $type, $scope, $ts_added, $clearingEvents, $comment="", $reportinfo="", $acknowledgement="")