30 private $clearingEvents;
34 private $uploadTreeId;
48 private $acknowledgement;
54 function __construct()
56 $this->sameFolder =
false;
57 $this->clearingEvents = array();
58 $this->clearingId = -1;
59 $this->uploadTreeId = -1;
61 $this->userName =
"fossy";
64 $this->scope = DecisionScopes::ITEM;
65 $this->timeStamp = time();
74 $this->clearingId = intval($clearingId);
84 $this->timeStamp = $timestamp;
94 $this->clearingEvents = $events;
104 $this->pfileId = intval($pfileId);
114 $this->sameFolder = $sameFolder;
134 $this->scope = $scope;
144 $this->uploadTreeId = $uploadTreeId;
154 $this->userId = $userId;
164 $this->userName = $userName;
185 $this->pfileId = $clearingDecision->
getPfileId();
186 $this->userName = $clearingDecision->
getUserName();
187 $this->userId = $clearingDecision->
getUserId();
188 $this->type = $clearingDecision->
getType();
189 $this->comment = $clearingDecision->
getComment();
192 $this->scope = $clearingDecision->
getScope();
202 if ($this->type === null) {
203 throw new Exception(
"decision type should be set");
207 $this->uploadTreeId, $this->pfileId, $this->userName, $this->userId, $this->type, $this->scope,
208 $this->timeStamp, $this->clearingEvents, $this->reportinfo, $this->comment, $this->acknowledgement);
setUploadTreeId($uploadTreeId)
copy(ClearingDecision $clearingDecision)
setClearingId($clearingId)
setClearingEvents($events)
setSameFolder($sameFolder)