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

        switch ($dropzone->getDropType()) {
            case Dropzone::DROP_TYPE_USER:
                if (!empty($user)) {
                    $drop = $this->dropRepo->findOneBy([
                        'dropzone' => $dropzone,
                        'user' => $user,
                        'teamUuid' => null,
                        'finished' => true,
                    ]);
                }
                break;
            case Dropzone::DROP_TYPE_TEAM:
                if ($teamId) {
                    $drop = $this->dropRepo->findOneBy(['dropzone' => $dropzone, 'teamUuid' => $teamId, 'finished' => true]);
                }
                break;
        }

        return $drop;
    }
public function getFinishedUserDrop(Dropzone $dropzone, User $user = null, $teamId = null)
    {
        $drop = null;

        switch ($dropzone->getDropType()) {
            case Dropzone::DROP_TYPE_USER:
                if (!empty($user)) {
                    $drop = $this->dropRepo->findOneBy([
                        'dropzone' => $dropzone,
                        'user' => $user,
                        'teamUuid' => null,
                        'finished' => true,
                    ]);
                }
                break;
            case Dropzone::DROP_TYPE_TEAM:
                if ($teamId) {
                    $drop = $this->dropRepo->findOneBy(['dropzone' => $dropzone, 'teamUuid' => $teamId, 'finished' => true]);
                }
                break;
        }

        return $drop;
    }
public function getFinishedUserDrop ( Dropzone $ dropzone , User $ user = null , $ teamId = null ) { $ drop = null ; switch ( $ dropzone -> getDropType ( ) ) { case Dropzone :: DROP_TYPE_USER : if ( ! empty ( $ user ) ) { $ drop = $ this -> dropRepo -> findOneBy ( [ 'dropzone' => $ dropzone , 'user' => $ user , 'teamUuid' => null , 'finished' => true , ] ) ; } break ; case Dropzone :: DROP_TYPE_TEAM : if ( $ teamId ) { $ drop = $ this -> dropRepo -> findOneBy ( [ 'dropzone' => $ dropzone , 'teamUuid' => $ teamId , 'finished' => true ] ) ; } break ; } return $ drop ; }
Gets user|team drop if it is finished.

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

@return array
Gets user|team drop if it is finished .