ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ILIAS\Search\GUI\ActionsImpl Class Reference
+ Inheritance diagram for ILIAS\Search\GUI\ActionsImpl:
+ Collaboration diagram for ILIAS\Search\GUI\ActionsImpl:

Public Member Functions

 __construct (protected ilCtrlInterface $ctrl, protected DataFactory $data_factory)
 
 search ()
 
 remoteSearch ()
 
 showSavedResults ()
 
 applyFilter ()
 
 switchResultPage (Sortation $sortation)
 
 sortResultPage ()
 
 autoComplete ()
 
 isValidCommand (string $cmd)
 
 search ()
 
 remoteSearch ()
 
 showSavedResults ()
 
 applyFilter ()
 
 switchResultPage (Sortation $sortation)
 
 sortResultPage ()
 
 autoComplete ()
 
 isValidCommand (string $cmd)
 

Protected Member Functions

 ctrlToURI (string $ctrl_target)
 

Protected Attributes

const string SEARCH_CMD = 'search'
 
const string REMOTE_SEARCH_CMD = 'remoteSearch'
 
const string SHOW_SAVED_RESULTS_CMD = 'showSavedResults'
 
const string APPLY_FILTER_CMD = 'applyFilter'
 
const string SWITCH_RESULT_PAGE_CMD = 'switchResultPage'
 
const string SORT_RESULT_PAGE_CMD = 'sortResultPage'
 
const string AUTO_COMPLETE_CMD = 'autoComplete'
 

Detailed Description

Definition at line 29 of file ActionsImpl.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Search\GUI\ActionsImpl::__construct ( protected ilCtrlInterface  $ctrl,
protected DataFactory  $data_factory 
)

Definition at line 39 of file ActionsImpl.php.

42 {
43 }

Member Function Documentation

◆ applyFilter()

ILIAS\Search\GUI\ActionsImpl::applyFilter ( )

Implements ILIAS\Search\GUI\Actions.

Definition at line 72 of file ActionsImpl.php.

72 : URI
73 {
74 $ctrl_target = $this->ctrl->getLinkTargetByClass(
75 ilSearchGUI::class,
76 self::APPLY_FILTER_CMD
77 );
78 return $this->ctrlToURI($ctrl_target);
79 }
ctrlToURI(string $ctrl_target)

References ILIAS\Repository\ctrl(), and ILIAS\Search\GUI\ActionsImpl\ctrlToURI().

+ Here is the call graph for this function:

◆ autoComplete()

ILIAS\Search\GUI\ActionsImpl::autoComplete ( )

Implements ILIAS\Search\GUI\Actions.

Definition at line 101 of file ActionsImpl.php.

101 : URI
102 {
103 $ctrl_target = $this->ctrl->getLinkTargetByClass(
104 ilSearchGUI::class,
105 self::AUTO_COMPLETE_CMD,
106 null,
107 true
108 );
109 return $this->ctrlToURI($ctrl_target);
110 }

References ILIAS\Repository\ctrl(), and ILIAS\Search\GUI\ActionsImpl\ctrlToURI().

+ Here is the call graph for this function:

◆ ctrlToURI()

ILIAS\Search\GUI\ActionsImpl::ctrlToURI ( string  $ctrl_target)
protected

Definition at line 125 of file ActionsImpl.php.

125 : URI
126 {
127 return $this->data_factory->uri(
128 rtrim(ILIAS_HTTP_PATH, '/') . '/' . $ctrl_target
129 );
130 }

Referenced by ILIAS\Search\GUI\ActionsImpl\applyFilter(), ILIAS\Search\GUI\ActionsImpl\autoComplete(), ILIAS\Search\GUI\ActionsImpl\remoteSearch(), ILIAS\Search\GUI\ActionsImpl\search(), ILIAS\Search\GUI\ActionsImpl\showSavedResults(), ILIAS\Search\GUI\ActionsImpl\sortResultPage(), and ILIAS\Search\GUI\ActionsImpl\switchResultPage().

+ Here is the caller graph for this function:

◆ isValidCommand()

ILIAS\Search\GUI\ActionsImpl::isValidCommand ( string  $cmd)

Implements ILIAS\Search\GUI\Actions.

Definition at line 112 of file ActionsImpl.php.

112 : bool
113 {
114 return in_array($cmd, [
115 self::SEARCH_CMD,
116 self::REMOTE_SEARCH_CMD,
117 self::SHOW_SAVED_RESULTS_CMD,
118 self::APPLY_FILTER_CMD,
119 self::SWITCH_RESULT_PAGE_CMD,
120 self::SORT_RESULT_PAGE_CMD,
121 self::AUTO_COMPLETE_CMD
122 ]);
123 }

◆ remoteSearch()

ILIAS\Search\GUI\ActionsImpl::remoteSearch ( )

Implements ILIAS\Search\GUI\Actions.

