<?php
namespace Claromentis\Quiz\Search;

$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("permissi" . "ons" => base64_decode("cGVyb" . "Wlzc2" . "lvbnM" . "="));
use Claromentis\Core\Acl\AclRepository;
use Claromentis\Core\CDN\CDNInterface;
use Claromentis\Core\Security\SecurityContext;
use Claromentis\Quiz\Permissions\SurveyAdminPermissions;
use Claromentis\Quiz\Repository\SurveyRepository;
use Claromentis\Search\GlobalSearchItemInterface;
use Claromentis\Search\Permissions as SearchPermissions;
use Claromentis\Core\TextUtil\ClaText;




class SurveySearch implements GlobalSearchItemInterface
{
    
    
    protected $cdn;
    
    
    private $cla_text;
    
    
    private $survey_repository;
    
    
    private $survey_admin_permissions;
    public function __construct(CDNInterface $cdn, ClaText $cla_text, SurveyRepository $_d788c955b64166f591e5ce0a44478441, SurveyAdminPermissions $survey_admin_permissions)
    {
        $this->cdn = $cdn;
        $this->cla_text = $cla_text;
        $this->survey_repository = $_d788c955b64166f591e5ce0a44478441;
        $this->survey_admin_permissions = $survey_admin_permissions;
    }
    
    
    
    
    
    
    public function GetIndexingObject()
    {
        return new Indexing\SurveyIndexing($this->cla_text, $this->cdn, $this->survey_repository, $this->survey_admin_permissions);
    }
    
    
    
    
    
    
    
    public function GetPermissionsSearchFilter(SecurityContext $context)
    {
        $_6905a4a1c788ec5cb2cfea8ca6e4043e = new SearchPermissions();
        return $_6905a4a1c788ec5cb2cfea8ca6e4043e->GetSearchFilter($context, $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["perm" . "issi" . "ons"]);
    }
    
    
    
    
    
    
    public function GetView()
    {
        return new View\SurveyView();
    }
}