ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilSearchGUI. More...
Public Member Functions | |
__construct () | |
Constructor public. | |
executeCommand () | |
Control 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) | |
remoteSearch () | |
autoComplete () | |
Data resource for autoComplete. | |
showSearch () | |
showSavedResults () | |
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. | |
initStandardSearchForm ($a_mode) | |
Init standard search form. | |
getSearchAreaForm () | |
Init standard search form. | |
handleCommand ($a_cmd) | |
Handle command. | |
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 | |
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 |
$settings = null | |
$ilias = null | |
$lng = null | |
$tpl = null |
Protected Member Functions | |
storeRoot () | |
Store new root node. | |
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 22 of file class.ilSearchGUI.php.
ilSearchGUI::__construct | ( | ) |
Constructor public.
Definition at line 36 of file class.ilSearchGUI.php.
References $_POST, $_SESSION, $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 571 of file class.ilSearchGUI.php.
References getDetails(), getType(), and ilSearchBaseGUI\SEARCH_DETAILS.
Referenced by __performDetailsSearch(), __searchMeta(), and __searchObjects().
& ilSearchGUI::__parseQueryString | ( | ) |
parse query string, using query parser instance
Definition at line 500 of file class.ilSearchGUI.php.
References getCombination(), getString(), and ilUtil\stripSlashes().
Referenced by performSearch().
& ilSearchGUI::__performDetailsSearch | ( | & | $query_parser, |
& | $result | ||
) |
Definition at line 405 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 537 of file class.ilSearchGUI.php.
References __getFilter(), ilObjectSearchFactory\_getMetaDataSearchInstance(), getType(), and ilSearchBaseGUI\SEARCH_DETAILS.
Referenced by performSearch().
& ilSearchGUI::__searchObjects | ( | & | $query_parser | ) |
Search in obect title,desctiption.
Definition at line 519 of file class.ilSearchGUI.php.
References __getFilter(), ilObjectSearchFactory\_getObjectSearchInstance(), getType(), and ilSearchBaseGUI\SEARCH_DETAILS.
Referenced by performSearch().
ilSearchGUI::autoComplete | ( | ) |
Data resource for autoComplete.
Reimplemented from ilSearchBaseGUI.
Definition at line 203 of file class.ilSearchGUI.php.
References $_REQUEST, exit, and ilSearchAutoComplete\getList().
ilSearchGUI::executeCommand | ( | ) |
Control public.
Definition at line 76 of file class.ilSearchGUI.php.
References $cmd, $ilCtrl, ilSearchBaseGUI\getSearchAreaForm(), ilSearchBaseGUI\handleCommand(), initUserSearchCache(), and prepareOutput().
ilSearchGUI::getCombination | ( | ) |
Definition at line 134 of file class.ilSearchGUI.php.
References ilSearchBaseGUI\SEARCH_OR.
Referenced by __parseQueryString().
ilSearchGUI::getDetails | ( | ) |
Definition at line 158 of file class.ilSearchGUI.php.
Referenced by __getFilter(), __performDetailsSearch(), and performSearch().
ilSearchGUI::getRootNode | ( | ) |
Definition at line 164 of file class.ilSearchGUI.php.
Referenced by performSearch(), and showSavedResults().
ilSearchGUI::getString | ( | ) |
Definition at line 146 of file class.ilSearchGUI.php.
References $string.
Referenced by __parseQueryString(), and showSearch().
ilSearchGUI::getType | ( | ) |
Definition at line 122 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 645 of file class.ilSearchGUI.php.
References $_GET, $_POST, $ilUser, ilUserSearchCache\_getInstance(), ilUserSearchCache\DEFAULT_SEARCH, and ilUtil\stripSlashes().
Referenced by executeCommand().
ilSearchGUI::performSearch | ( | ) |
Perform search.
Definition at line 290 of file class.ilSearchGUI.php.
References $_GET, $_SESSION, $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 | ( | ) |
Reimplemented from ilSearchBaseGUI.
Definition at line 384 of file class.ilSearchGUI.php.
Referenced by executeCommand().
ilSearchGUI::remoteSearch | ( | ) |
Definition at line 174 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 130 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 154 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by __construct().
ilSearchGUI::setRootNode | ( | $a_node_id | ) |
Definition at line 168 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by remoteSearch().
ilSearchGUI::setString | ( | $a_str | ) |
Set/get search string public.
Definition at line 142 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 118 of file class.ilSearchGUI.php.
References $_SESSION.
Referenced by __construct().
ilSearchGUI::showSavedResults | ( | ) |
Definition at line 251 of file class.ilSearchGUI.php.
References $ilUser, ilSearchBaseGUI\addPager(), getRootNode(), ilSearchResultPresentation\MODE_STANDARD, ilSearchResult\read(), and showSearch().
ilSearchGUI::showSearch | ( | ) |
Definition at line 213 of file class.ilSearchGUI.php.
References $ilCtrl, ilSearchBaseGUI\$lng, ilUtil\getImagePath(), ilSearchSettings\getInstance(), ilSearchBaseGUI\getSearchAreaForm(), getString(), ilUtil\img(), 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 185 of file class.ilSearchGUI.php.
References 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().