plugin/drop-zone/Manager/DropzoneManager.php
public function generateResourceUserEvaluation(Dropzone $dropzone, User $user)
    {
        $userEval = $this->resourceEvalManager->getResourceUserEvaluation($dropzone->getResourceNode(), $user, false);

        if (empty($userEval)) {
            $userEval = $this->resourceEvalManager->createResourceEvaluation(
                $dropzone->getResourceNode(),
                $user,
                null,
                ['status' => AbstractResourceEvaluation::STATUS_NOT_ATTEMPTED]
            );
        }

        return $userEval;
    }
public function generateResourceUserEvaluation(Dropzone $dropzone, User $user)
    {
        $userEval = $this->resourceEvalManager->getResourceUserEvaluation($dropzone->getResourceNode(), $user, false);

        if (empty($userEval)) {
            $userEval = $this->resourceEvalManager->createResourceEvaluation(
                $dropzone->getResourceNode(),
                $user,
                null,
                ['status' => AbstractResourceEvaluation::STATUS_NOT_ATTEMPTED]
            );
        }

        return $userEval;
    }
public function generateResourceUserEvaluation ( Dropzone $ dropzone , User $ user ) { $ userEval = $ this -> resourceEvalManager -> getResourceUserEvaluation ( $ dropzone -> getResourceNode ( ) , $ user , false ) ; if ( empty ( $ userEval ) ) { $ userEval = $ this -> resourceEvalManager -> createResourceEvaluation ( $ dropzone -> getResourceNode ( ) , $ user , null , [ 'status' => AbstractResourceEvaluation :: STATUS_NOT_ATTEMPTED ] ) ; } return $ userEval ; }
Retrieves ResourceUserEvaluation for a Dropzone and an user or creates one.

@param Dropzone $dropzone
@param User     $user

@return ResourceUserEvaluation
Retrieves ResourceUserEvaluation for a Dropzone and an user or creates one .