ILIAS
Release_4_1_x_branch Revision 61804
|
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 646 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 575 of file class.ilSearchGUI.php.
References getCombination(), getString(), and ilUtil\stripSlashes().
Referenced by performSearch().
& ilSearchGUI::__performDetailsSearch | ( | & | $query_parser, |
& | $result | ||
) |
Definition at line 492 of file class.ilSearchGUI.php.
References $result, $type, __getFilter(), ilObjectSearchFactory\_getExerciseSearchInstance(), ilObjectSearchFactory\_getForumSearchInstance(), ilObjectSearchFactory\_getGlossaryDefinitionSearchInstance(), ilObjectSearchFactory\_getLMContentSearchInstance(), ilObjectSearchFactory\_getMediaPoolSearchInstance(), ilObjectSearchFactory\_getTestSearchInstance(), ilObjectSearchFactory\_getWikiContentSearchInstance(), and getDetails().
Referenced by performSearch().
& ilSearchGUI::__searchMeta | ( | & | $query_parser, |
$a_type | |||
) |
Search in object meta data (keyword)
Definition at line 612 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 594 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 196 of file class.ilSearchGUI.php.
References $_REQUEST, exit, and ilSearchAutoComplete\getList().
& ilSearchGUI::executeCommand | ( | ) |
Control public.
Definition at line 148 of file class.ilSearchGUI.php.
References $cmd, $ilCtrl, ilSearchBaseGUI\handleCommand(), initStandardSearchForm(), initUserSearchCache(), and prepareOutput().
ilSearchGUI::getCombination | ( | ) |
Definition at line 105 of file class.ilSearchGUI.php.
References SEARCH_OR.
Referenced by __parseQueryString(), and initStandardSearchForm().
ilSearchGUI::getDetails | ( | ) |
Definition at line 129 of file class.ilSearchGUI.php.
Referenced by __getFilter(), __performDetailsSearch(), initStandardSearchForm(), and performSearch().
ilSearchGUI::getRootNode | ( | ) |
Definition at line 135 of file class.ilSearchGUI.php.
Referenced by performSearch(), and showSavedResults().
ilSearchGUI::getString | ( | ) |
Definition at line 117 of file class.ilSearchGUI.php.
References $string.
Referenced by __parseQueryString(), and initStandardSearchForm().
ilSearchGUI::getType | ( | ) |
Definition at line 93 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 250 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 717 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 365 of file class.ilSearchGUI.php.
References $_GET, $_SESSION, $result, __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 460 of file class.ilSearchGUI.php.
Referenced by executeCommand().
ilSearchGUI::remoteSearch | ( | ) |
Definition at line 185 of file class.ilSearchGUI.php.
References $_POST, performSearch(), setRootNode(), setString(), and ilUtil\stripSlashes().
ilSearchGUI::searchInResults | ( | ) |
Definition at line 351 of file class.ilSearchGUI.php.
References $_SESSION, and performSearch().
ilSearchGUI::selectRoot | ( | ) |
Definition at line 239 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 101 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 125 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by ilSearchGUI().
ilSearchGUI::setRootNode | ( | $a_node_id | ) |
Definition at line 139 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by remoteSearch(), and selectRoot().
ilSearchGUI::setString | ( | $a_str | ) |
Set/get search string public.
Definition at line 113 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 89 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by ilSearchGUI().
ilSearchGUI::showSavedResults | ( | ) |
Definition at line 316 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\addPager(), getRootNode(), ilSearchResultPresentation\MODE_STANDARD, ilSearchResult\read(), and showSearch().
Referenced by selectRoot().
ilSearchGUI::showSearch | ( | ) |
Definition at line 206 of file class.ilSearchGUI.php.
References $ilCtrl, and initStandardSearchForm().
Referenced by performSearch(), and showSavedResults().
ilSearchGUI::showSelectRoot | ( | ) |
Definition at line 219 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().