You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
719 B
29 lines
719 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CourseBundle\Repository;
|
|
|
|
use Chamilo\CoreBundle\Repository\ResourceRepository;
|
|
use Chamilo\CourseBundle\Entity\CQuizQuestion;
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
final class CQuizQuestionRepository extends ResourceRepository
|
|
{
|
|
public function __construct(ManagerRegistry $registry)
|
|
{
|
|
parent::__construct($registry, CQuizQuestion::class);
|
|
}
|
|
|
|
public function getHotSpotImageUrl(CQuizQuestion $resource): string
|
|
{
|
|
$params = [
|
|
'mode' => 'view',
|
|
'filter' => 'hotspot_question',
|
|
];
|
|
|
|
return $this->getResourceFileUrl($resource, $params);
|
|
}
|
|
}
|
|
|