Definition at line 54 of file ActionsImpl.php.

54 : URI
55 {
56 $ctrl_target = $this->ctrl->getLinkTargetByClass(
57 ilSearchGUI::class,
58 self::REMOTE_SEARCH_CMD
59 );
60 return $this->ctrlToURI($ctrl_target);
61 }

References ILIAS\Repository\ctrl(), and ILIAS\Search\GUI\ActionsImpl\ctrlToURI().

+ Here is the call graph for this function:

◆ search()

ILIAS\Search\GUI\ActionsImpl::search ( )

Implements ILIAS\Search\GUI\Actions.

Definition at line 45 of file ActionsImpl.php.

45 : URI
46 {
47 $ctrl_target = $this->ctrl->getLinkTargetByClass(
48 ilSearchGUI::class,
49 self::SEARCH_CMD
50 );
51 return $this->ctrlToURI($ctrl_target);
52 }

References ILIAS\Repository\ctrl(), and ILIAS\Search\GUI\ActionsImpl\ctrlToURI().

+ Here is the call graph for this function:

◆ showSavedResults()

ILIAS\Search\GUI\ActionsImpl::showSavedResults ( )

Implements ILIAS\Search\GUI\Actions.

Definition at line 63 of file ActionsImpl.php.

63 : URI
64 {
65 $ctrl_target = $this->ctrl->getLinkTargetByClass(
66 ilSearchGUI::class,
67 self::SHOW_SAVED_RESULTS_CMD
68 );
69 return $this->ctrlToURI($ctrl_target);
70 }

References ILIAS\Repository\ctrl(), and ILIAS\Search\GUI\ActionsImpl\ctrlToURI().

+ Here is the call graph for this function:

◆ sortResultPage()

ILIAS\Search\GUI\ActionsImpl::sortResultPage ( )

Implements ILIAS\Search\GUI\Actions.

Definition at line 92 of file ActionsImpl.php.

92 : URI
93 {
94 $ctrl_target = $this->ctrl->getLinkTargetByClass(
95 ilSearchGUI::class,
96 self::SORT_RESULT_PAGE_CMD
97 );
98 return $this->ctrlToURI($ctrl_target);
99 }

References ILIAS\Repository\ctrl(), and ILIAS\Search\GUI\ActionsImpl\ctrlToURI().

+ Here is the call graph for this function:

◆ switchResultPage()

ILIAS\Search\GUI\ActionsImpl::switchResultPage ( Sortation  $sortation)

Implements ILIAS\Search\GUI\Actions.

Definition at line 81 of file ActionsImpl.php.

81 : URI
82 {
83 $this->ctrl->setParameterByClass(ilSearchGUI::class, Param::SORTATION->value, $sortation->value);
84 $ctrl_target = $this->ctrl->getLinkTargetByClass(
85 ilSearchGUI::class,
86 self::SWITCH_RESULT_PAGE_CMD
87 );
88 $this->ctrl->clearParameterByClass(ilSearchGUI::class, Param::SORTATION->value);
89 return $this->ctrlToURI($ctrl_target);
90 }

References ILIAS\Repository\ctrl(), and ILIAS\Search\GUI\ActionsImpl\ctrlToURI().

+ Here is the call graph for this function:

Field Documentation

◆ APPLY_FILTER_CMD

const string ILIAS\Search\GUI\ActionsImpl::APPLY_FILTER_CMD = 'applyFilter'
protected

Definition at line 34 of file ActionsImpl.php.

◆ AUTO_COMPLETE_CMD

const string ILIAS\Search\GUI\ActionsImpl::AUTO_COMPLETE_CMD = 'autoComplete'
protected

Definition at line 37 of file ActionsImpl.php.

◆ REMOTE_SEARCH_CMD

const string ILIAS\Search\GUI\ActionsImpl::REMOTE_SEARCH_CMD = 'remoteSearch'
protected

Definition at line 32 of file ActionsImpl.php.

◆ SEARCH_CMD

const string ILIAS\Search\GUI\ActionsImpl::SEARCH_CMD = 'search'
protected

Definition at line 31 of file ActionsImpl.php.

◆ SHOW_SAVED_RESULTS_CMD

const string ILIAS\Search\GUI\ActionsImpl::SHOW_SAVED_RESULTS_CMD = 'showSavedResults'
protected

Definition at line 33 of file ActionsImpl.php.

◆ SORT_RESULT_PAGE_CMD

const string ILIAS\Search\GUI\ActionsImpl::SORT_RESULT_PAGE_CMD = 'sortResultPage'
protected

Definition at line 36 of file ActionsImpl.php.

◆ SWITCH_RESULT_PAGE_CMD

const string ILIAS\Search\GUI\ActionsImpl::SWITCH_RESULT_PAGE_CMD = 'switchResultPage'
protected

Definition at line 35 of file ActionsImpl.php.


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