<?php
namespace Claromentis\Quiz\Search;

$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] ?: array()) + array("permi" . "ssion" . "s" => base64_decode("cGVybWlzc2l" . "vbnM="));
use Claromentis\Core\Acl\AclRepository;
use Claromentis\Core\CDN\CDNInterface;
use Claromentis\Core\Security\SecurityContext;
use Claromentis\Core\TextUtil\ClaText;
use Claromentis\Quiz\Repository\QuizRepository;
use Claromentis\Search\GlobalSearchItemInterface;
use Claromentis\Search\Permissions as SearchPermissions;




class QuizSearch implements GlobalSearchItemInterface
{
    
    
    protected $cdn;
    protected $cla_text;
    protected $quiz_repo;
    protected $acl_repo;
    public function __construct(CDNInterface $cdn, ClaText $cla_text, QuizRepository $quiz_repo, AclRepository $_3436ad73cf80729d5a2e43d861c31e8b)
    {
        $this->cdn = $cdn;
        $this->cla_text = $cla_text;
        $this->quiz_repo = $quiz_repo;
        $this->acl_repo = $_3436ad73cf80729d5a2e43d861c31e8b;
    }
    
    
    
    
    
    
    public function GetIndexingObject()
    {
        return new Indexing\QuizIndexing($this->cdn, $this->cla_text, $this->quiz_repo, $this->acl_repo);
    }
    
    
    
    
    
    
    
    public function GetPermissionsSearchFilter(SecurityContext $context)
    {
        $_6905a4a1c788ec5cb2cfea8ca6e4043e = new SearchPermissions();
        return $_6905a4a1c788ec5cb2cfea8ca6e4043e->GetSearchFilter($context, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["permissi" . "ons"]);
    }
    
    
    
    
    
    
    public function GetView()
    {
        return new View\QuizView();
    }
}