plugin/drop-zone/Manager/DropzoneManager.php
public function getAllCorrectionsData(Dropzone $dropzone)
    {
        $data = [];
        $corrections = $this->correctionRepo->findAllCorrectionsByDropzone($dropzone);

        foreach ($corrections as $correction) {
            $teamId = $correction->getTeamUuid();
            $key = empty($teamId) ? 'user_'.$correction->getUser()->getUuid() : 'team_'.$teamId;

            if (!isset($data[$key])) {
                $data[$key] = [];
            }
            $data[$key][] = $this->serializeCorrection($correction);
        }

        return $data;
    }
public function getAllCorrectionsData(Dropzone $dropzone)
    {
        $data = [];
        $corrections = $this->correctionRepo->findAllCorrectionsByDropzone($dropzone);

        foreach ($corrections as $correction) {
            $teamId = $correction->getTeamUuid();
            $key = empty($teamId) ? 'user_'.$correction->getUser()->getUuid() : 'team_'.$teamId;

            if (!isset($data[$key])) {
                $data[$key] = [];
            }
            $data[$key][] = $this->serializeCorrection($correction);
        }

        return $data;
    }
public function getAllCorrectionsData ( Dropzone $ dropzone ) { $ data = [ ] ; $ corrections = $ this -> correctionRepo -> findAllCorrectionsByDropzone ( $ dropzone ) ; foreach ( $ corrections as $ correction ) { $ teamId = $ correction -> getTeamUuid ( ) ; $ key = empty ( $ teamId ) ? 'user_' . $ correction -> getUser ( ) -> getUuid ( ) : 'team_' . $ teamId ; if ( ! isset ( $ data [ $ key ] ) ) { $ data [ $ key ] = [ ] ; } $ data [ $ key ] [ ] = $ this -> serializeCorrection ( $ correction ) ; } return $ data ; }
Retrieves all corrections made for a Dropzone.

@param Dropzone $dropzone

@return array
Retrieves all corrections made for a Dropzone .