ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Search\ObjGUI\Readme\Helper Class Reference
+ Collaboration diagram for ILIAS\Search\ObjGUI\Readme\Helper:

Public Member Functions

 __construct (protected ilCtrlInterface $ctrl, protected ilLanguage $lng, protected UIFactory $ui_factory)
 
 getServerErrorMessageBox (string $error)
 
 getServerInfoMessageBox ()
 

Protected Member Functions

 buildDeliverFileLink ()
 

Detailed Description

Definition at line 30 of file Helper.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Search\ObjGUI\Readme\Helper::__construct ( protected ilCtrlInterface  $ctrl,
protected ilLanguage  $lng,
protected UIFactory  $ui_factory 
)

Definition at line 32 of file Helper.php.

36 {
37 }

Member Function Documentation

◆ buildDeliverFileLink()

ILIAS\Search\ObjGUI\Readme\Helper::buildDeliverFileLink ( )
protected

Definition at line 53 of file Helper.php.

53 : Link
54 {
55 $view_url = $this->ctrl->getLinkTargetByClass(
56 ilObjSearchSettingsReadmeGUI::class,
57 'deliverFile'
58 );
59 return $this->ui_factory->link()->standard(
60 $this->lng->txt('search_readme_file'),
61 $view_url
62 )->withOpenInNewViewport(true);
63 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by ILIAS\Search\ObjGUI\Readme\Helper\getServerErrorMessageBox(), and ILIAS\Search\ObjGUI\Readme\Helper\getServerInfoMessageBox().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getServerErrorMessageBox()

ILIAS\Search\ObjGUI\Readme\Helper::getServerErrorMessageBox ( string  $error)

Definition at line 39 of file Helper.php.

39 : MessageBox
40 {
41 return $this->ui_factory->messageBox()->failure(
42 $error . '<br/>' . $this->lng->txt('search_server_further_information')
43 )->withLinks([$this->buildDeliverFileLink()]);
44 }
ilErrorHandling $error
Definition: class.ilias.php:69

References ILIAS\$error, ILIAS\Search\ObjGUI\Readme\Helper\buildDeliverFileLink(), ILIAS\Repository\lng(), and ILIAS\UI\Component\MessageBox\MessageBox\withLinks().

+ Here is the call graph for this function:

◆ getServerInfoMessageBox()

ILIAS\Search\ObjGUI\Readme\Helper::getServerInfoMessageBox ( )

Definition at line 46 of file Helper.php.

46 : MessageBox
47 {
48 return $this->ui_factory->messageBox()->info(
49 $this->lng->txt('search_server_further_information')
50 )->withLinks([$this->buildDeliverFileLink()]);
51 }

References ILIAS\Search\ObjGUI\Readme\Helper\buildDeliverFileLink(), ILIAS\Repository\lng(), and ILIAS\UI\Component\MessageBox\MessageBox\withLinks().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: