ILIAS
eassessment Revision 61809
|
Class ilSearchGUI. More...
Public Member Functions | |
ilSearchGUI () | |
Constructor public. | |
setType ($a_type) | |
Set/get type of search (detail or 'fast' search) public. | |
getType () | |
setCombination ($a_combination) | |
Set/get combination of search ('and' or 'or') public. | |
getCombination () | |
setString ($a_str) | |
Set/get search string public. | |
getString () | |
setDetails ($a_details) | |
Set/get details (object types for details search) public. | |
getDetails () | |
getRootNode () | |
setRootNode ($a_node_id) | |
& | executeCommand () |
Control public. | |
remoteSearch () | |
autoComplete () | |
Data resource for autoComplete. | |
showSearch () | |
showSelectRoot () | |
selectRoot () | |
initStandardSearchForm () | |
Init standard search form. | |
showSavedResults () | |
searchInResults () | |
performSearch () | |
Perform search. | |
prepareOutput () | |
& | __performDetailsSearch (&$query_parser, &$result) |
& | __parseQueryString () |
parse query string, using query parser instance | |
& | __searchObjects (&$query_parser) |
Search in obect title,desctiption. | |
& | __searchMeta (&$query_parser, $a_type) |
Search in object meta data (keyword) | |
__getFilter () | |
Get object type for filter (If detail search is enabled) | |
Public Member Functions inherited from ilSearchBaseGUI | |
ilSearchBaseGUI () | |
Constructor public. | |
handleCommand ($a_cmd) | |
addToDeskObject () | |
Interface methods. | |
removeFromDeskObject () | |
Remove from dektop. | |
delete () | |
Show deletion screen. | |
cancelDelete () | |
Cancel delete. | |
performDelete () | |
Delete objects. | |
cut () | |
Interface ilAdministrationCommandHandler. | |
link () | |
Interface ilAdministrationCommandHandler. | |
paste () | |
Paste. | |
showLinkIntoMultipleObjectsTree () | |
Target selection link. | |
showMoveIntoObjectTree () | |
Target selection cut. | |
performPasteIntoMultipleObjects () | |
Perform paste into multiple objects. | |
clear () | |
clear clipboard | |
enableAdministrationPanel () | |
Enable administration panel. | |
disableAdministrationPanel () | |
Disable administration panel. | |
addLocator () | |
Add Locator. |
Data Fields | |
$root_node | |
$combination | |
$string | |
$type | |
Data Fields inherited from ilSearchBaseGUI | |
$settings = null | |
$ilias = null | |
$lng = null | |
$tpl = null |
Protected Member Functions | |
initUserSearchCache () | |
Init user search cache. | |
Protected Member Functions inherited from ilSearchBaseGUI | |
addPager ($result, $a_session_key) | |
Add Pager. | |
buildSearchAreaPath ($a_root_node) | |
Build path for search area. |
Protected Attributes | |
$search_cache = null | |
Protected Attributes inherited from ilSearchBaseGUI | |
$ctrl = null |
Class ilSearchGUI.
GUI class for 'simple' search
ilSearchGUI: ilPropertyFormGUI ilSearchGUI: ilObjectGUI, ilContainerGUI ilSearchGUI: ilObjCategoryGUI, ilObjCourseGUI, ilObjFolderGUI, ilObjGroupGUI ilSearchGUI: ilObjRootFolderGUIGUI, ilObjectCopyGUI
Definition at line 26 of file class.ilSearchGUI.php.
ilSearchGUI::__getFilter | ( | ) |
Get object type for filter (If detail search is enabled)
Definition at line 627 of file class.ilSearchGUI.php.
References getDetails(), getType(), and SEARCH_DETAILS.
Referenced by __performDetailsSearch(), __searchMeta(), and __searchObjects().
& ilSearchGUI::__parseQueryString | ( | ) |
parse query string, using query parser instance
Definition at line 556 of file class.ilSearchGUI.php.
References getCombination(), getString(), and ilUtil\stripSlashes().
Referenced by performSearch().
& ilSearchGUI::__performDetailsSearch | ( | & | $query_parser, |
& | $result | ||
) |
Definition at line 490 of file class.ilSearchGUI.php.
References $type, __getFilter(), ilObjectSearchFactory\_getExerciseSearchInstance(), ilObjectSearchFactory\_getGlossaryDefinitionSearchInstance(), ilObjectSearchFactory\_getLMContentSearchInstance(), ilObjectSearchFactory\_getMediaPoolSearchInstance(), ilObjectSearchFactory\_getTestSearchInstance(), and getDetails().
Referenced by performSearch().
& ilSearchGUI::__searchMeta | ( | & | $query_parser, |
$a_type | |||
) |
Search in object meta data (keyword)
Definition at line 593 of file class.ilSearchGUI.php.
References __getFilter(), ilObjectSearchFactory\_getMetaDataSearchInstance(), getType(), and SEARCH_DETAILS.
Referenced by performSearch().
& ilSearchGUI::__searchObjects | ( | & | $query_parser | ) |
Search in obect title,desctiption.
Definition at line 575 of file class.ilSearchGUI.php.
References __getFilter(), ilObjectSearchFactory\_getObjectSearchInstance(), getType(), and SEARCH_DETAILS.
Referenced by performSearch().
ilSearchGUI::autoComplete | ( | ) |
Data resource for autoComplete.
Reimplemented from ilSearchBaseGUI.
Definition at line 194 of file class.ilSearchGUI.php.
References $_REQUEST, exit, and ilSearchAutoComplete\getList().
& ilSearchGUI::executeCommand | ( | ) |
Control public.
Definition at line 146 of file class.ilSearchGUI.php.
References $cmd, $ilCtrl, ilSearchBaseGUI\handleCommand(), initStandardSearchForm(), initUserSearchCache(), and prepareOutput().
ilSearchGUI::getCombination | ( | ) |
Definition at line 103 of file class.ilSearchGUI.php.
References SEARCH_OR.
Referenced by __parseQueryString(), and initStandardSearchForm().
ilSearchGUI::getDetails | ( | ) |
Definition at line 127 of file class.ilSearchGUI.php.
Referenced by __getFilter(), __performDetailsSearch(), initStandardSearchForm(), and performSearch().
ilSearchGUI::getRootNode | ( | ) |
Definition at line 133 of file class.ilSearchGUI.php.
Referenced by performSearch(), and showSavedResults().
ilSearchGUI::getString | ( | ) |
Definition at line 115 of file class.ilSearchGUI.php.
References $string.
Referenced by __parseQueryString(), and initStandardSearchForm().
ilSearchGUI::getType | ( | ) |
Definition at line 91 of file class.ilSearchGUI.php.
References SEARCH_FAST.
Referenced by __getFilter(), __searchMeta(), __searchObjects(), initStandardSearchForm(), and performSearch().
ilSearchGUI::ilSearchGUI | ( | ) |
Constructor public.
Definition at line 40 of file class.ilSearchGUI.php.
References $_POST, $_SESSION, ilSearchBaseGUI\$lng, $t, ilSearchBaseGUI\ilSearchBaseGUI(), initStandardSearchForm(), setCombination(), setDetails(), setString(), and setType().
ilSearchGUI::initStandardSearchForm | ( | ) |
Init standard search form.
Definition at line 248 of file class.ilSearchGUI.php.
References $ilCtrl, ilSearchBaseGUI\$lng, $t, getCombination(), getDetails(), getString(), getType(), SEARCH_AND, SEARCH_DETAILS, SEARCH_FAST, ilTextInputGUI\setMaxLength(), ilRepositorySelectorInputGUI\setSelectText(), and ilRadioGroupInputGUI\setValue().
Referenced by executeCommand(), ilSearchGUI(), and showSearch().
|
protected |
Init user search cache.
private
Definition at line 691 of file class.ilSearchGUI.php.
References $_GET, $_POST, ilUserSearchCache\_getInstance(), ilUserSearchCache\DEFAULT_SEARCH, and ilUtil\stripSlashes().
Referenced by executeCommand().
ilSearchGUI::performSearch | ( | ) |
Perform search.
Definition at line 363 of file class.ilSearchGUI.php.
References $_GET, $_SESSION, __parseQueryString(), __performDetailsSearch(), __searchMeta(), __searchObjects(), ilSearchBaseGUI\addPager(), getDetails(), getRootNode(), getType(), ilSearchResultPresentation\MODE_STANDARD, ilSearchResult\read(), SEARCH_DETAILS, ilUtil\sendInfo(), and showSearch().
Referenced by remoteSearch(), and searchInResults().
ilSearchGUI::prepareOutput | ( | ) |
Reimplemented from ilSearchBaseGUI.
Definition at line 458 of file class.ilSearchGUI.php.
Referenced by executeCommand().
ilSearchGUI::remoteSearch | ( | ) |
Definition at line 183 of file class.ilSearchGUI.php.
References $_POST, performSearch(), setRootNode(), setString(), and ilUtil\stripSlashes().
ilSearchGUI::searchInResults | ( | ) |
Definition at line 349 of file class.ilSearchGUI.php.
References $_SESSION, and performSearch().
ilSearchGUI::selectRoot | ( | ) |
Definition at line 237 of file class.ilSearchGUI.php.
References $_GET, setRootNode(), and showSavedResults().
ilSearchGUI::setCombination | ( | $a_combination | ) |
Set/get combination of search ('and' or 'or') public.
Definition at line 99 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by ilSearchGUI().
ilSearchGUI::setDetails | ( | $a_details | ) |
Set/get details (object types for details search) public.
Definition at line 123 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by ilSearchGUI().
ilSearchGUI::setRootNode | ( | $a_node_id | ) |
Definition at line 137 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by remoteSearch(), and selectRoot().
ilSearchGUI::setString | ( | $a_str | ) |
Set/get search string public.
Definition at line 111 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by ilSearchGUI(), and remoteSearch().
ilSearchGUI::setType | ( | $a_type | ) |
Set/get type of search (detail or 'fast' search) public.
Definition at line 87 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by ilSearchGUI().
ilSearchGUI::showSavedResults | ( | ) |
Definition at line 314 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\addPager(), getRootNode(), ilSearchResultPresentation\MODE_STANDARD, ilSearchResult\read(), and showSearch().
Referenced by selectRoot().
ilSearchGUI::showSearch | ( | ) |
Definition at line 204 of file class.ilSearchGUI.php.
References $ilCtrl, and initStandardSearchForm().
Referenced by performSearch(), and showSavedResults().
ilSearchGUI::showSelectRoot | ( | ) |
Definition at line 217 of file class.ilSearchGUI.php.
References $_GET, ilUtil\sendInfo(), and ilExplorer\setExpand().
ilSearchGUI::$combination |
Definition at line 31 of file class.ilSearchGUI.php.
ilSearchGUI::$root_node |
Definition at line 30 of file class.ilSearchGUI.php.
|
protected |
Definition at line 28 of file class.ilSearchGUI.php.
ilSearchGUI::$string |
Definition at line 32 of file class.ilSearchGUI.php.
Referenced by getString().
ilSearchGUI::$type |
Definition at line 33 of file class.ilSearchGUI.php.
Referenced by __performDetailsSearch().