19 declare(strict_types=1);
    53     public function __construct(
int $a_ref_id, 
object $a_parent_obj, 
string $a_parent_cmd)
    57         $this->
lng = $DIC->language();
    58         $this->
ctrl = $DIC->ctrl();
    59         $this->
access = $DIC->access();
    60         $this->tpl = $DIC->ui()->mainTemplate();
    61         $this->obj_definition = $DIC[
'objDefinition'];
    63         $this->ref_id = $a_ref_id;
    64         $this->
http = $DIC->http();
    69             if ($repo_object instanceof 
ilObject) {
    70                 $this->
object = $repo_object;
    75         $this->parent_obj = $a_parent_obj;
    76         $this->parent_cmd = $a_parent_cmd;
    82         return $block->getHTML();
    87         if (!$this->
access->checkAccess(
'read', 
'', $this->getObject()->getRefId())) {
    88             $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"permission_denied"), 
true);
    92         $next_class = $this->
getCtrl()->getNextClass();
    93         $cmd = $this->
getCtrl()->getCmd();
    96         switch ($next_class) {
   143             if ($this->
http->wrapper()->post()->has(
'search_term')) {
   144                 $search_term = $this->
http->wrapper()->post()->retrieve(
   146                     $this->
refinery->kindlyTo()->string()
   149             $search->setQueryString($search_term);
   150             $result = $search->performSearch();
   152             $this->tpl->setOnScreenMessage(
'failure', $e->getMessage(), 
true);
   153             $this->
getCtrl()->returnToParent($this);
   158         $result_table->setSearchTerm($search_term);
   159         $result_table->setResults($result);
   161         $result_table->init();
   162         $result_table->parse();
   164         $this->tpl->setContent($result_table->getHTML());
   170         $class = $this->obj_definition->getClassName($this->
getObject()->getType());
   171         $full_class = 
"ilObj" . $class . 
"SearchResultTableGUI";
   173         if (class_exists($full_class)) {
   174             return new $full_class(
 
ilObjectDefinition $obj_definition
 
__construct(int $a_ref_id, object $a_parent_obj, string $a_parent_cmd)
 
ilGlobalTemplateInterface $tpl
 
static _lookupObjId(int $ref_id)
 
static http()
Fetches the global http state from ILIAS. 
 
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id 
 
static getSearchBlockHTML(string $a_title)