ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilSearchGUI. More...
Public Member Functions | |
__construct () | |
Constructor public. More... | |
executeCommand () | |
Control public. More... | |
setType ($a_type) | |
Set/get type of search (detail or 'fast' search) public. More... | |
getType () | |
setCombination ($a_combination) | |
Set/get combination of search ('and' or 'or') public. More... | |
getCombination () | |
setString ($a_str) | |
Set/get search string public. More... | |
getString () | |
setDetails ($a_details) | |
Set/get details (object types for details search) public. More... | |
getDetails () | |
getRootNode () | |
setRootNode ($a_node_id) | |
remoteSearch () | |
autoComplete () | |
Data resource for autoComplete. More... | |
showSearch () | |
showSavedResults () | |
performSearch () | |
Perform search. More... | |
prepareOutput () | |
& | __performDetailsSearch (&$query_parser, &$result) |
& | __parseQueryString () |
parse query string, using query parser instance More... | |
& | __searchObjects (&$query_parser) |
Search in obect title,desctiption. More... | |
parseCreationFilter (ilObjectSearch $search) | |
& | __searchMeta (&$query_parser, $a_type) |
Search in object meta data (keyword) More... | |
__getFilter () | |
Get object type for filter (If detail search is enabled) More... | |
Public Member Functions inherited from ilSearchBaseGUI | |
__construct () | |
Constructor public. More... | |
prepareOutput () | |
initStandardSearchForm ($a_mode) | |
Init standard search form. More... | |
getSearchAreaForm () | |
Init standard search form. More... | |
handleCommand ($a_cmd) | |
Handle command. More... | |
addToDeskObject () | |
Interface methods. More... | |
removeFromDeskObject () | |
Remove from dektop. More... | |
delete () | |
Show deletion screen. More... | |
cancelDelete () | |
Cancel delete. More... | |
cancelMoveLinkObject () | |
Cancel move/link. More... | |
performDelete () | |
Delete objects. More... | |
cut () | |
Interface ilAdministrationCommandHandler. More... | |
link () | |
Interface ilAdministrationCommandHandler. More... | |
paste () | |
Paste. More... | |
showLinkIntoMultipleObjectsTree () | |
Target selection link. More... | |
showPasteTree () | |
Target selection cut. More... | |
performPasteIntoMultipleObjects () | |
Perform paste into multiple objects. More... | |
clear () | |
clear clipboard More... | |
enableAdministrationPanel () | |
Enable administration panel. More... | |
disableAdministrationPanel () | |
Disable administration panel. More... | |
keepObjectsInClipboardObject () | |
cancel action but keep objects in clipboard
| |
addLocator () | |
Add Locator. More... | |
autoComplete () | |
Data resource for autoComplete. More... | |
Data Fields | |
$root_node | |
$combination | |
$string | |
$type | |
Data Fields inherited from ilSearchBaseGUI | |
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 |
$ilias = null | |
$lng = null | |
$tpl = null | |
Protected Member Functions | |
storeRoot () | |
Store new root node. More... | |
initUserSearchCache () | |
Init user search cache. More... | |
Protected Member Functions inherited from ilSearchBaseGUI | |
addPager ($result, $a_session_key) | |
Add Pager. More... | |
buildSearchAreaPath ($a_root_node) | |
Build path for search area. More... | |
getCreationDateForm () | |
getSearchCache () | |
Get user search cache. More... | |
loadCreationFilter () | |
Load creation date filter. More... | |
Protected Attributes | |
$search_cache = null | |
Protected Attributes inherited from ilSearchBaseGUI | |
$settings = null | |
$ctrl = null | |
Class ilSearchGUI.
GUI class for 'simple' search
Definition at line 22 of file class.ilSearchGUI.php.
ilSearchGUI::__construct | ( | ) |
Constructor public.
Definition at line 36 of file class.ilSearchGUI.php.
References $_POST, $_SESSION, $DIC, $ilUser, ilSearchBaseGUI\$lng, $type, ilSearchSettings\getInstance(), ilSearchBaseGUI\initStandardSearchForm(), ilSearchBaseGUI\SEARCH_FORM_STANDARD, setCombination(), setDetails(), setString(), and setType().
ilSearchGUI::__getFilter | ( | ) |
Get object type for filter (If detail search is enabled)
Definition at line 645 of file class.ilSearchGUI.php.
References $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 549 of file class.ilSearchGUI.php.
References getCombination(), getString(), and ilUtil\stripSlashes().
Referenced by performSearch().
& ilSearchGUI::__performDetailsSearch | ( | & | $query_parser, |
& | $result | ||
) |
Definition at line 457 of file class.ilSearchGUI.php.
References $result, $type, __getFilter(), ilObjectSearchFactory\_getExerciseSearchInstance(), ilObjectSearchFactory\_getForumSearchInstance(), ilObjectSearchFactory\_getGlossaryDefinitionSearchInstance(), ilObjectSearchFactory\_getLMContentSearchInstance(), ilObjectSearchFactory\_getMediaPoolSearchInstance(), ilObjectSearchFactory\_getObjectSearchInstance(), ilObjectSearchFactory\_getTestSearchInstance(), ilObjectSearchFactory\_getWikiContentSearchInstance(), and getDetails().
Referenced by performSearch().
& ilSearchGUI::__searchMeta | ( | & | $query_parser, |
$a_type | |||
) |
Search in object meta data (keyword)
Definition at line 613 of file class.ilSearchGUI.php.
References $a_type, __getFilter(), ilObjectSearchFactory\_getMetaDataSearchInstance(), getType(), and ilSearchBaseGUI\SEARCH_DETAILS.
Referenced by performSearch().
& ilSearchGUI::__searchObjects | ( | & | $query_parser | ) |
Search in obect title,desctiption.
Definition at line 567 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 205 of file class.ilSearchGUI.php.
References $list, $res, ilLogLevel\DEBUG, exit, ilSearchAutoComplete\getList(), and ilLoggerFactory\getLogger().
ilSearchGUI::executeCommand | ( | ) |
Control public.
Definition at line 77 of file class.ilSearchGUI.php.
References $DIC, $form, $ilCtrl, ilSearchBaseGUI\getSearchAreaForm(), ilSearchBaseGUI\handleCommand(), initUserSearchCache(), and prepareOutput().
ilSearchGUI::getCombination | ( | ) |
Definition at line 137 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\SEARCH_OR.
Referenced by __parseQueryString().
ilSearchGUI::getDetails | ( | ) |
Definition at line 161 of file class.ilSearchGUI.php.
Referenced by __getFilter(), __performDetailsSearch(), and performSearch().
ilSearchGUI::getRootNode | ( | ) |
Definition at line 167 of file class.ilSearchGUI.php.
Referenced by performSearch(), and showSavedResults().
ilSearchGUI::getString | ( | ) |
Definition at line 149 of file class.ilSearchGUI.php.
References $string.
Referenced by __parseQueryString(), and showSearch().
ilSearchGUI::getType | ( | ) |
Definition at line 125 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\SEARCH_FAST.
Referenced by __getFilter(), __searchMeta(), __searchObjects(), and performSearch().
|
protected |
Init user search cache.
private
Definition at line 715 of file class.ilSearchGUI.php.
References $_GET, $_POST, $DIC, $ilUser, ilUserSearchCache\_getInstance(), ilUserSearchCache\DEFAULT_SEARCH, ilSearchBaseGUI\loadCreationFilter(), and ilUtil\stripSlashes().
Referenced by executeCommand().
ilSearchGUI::parseCreationFilter | ( | ilObjectSearch | $search | ) |
Definition at line 580 of file class.ilSearchGUI.php.
References PHPMailer\PHPMailer\$options, ilObjectSearch\CDATE_OPERATOR_AFTER, ilObjectSearch\CDATE_OPERATOR_BEFORE, ilObjectSearch\CDATE_OPERATOR_ON, ilSearchBaseGUI\getSearchCache(), IL_CAL_UNIX, ilObjectSearch\setCreationDateFilterDate(), and ilObjectSearch\setCreationDateFilterOperator().
Referenced by __searchObjects().
ilSearchGUI::performSearch | ( | ) |
Perform search.
Definition at line 340 of file class.ilSearchGUI.php.
References $_GET, $_SESSION, $DIC, $ilUser, $result, __parseQueryString(), __performDetailsSearch(), __searchMeta(), __searchObjects(), ilSearchBaseGUI\addPager(), getDetails(), getRootNode(), getType(), ilSearchResultPresentation\MODE_STANDARD, ilSearchResult\read(), ilSearchBaseGUI\SEARCH_DETAILS, ilUtil\sendInfo(), and showSearch().
Referenced by remoteSearch(), and storeRoot().
ilSearchGUI::prepareOutput | ( | ) |
Definition at line 428 of file class.ilSearchGUI.php.
References $DIC, and settings().
Referenced by executeCommand().
ilSearchGUI::remoteSearch | ( | ) |
Definition at line 177 of file class.ilSearchGUI.php.
References $_POST, performSearch(), setRootNode(), setString(), and ilUtil\stripSlashes().
ilSearchGUI::setCombination | ( | $a_combination | ) |
Set/get combination of search ('and' or 'or') public.
Definition at line 133 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by __construct().
ilSearchGUI::setDetails | ( | $a_details | ) |
Set/get details (object types for details search) public.
Definition at line 157 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by __construct().
ilSearchGUI::setRootNode | ( | $a_node_id | ) |
Definition at line 171 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by remoteSearch().
ilSearchGUI::setString | ( | $a_str | ) |
Set/get search string public.
Definition at line 145 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by __construct(), and remoteSearch().
ilSearchGUI::setType | ( | $a_type | ) |
Set/get type of search (detail or 'fast' search) public.
Definition at line 121 of file class.ilSearchGUI.php.
References $_SESSION, and $a_type.
Referenced by __construct().
ilSearchGUI::showSavedResults | ( | ) |
Definition at line 301 of file class.ilSearchGUI.php.
References $DIC, $ilUser, ilSearchBaseGUI\addPager(), getRootNode(), ilSearchResultPresentation\MODE_STANDARD, ilSearchResult\read(), and showSearch().
ilSearchGUI::showSearch | ( | ) |
Definition at line 244 of file class.ilSearchGUI.php.
References $DIC, $ilCtrl, ilSearchBaseGUI\$lng, ilGlyphGUI\CARET, ilGlyphGUI\get(), ilSearchBaseGUI\getCreationDateForm(), ilSubmitButton\getInstance(), ilSearchSettings\getInstance(), ilSearchBaseGUI\getSearchAreaForm(), getString(), ilOverlayGUI\initJavascript(), ilSearchBaseGUI\initStandardSearchForm(), ilSearchSettings\OPERATOR_AND, ilUtil\prepareFormOutput(), and ilSearchBaseGUI\SEARCH_FORM_STANDARD.
Referenced by performSearch(), and showSavedResults().
|
protected |
Store new root node.
Definition at line 187 of file class.ilSearchGUI.php.
References $form, ilSearchBaseGUI\getSearchAreaForm(), performSearch(), and ilSubItemListGUI\resetDetails().
ilSearchGUI::$combination |
Definition at line 27 of file class.ilSearchGUI.php.
ilSearchGUI::$root_node |
Definition at line 26 of file class.ilSearchGUI.php.
|
protected |
Definition at line 24 of file class.ilSearchGUI.php.
ilSearchGUI::$string |
Definition at line 28 of file class.ilSearchGUI.php.
Referenced by getString().
ilSearchGUI::$type |
Definition at line 29 of file class.ilSearchGUI.php.
Referenced by __construct(), and __performDetailsSearch().