function processClearingEventOfCurrentJob() { $userId = $this->userId; $groupId = $this->groupId; $jobId = $this->jobId; $eventsOfThisJob = $this->clearingDao->getEventIdsOfJob($jobId); foreach ($eventsOfThisJob as $uploadTreeId => $additionalEventsFromThisJob) { $containerBounds = $this->uploadDao->getItemTreeBounds($uploadTreeId); foreach ($this->loopContainedItems($containerBounds) as $itemTreeBounds) { $this->processClearingEventsForItem($itemTreeBounds, $userId, $groupId, $additionalEventsFromThisJob); } } }