plugin/drop-zone/Manager/DropzoneManager.php
public function getFinishedPeerDrops(Dropzone $dropzone, User $user = null, $teamId = null)
    {
        $drops = [];

        switch ($dropzone->getDropType()) {
            case Dropzone::DROP_TYPE_USER:
                if (!empty($user)) {
                    $drops = $this->dropRepo->findUserFinishedPeerDrops($dropzone, $user);
                }
                break;
            case Dropzone::DROP_TYPE_TEAM:
                if ($teamId) {
                    $drops = $this->dropRepo->findTeamFinishedPeerDrops($dropzone, $teamId);
                }
                break;
        }

        return $drops;
    }
public function getFinishedPeerDrops(Dropzone $dropzone, User $user = null, $teamId = null)
    {
        $drops = [];

        switch ($dropzone->getDropType()) {
            case Dropzone::DROP_TYPE_USER:
                if (!empty($user)) {
                    $drops = $this->dropRepo->findUserFinishedPeerDrops($dropzone, $user);
                }
                break;
            case Dropzone::DROP_TYPE_TEAM:
                if ($teamId) {
                    $drops = $this->dropRepo->findTeamFinishedPeerDrops($dropzone, $teamId);
                }
                break;
        }

        return $drops;
    }
public function getFinishedPeerDrops ( Dropzone $ dropzone , User $ user = null , $ teamId = null ) { $ drops = [ ] ; switch ( $ dropzone -> getDropType ( ) ) { case Dropzone :: DROP_TYPE_USER : if ( ! empty ( $ user ) ) { $ drops = $ this -> dropRepo -> findUserFinishedPeerDrops ( $ dropzone , $ user ) ; } break ; case Dropzone :: DROP_TYPE_TEAM : if ( $ teamId ) { $ drops = $ this -> dropRepo -> findTeamFinishedPeerDrops ( $ dropzone , $ teamId ) ; } break ; } return $ drops ; }
Gets drops corrected by user|team.

@param Dropzone $dropzone
@param User     $user
@param string   $teamId

@return array
Gets drops corrected by user|team .