ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLuceneQueryInputGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
29{
30 public function checkInput(): bool
31 {
32 $ok = parent::checkInput();
33
34 $query = '';
35 if ($this->http->wrapper()->post()->has($this->getPostVar())) {
36 $query = $this->http->wrapper()->post()->retrieve(
37 $this->getPostVar(),
38 $this->refinery->kindlyTo()->string()
39 );
40 }
41 if (!$ok or !strlen($query)) {
42 return false;
43 }
44 try {
46 return true;
48 $this->setAlert($this->lng->txt($e->getMessage()));
49 return false;
50 }
51 }
52}
Lucene query input form gui.
checkInput()
Check input, strip slashes etc.
This class represents a text property in a property form.
static http()
Fetches the global http state from ILIAS.