plugin/dropzone/Manager/DropzoneManager.php
public function getDropzoneProgressByUser($dropzone, $user)
    {
        $drop = $this->em
            ->getRepository('IcapDropzoneBundle:Drop')
            ->findOneBy(['dropzone' => $dropzone, 'user' => $user]);
        $nbCorrections = $this->em
            ->getRepository('IcapDropzoneBundle:Correction')
            ->countFinished($dropzone, $user);

        return $this->getDrozponeProgress($dropzone, $drop, $nbCorrections);
    }
public function getDropzoneProgressByUser($dropzone, $user)
    {
        $drop = $this->em
            ->getRepository('IcapDropzoneBundle:Drop')
            ->findOneBy(['dropzone' => $dropzone, 'user' => $user]);
        $nbCorrections = $this->em
            ->getRepository('IcapDropzoneBundle:Correction')
            ->countFinished($dropzone, $user);

        return $this->getDrozponeProgress($dropzone, $drop, $nbCorrections);
    }
public function getDropzoneProgressByUser ( $ dropzone , $ user ) { $ drop = $ this -> em -> getRepository ( 'IcapDropzoneBundle:Drop' ) -> findOneBy ( [ 'dropzone' => $ dropzone , 'user' => $ user ] ) ; $ nbCorrections = $ this -> em -> getRepository ( 'IcapDropzoneBundle:Correction' ) -> countFinished ( $ dropzone , $ user ) ; return $ this -> getDrozponeProgress ( $ dropzone , $ drop , $ nbCorrections ) ; }
ShortCut to getDropzoneProgress
allow to get progress without drop and nbCorrection parameter.
only need user and dropzone.

STATES  FOR NORMAL ARE :
0 : not started
1 : Waiting for drop
2 : Drop received, waiting for correction
3 : Copy corrected , Evaluation end.

STATES FOR PEERREVIEW (for X correction ):
0 : notStarted
1 : Waiting for drop
2 : Drop received
3 : Correction 1/x
4 : Correction 2/X
5 : Correction X/X
6 : Waiting for correction
7 : copy corrected, Evaluation End.     *

WARNING : if a drop has the 'unlockedDrop' property, it will make the drop being at the last state.

currentstate : index of the current state  in the stateArray
percent : rounded progress in percent
nbCorrection : corrections made by the user in this evaluation.
*

@param Dropzone dropzone
@param Drop drop

@return array (states, currentState,percent,nbCorrection)
ShortCut to getDropzoneProgress allow to get progress without drop and nbCorrection parameter . only need user and dropzone .