ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct () | |
Constructor public. More... | |
executeCommand () | |
Control public. More... | |
setType (int $a_type) | |
Set/get type of search (detail or 'fast' search) public. More... | |
getType () | |
setCombination (string $a_combination) | |
Set/get combination of search ('and' or 'or') public. More... | |
getCombination () | |
setString (string $a_str) | |
Set/get search string public. More... | |
getString () | |
setDetails (array $a_details) | |
Set/get details (object types for details search) public. More... | |
getDetails () | |
getRootNode () | |
setRootNode (int $a_node_id) | |
remoteSearch () | |
autoComplete () | |
Data resource for autoComplete. More... | |
showSearch () | |
showSavedResults () | |
performSearch () | |
Perform search. More... | |
prepareOutput () | |
__parseQueryString () | |
parse query string, using query parser instance More... | |
__searchObjects (ilQueryParser $query_parser) | |
Search in obect title,desctiption. More... | |
parseCreationFilter (ilObjectSearch $search) | |
__searchMeta (ilQueryParser $query_parser, string $a_type) | |
Search in object meta data (keyword) More... | |
__getFilter () | |
Get object type for filter (If detail search is enabled) More... | |
![]() | |
__construct () | |
prepareOutput () | |
initStandardSearchForm (int $a_mode) | |
getSearchAreaForm () | |
handleCommand (string $a_cmd) | |
addToDeskObject () | |
Add desktop item public. More... | |
removeFromDeskObject () | |
Remove from desktop public. More... | |
delete () | |
Show delete confirmation. More... | |
cancelDelete () | |
Cancel delete. More... | |
cancelObject () | |
cancelMoveLinkObject () | |
performDelete () | |
cut () | |
link () | |
paste () | |
showLinkIntoMultipleObjectsTree () | |
showPasteTree () | |
showMoveIntoObjectTree () | |
performPasteIntoMultipleObjects () | |
clear () | |
clear clipboard More... | |
enableAdministrationPanel () | |
disableAdministrationPanel () | |
keepObjectsInClipboardObject () | |
addLocator () | |
autoComplete () | |
![]() | |
callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb) | |
Data Fields | |
int | $root_node |
string | $combination |
string | $string |
int | $type |
![]() | |
const | SEARCH_FAST = 1 |
const | SEARCH_DETAILS = 2 |
const | SEARCH_AND = 'and' |
const | SEARCH_OR = 'or' |
const | SEARCH_FORM_LUCENE = 1 |
const | SEARCH_FORM_STANDARD = 2 |
const | SEARCH_FORM_USER = 3 |
Protected Member Functions | |
storeRoot () | |
Store new root node. More... | |
__performDetailsSearch (ilQueryParser $query_parser, ilSearchResult $result) | |
parseDateFromCreationFilter () | |
parseOperatorFromCreationFilter () | |
![]() | |
initPageNumberFromQuery () | |
addPager ($result, string $a_session_key) | |
buildSearchAreaPath (int $a_root_node) | |
getCreationDateForm () | |
getSearchCache () | |
loadCreationFilter () | |
Protected Attributes | |
ilTabsGUI | $tabs_gui |
ilHelpGUI | $help_gui |
![]() | |
ilUserSearchCache | $search_cache |
string | $search_mode = '' |
ilSearchSettings | $settings |
ilPropertyFormGUI | $form = null |
ClipboardManager | $clipboard |
ViewManager | $container_view_manager |
ilFavouritesManager | $favourites |
ilCtrl | $ctrl |
ILIAS | $ilias |
ilLanguage | $lng |
ilGlobalTemplateInterface | $tpl |
ilLocatorGUI | $locator |
ilObjUser | $user |
ilTree | $tree |
GlobalHttpState | $http |
Factory | $refinery |
ilLogger | $logger |
string | $prev_link = '' |
string | $next_link = '' |
Private Attributes | |
array | $details |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilSearchGUI
GUI class for 'simple' search
Definition at line 35 of file class.ilSearchGUI.php.
ilSearchGUI::__construct | ( | ) |
Constructor public.
Definition at line 50 of file class.ilSearchGUI.php.
References $DIC, $type, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\form(), ilSession\get(), ilSearchSettings\getInstance(), ilSearchBaseGUI\getSearchCache(), ILIAS\FileDelivery\http(), ilSearchBaseGUI\initStandardSearchForm(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ilSearchBaseGUI\loadCreationFilter(), ilSearchSettings\OPERATOR_AND, ILIAS\Repository\refinery(), ROOT_FOLDER_ID, ilSearchBaseGUI\SEARCH_FAST, ilSearchBaseGUI\SEARCH_FORM_STANDARD, ilSession\set(), setCombination(), setDetails(), setString(), setType(), and ilUtil\stripSlashes().
ilSearchGUI::__getFilter | ( | ) |
Get object type for filter (If detail search is enabled)
Definition at line 718 of file class.ilSearchGUI.php.
References ILIAS\LTI\ToolProvider\$key, getDetails(), getType(), and ilSearchBaseGUI\SEARCH_DETAILS.
Referenced by __performDetailsSearch(), __searchMeta(), and __searchObjects().
ilSearchGUI::__parseQueryString | ( | ) |
parse query string, using query parser instance
Definition at line 614 of file class.ilSearchGUI.php.
References getCombination(), getString(), and ilUtil\stripSlashes().
Referenced by performSearch().
|
protected |
Definition at line 523 of file class.ilSearchGUI.php.
References ILIAS\LTI\ToolProvider\$enabled, __getFilter(), ilObjectSearchFactory\_getExerciseSearchInstance(), ilObjectSearchFactory\_getForumSearchInstance(), ilObjectSearchFactory\_getGlossaryDefinitionSearchInstance(), ilObjectSearchFactory\_getLMContentSearchInstance(), ilObjectSearchFactory\_getMediacastSearchInstance(), ilObjectSearchFactory\_getMediaPoolSearchInstance(), ilObjectSearchFactory\_getObjectSearchInstance(), ilObjectSearchFactory\_getTestSearchInstance(), ilObjectSearchFactory\_getWikiContentSearchInstance(), getDetails(), and ilSearchResult\mergeEntries().
Referenced by performSearch().
ilSearchGUI::__searchMeta | ( | ilQueryParser | $query_parser, |
string | $a_type | ||
) |
Search in object meta data (keyword)
Definition at line 689 of file class.ilSearchGUI.php.
References __getFilter(), ilObjectSearchFactory\_getMetaDataSearchInstance(), getType(), and ilSearchBaseGUI\SEARCH_DETAILS.
Referenced by performSearch().
ilSearchGUI::__searchObjects | ( | ilQueryParser | $query_parser | ) |
Search in obect title,desctiption.
Definition at line 628 of file class.ilSearchGUI.php.
References __getFilter(), ilObjectSearchFactory\_getObjectSearchInstance(), getType(), parseCreationFilter(), and ilSearchBaseGUI\SEARCH_DETAILS.
Referenced by performSearch().
ilSearchGUI::autoComplete | ( | ) |
Data resource for autoComplete.
Definition at line 284 of file class.ilSearchGUI.php.
References $query, $res, exit, ilSearchAutoComplete\getList(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
ilSearchGUI::executeCommand | ( | ) |
Control public.
Definition at line 144 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\$form, ILIAS\Repository\ctrl(), ilSearchBaseGUI\getSearchAreaForm(), ilSearchBaseGUI\handleCommand(), and prepareOutput().
ilSearchGUI::getCombination | ( | ) |
Definition at line 200 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\SEARCH_OR.
Referenced by __parseQueryString().
ilSearchGUI::getDetails | ( | ) |
Definition at line 228 of file class.ilSearchGUI.php.
Referenced by __getFilter(), __performDetailsSearch(), and performSearch().
ilSearchGUI::getRootNode | ( | ) |
Definition at line 234 of file class.ilSearchGUI.php.
References ROOT_FOLDER_ID.
Referenced by performSearch(), and showSavedResults().
ilSearchGUI::getString | ( | ) |
Definition at line 214 of file class.ilSearchGUI.php.
References $string.
Referenced by __parseQueryString(), and showSearch().
ilSearchGUI::getType | ( | ) |
Definition at line 186 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\SEARCH_FAST.
Referenced by __getFilter(), __searchMeta(), __searchObjects(), and performSearch().
ilSearchGUI::parseCreationFilter | ( | ilObjectSearch | $search | ) |
Definition at line 638 of file class.ilSearchGUI.php.
References parseDateFromCreationFilter(), parseOperatorFromCreationFilter(), ilObjectSearch\setCreationDateFilterDate(), and ilObjectSearch\setCreationDateFilterOperator().
Referenced by __searchObjects().
|
protected |
Definition at line 652 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\getSearchCache(), and IL_CAL_UNIX.
Referenced by parseCreationFilter(), and performSearch().
|
protected |
Definition at line 661 of file class.ilSearchGUI.php.
References ilObjectSearch\CDATE_OPERATOR_AFTER, ilObjectSearch\CDATE_OPERATOR_BEFORE, ilObjectSearch\CDATE_OPERATOR_ON, and ilSearchBaseGUI\getSearchCache().
Referenced by parseCreationFilter(), and performSearch().
ilSearchGUI::performSearch | ( | ) |
Perform search.
Definition at line 413 of file class.ilSearchGUI.php.
References __parseQueryString(), __performDetailsSearch(), __searchMeta(), __searchObjects(), ilSearchBaseGUI\addPager(), ilSession\clear(), getDetails(), ilSearchSettings\getInstance(), getRootNode(), getType(), ilSearchBaseGUI\initPageNumberFromQuery(), ILIAS\Repository\lng(), ilSearchResultPresentation\MODE_STANDARD, ilSearchSettings\OPERATOR_AND, parseDateFromCreationFilter(), parseOperatorFromCreationFilter(), ilSearchResult\read(), ilSearchBaseGUI\SEARCH_DETAILS, showSearch(), and ILIAS\Repository\user().
Referenced by remoteSearch(), and storeRoot().
ilSearchGUI::prepareOutput | ( | ) |
Definition at line 500 of file class.ilSearchGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\settings().
Referenced by executeCommand().
ilSearchGUI::remoteSearch | ( | ) |
Definition at line 245 of file class.ilSearchGUI.php.
References ILIAS\FileDelivery\http(), performSearch(), ILIAS\Repository\refinery(), setRootNode(), and setString().
ilSearchGUI::setCombination | ( | string | $a_combination | ) |
Set/get combination of search ('and' or 'or') public.
Definition at line 194 of file class.ilSearchGUI.php.
References ilSession\get(), and ilSession\set().
Referenced by __construct().
ilSearchGUI::setDetails | ( | array | $a_details | ) |
Set/get details (object types for details search) public.
Definition at line 222 of file class.ilSearchGUI.php.
References ilSession\get(), and ilSession\set().
Referenced by __construct().
ilSearchGUI::setRootNode | ( | int | $a_node_id | ) |
Definition at line 239 of file class.ilSearchGUI.php.
References ilSession\set().
Referenced by remoteSearch().
ilSearchGUI::setString | ( | string | $a_str | ) |
Set/get search string public.
Definition at line 208 of file class.ilSearchGUI.php.
References ilSession\get(), and ilSession\set().
Referenced by __construct(), and remoteSearch().
ilSearchGUI::setType | ( | int | $a_type | ) |
Set/get type of search (detail or 'fast' search) public.
Definition at line 179 of file class.ilSearchGUI.php.
References ilSession\get(), and ilSession\set().
Referenced by __construct().
ilSearchGUI::showSavedResults | ( | ) |
Definition at line 382 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\addPager(), getRootNode(), ilSearchResultPresentation\MODE_STANDARD, ilSearchResult\read(), showSearch(), and ILIAS\Repository\user().
ilSearchGUI::showSearch | ( | ) |
Definition at line 337 of file class.ilSearchGUI.php.
References ilGlyphGUI\CARET, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilGlyphGUI\get(), ilSearchBaseGUI\getCreationDateForm(), ilSubmitButton\getInstance(), ilSearchSettings\getInstance(), ilSearchBaseGUI\getSearchAreaForm(), getString(), ilSearchBaseGUI\initStandardSearchForm(), ILIAS\Repository\lng(), ilSearchSettings\OPERATOR_AND, ilLegacyFormElementsUtil\prepareFormOutput(), and ilSearchBaseGUI\SEARCH_FORM_STANDARD.
Referenced by performSearch(), and showSavedResults().
|
protected |
Store new root node.
Definition at line 269 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\$form, ilPropertyFormGUI\getItemByPostVar(), ilSearchBaseGUI\getSearchAreaForm(), performSearch(), and ilSubItemListGUI\resetDetails().
string ilSearchGUI::$combination |
Definition at line 39 of file class.ilSearchGUI.php.
|
private |
Definition at line 37 of file class.ilSearchGUI.php.
|
protected |
Definition at line 44 of file class.ilSearchGUI.php.
int ilSearchGUI::$root_node |
Definition at line 38 of file class.ilSearchGUI.php.
string ilSearchGUI::$string |
Definition at line 40 of file class.ilSearchGUI.php.
Referenced by getString().
|
protected |
Definition at line 43 of file class.ilSearchGUI.php.
int ilSearchGUI::$type |
Definition at line 41 of file class.ilSearchGUI.php.
Referenced by __construct().