19 declare(strict_types=1);
33 private \ILIAS\HTTP\GlobalHttpState
$http;
45 $this->
http = $DIC->http();
51 $this->allow_moving =
false;
59 return self::$block_type;
83 $cmd = $ilCtrl->getCmd(
"getHTML");
85 switch ($next_class) {
96 $tpl =
new ilTemplate(
"tpl.search_search_block.html",
true,
true,
'components/ILIAS/Search');
98 $this->
lng->loadLanguageModule(
'search');
100 $tpl->
setVariable(
"TXT_SEARCH_INPUT_PERFORM_LABEL", $this->
lng->txt(
'search_field_perform'));
102 $tpl->
setVariable(
"FORMACTION", $this->
ctrl->getFormActionByClass(
'ilrepositoryobjectsearchgui',
'performSearch'));
104 $post_search_term =
'';
105 if ($this->
http->wrapper()->post()->has(
'search_term')) {
106 $post_search_term = $this->
http->wrapper()->post()->retrieve(
108 $this->
refinery->kindlyTo()->string()
get(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
setEnableNumInfo(bool $a_enablenuminfo)
static getScreenMode()
Get Screen Mode for current command.
ILIAS Refinery Factory $refinery
static string $block_type
ILIAS HTTP GlobalHttpState $http
getNextClass($a_gui_class=null)
static http()
Fetches the global http state from ILIAS.
setVariable($variable, $value='')
Sets a variable value.
__construct(Container $dic, ilPlugin $plugin)
setTitle(string $a_title)
This class represents a block method of a block.
__construct(string $a_title)