ILIAS
eassessment Revision 61809
|
Class ilGlossaryGUI. More...
Public Member Functions | |
ilObjGlossaryGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
Constructor public. | |
& | executeCommand () |
execute command | |
assignObject () | |
createObject () | |
form for new content object creation | |
importObject () | |
saveObject () | |
save new content object to db | |
importFileObject () | |
display status information or report errors messages in case of error | |
showInfoScreen () | |
Show info screen. | |
addUsagesToInfo ($info, $glo_id) | |
Add usages to info. | |
viewObject () | |
list childs of current object | |
properties () | |
edit properties of object (admin form) | |
initSettingsForm ($a_mode="edit") | |
Init settings form. | |
getSettingsValues () | |
Get current values for settings from. | |
saveProperties () | |
save properties | |
frameset () | |
glossary edit frameset | |
quickList () | |
quick term list | |
listTerms () | |
list terms | |
showActions ($a_actions) | |
show possible action (form buttons) | |
addTerm () | |
add term | |
moveDefinitionUp () | |
move a definiton up | |
moveDefinitionDown () | |
move a definiton down | |
confirmDefinitionDeletion () | |
deletion confirmation screen | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
cancelDefinitionDeletion () | |
deleteDefinition () | |
editTerm () | |
edit term | |
updateTerm () | |
update term | |
exportList () | |
export () | |
export content object | |
exportHTML () | |
create html package | |
downloadExportFile () | |
download export file | |
publishExportFile () | |
download export file | |
viewExportLog () | |
confirmDeleteExportFile () | |
confirmation screen for export file deletion | |
cancelDeleteExportFile () | |
cancel deletion of export files | |
deleteExportFile () | |
delete export files | |
confirmTermDeletion () | |
confirm term deletion | |
cancelTermDeletion () | |
cancel deletion of object | |
deleteTerms () | |
delete selected terms | |
setLocator ($a_tree="", $a_id="") | |
set Locator | |
view () | |
view content | |
create () | |
create new (subobject) in glossary | |
saveTerm () | |
addDefinition () | |
add definition | |
getTemplate () | |
setTabs () | |
output tabs | |
getTabs (&$tabs_gui) | |
get tabs | |
_goto ($a_target) | |
redirect script | |
applyFilter () | |
Apply filter. | |
resetFilter () | |
Reset filter (note: this function existed before data table filter has been introduced. | |
Public Member Functions inherited from ilObjectGUI | |
ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
Constructor public. | |
withReferences () | |
determines wether objects are referenced or not (got ref ids or not) | |
setCreationMode ($a_mode=true) | |
if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui | |
getCreationMode () | |
get creation mode | |
getAdminTabs (&$tabs_gui) | |
administration tabs show only permissions and trash folder | |
getHTML () | |
undeleteObject () | |
Get objects back from trash. | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
cancelDeleteObject () | |
cancel deletion of object | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
editObject () | |
edit object | |
updateObject () | |
updates object entry in object_data | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. | |
isVisible ($a_ref_id, $a_type) | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. | |
trashObject () | |
Show trash content of object. | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. | |
copyWizardHasOptions ($a_mode) | |
Check if there is any modules specific option. |
Data Fields | |
$admin_tabs | |
$mode | |
$term | |
Data Fields inherited from ilObjectGUI | |
const | COPY_WIZARD_NEEDS_PAGE = 1 |
$ilias | |
$objDefinition | |
$tpl | |
$tree | |
$lng | |
$data | |
$object | |
$ref_id | |
$obj_id | |
$maxcount | |
$formaction | |
$return_location | |
$target_frame | |
$tab_target_script | |
$actions | |
$sub_objects | |
$omit_locator = false |
Additional Inherited Members | |
Protected Member Functions inherited from ilObjectGUI | |
prepareOutput () | |
prepare output | |
setTitleAndDescription () | |
called by prepare output | |
showUpperIcon () | |
setAdminTabs () | |
set admin tabs public | |
setLocator () | |
set Locator | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
omitLocator ($a_omit=true) | |
addAdminLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
displayEditForm ($fields) | |
display edit form (usually called by editObject) | |
afterUpdate () | |
setFormAction ($a_cmd, $a_formaction) | |
set specific form action for command | |
getReturnLocation ($a_cmd, $a_location="") | |
get return location for command (command is method name without "Object", e.g. | |
setReturnLocation ($a_cmd, $a_location) | |
set specific return location for command | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. | |
setTargetFrame ($a_cmd, $a_target_frame) | |
set specific target frame for command | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) | |
getTitlesByRefId ($a_ref_ids) | |
get Titles of objects this method is used for error messages in methods cut/copy/paste | |
__showButton ($a_cmd, $a_text, $a_target= '') | |
hitsperpageObject () | |
& | __initTableGUI () |
__setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | |
standard implementation for tables use 'from' variable use different initial setting of table | |
__showClipboardTable ($a_result_set, $a_from="") | |
redirectToRefId ($a_ref_id, $a_cmd="") | |
redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value | |
fillCloneTemplate ($a_tpl_varname, $a_type) | |
Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. | |
getCenterColumnHTML () | |
Get center column. | |
getRightColumnHTML () | |
Display right column. | |
setColumnSettings ($column_gui) | |
May be overwritten in subclasses. | |
checkPermission ($a_perm, $a_cmd="") |
Class ilGlossaryGUI.
GUI class for ilGlossary
ilObjGlossaryGUI: ilGlossaryTermGUI, ilMDEditorGUI, ilPermissionGUI ilObjGlossaryGUI: ilInfoScreenGUI
Definition at line 25 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::_goto | ( | $a_target | ) |
redirect script
string | $a_target |
Definition at line 1627 of file class.ilObjGlossaryGUI.php.
References $_GET, $ilErr, ilObjectGUI\$lng, ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, and ilUtil\sendFailure().
ilObjGlossaryGUI::addDefinition | ( | ) |
add definition
Definition at line 1484 of file class.ilObjGlossaryGUI.php.
References $_POST, $ilCtrl, $term, ilUtil\sendFailure(), and ilUtil\stripSlashes().
ilObjGlossaryGUI::addTerm | ( | ) |
add term
Definition at line 802 of file class.ilObjGlossaryGUI.php.
References $_POST, $_SESSION, $ilCtrl, ilObjectGUI\$lng, $term, ilUtil\sendFailure(), and ilUtil\stripSlashes().
ilObjGlossaryGUI::addUsagesToInfo | ( | $info, | |
$glo_id | |||
) |
Add usages to info.
@return |
Definition at line 399 of file class.ilObjGlossaryGUI.php.
References ilObjectGUI\$lng, ilObject\_getAllReferences(), ilLink\_getLink(), ilObject\_lookupTitle(), and ilObjSAHSLearningModule\getScormModulesForGlossary().
Referenced by ilGlossaryPresentationGUI\outputInfoScreen(), and showInfoScreen().
ilObjGlossaryGUI::applyFilter | ( | ) |
Apply filter.
Definition at line 1663 of file class.ilObjGlossaryGUI.php.
References listTerms().
ilObjGlossaryGUI::assignObject | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 148 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::cancelDefinitionDeletion | ( | ) |
Definition at line 938 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::cancelDeleteExportFile | ( | ) |
cancel deletion of export files
Definition at line 1283 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::cancelObject | ( | $in_rep = false | ) |
cancel action and go back to previous page public
Reimplemented from ilObjectGUI.
Definition at line 932 of file class.ilObjGlossaryGUI.php.
References $_GET, and ilUtil\redirect().
ilObjGlossaryGUI::cancelTermDeletion | ( | ) |
cancel deletion of object
public
Definition at line 1392 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::confirmDefinitionDeletion | ( | ) |
deletion confirmation screen
Definition at line 862 of file class.ilObjGlossaryGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, $term, ilObjStyleSheet\getContentStylePath(), ilGlossaryTerm\getNumberOfUsages(), ilObjStyleSheet\getSyntaxStylePath(), ilUtil\sendQuestion(), and ilPageObjectGUI\setTemplateOutput().
ilObjGlossaryGUI::confirmDeleteExportFile | ( | ) |
confirmation screen for export file deletion
Definition at line 1233 of file class.ilObjGlossaryGUI.php.
References $_POST, $_SESSION, $file, $name, ilUtil\getImagePath(), ilUtil\sendQuestion(), setTabs(), and ilUtil\switchColor().
ilObjGlossaryGUI::confirmTermDeletion | ( | ) |
confirm term deletion
Definition at line 1316 of file class.ilObjGlossaryGUI.php.
References $_POST, $_SESSION, $ilCtrl, ilObjectGUI\$lng, $name, $term, ilUtil\getImagePath(), ilGlossaryTerm\getNumberOfUsages(), ilUtil\sendFailure(), ilUtil\sendQuestion(), and ilUtil\switchColor().
ilObjGlossaryGUI::create | ( | ) |
create new (subobject) in glossary
Definition at line 1457 of file class.ilObjGlossaryGUI.php.
References $_POST.
ilObjGlossaryGUI::createObject | ( | ) |
form for new content object creation
Reimplemented from ilObjectGUI.
Definition at line 159 of file class.ilObjGlossaryGUI.php.
References $_GET, $_POST, $_SESSION, ilObjectGUI\$data, ilFrameTargetInfo\_getFrame(), formSelect(), ilUtil\getImagePath(), ilObjectGUI\getTemplateFile(), ilUtil\prepareFormOutput(), and ilUtil\stripSlashes().
Referenced by importObject().
ilObjGlossaryGUI::deleteDefinition | ( | ) |
Definition at line 944 of file class.ilObjGlossaryGUI.php.
References $_GET.
ilObjGlossaryGUI::deleteExportFile | ( | ) |
delete export files
Definition at line 1292 of file class.ilObjGlossaryGUI.php.
References $_SESSION, $file, and ilUtil\delDir().
ilObjGlossaryGUI::deleteTerms | ( | ) |
delete selected terms
Definition at line 1401 of file class.ilObjGlossaryGUI.php.
References $_SESSION, and $term.
ilObjGlossaryGUI::downloadExportFile | ( | ) |
download export file
Definition at line 1157 of file class.ilObjGlossaryGUI.php.
References $_POST, $file, and ilUtil\deliverFile().
ilObjGlossaryGUI::editTerm | ( | ) |
edit term
Definition at line 954 of file class.ilObjGlossaryGUI.php.
& ilObjGlossaryGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 50 of file class.ilObjGlossaryGUI.php.
References $_GET, $_POST, $cmd, ilObjectGUI\$lng, $ret, ilMDEditorGUI\addObserver(), ilObjectGUI\getCreationMode(), getTemplate(), ilObjectGUI\prepareOutput(), ilObjectGUI\setLocator(), setTabs(), and showInfoScreen().
ilObjGlossaryGUI::export | ( | ) |
export content object
Definition at line 1133 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::exportHTML | ( | ) |
create html package
Definition at line 1144 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::exportList | ( | ) |
Definition at line 996 of file class.ilObjGlossaryGUI.php.
References $_GET, ilObjectGUI\$tree, ilUtil\getImagePath(), and ilUtil\switchColor().
ilObjGlossaryGUI::frameset | ( | ) |
glossary edit frameset
Definition at line 593 of file class.ilObjGlossaryGUI.php.
References exit.
ilObjGlossaryGUI::getSettingsValues | ( | ) |
Get current values for settings from.
Definition at line 547 of file class.ilObjGlossaryGUI.php.
Referenced by properties().
ilObjGlossaryGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs
Reimplemented from ilObjectGUI.
Definition at line 1564 of file class.ilObjGlossaryGUI.php.
References $_GET.
Referenced by setTabs().
ilObjGlossaryGUI::getTemplate | ( | ) |
Definition at line 1517 of file class.ilObjGlossaryGUI.php.
References $_GET, $title, ilGlossaryTerm\_lookGlossaryTerm(), and ilUtil\getImagePath().
Referenced by executeCommand(), and showInfoScreen().
ilObjGlossaryGUI::ilObjGlossaryGUI | ( | $a_data, | |
$a_id = 0 , |
|||
$a_call_by_reference = true , |
|||
$a_prepare_output = true |
|||
) |
Constructor public.
Definition at line 35 of file class.ilObjGlossaryGUI.php.
References $ilCtrl, ilObjectGUI\$lng, and ilObjectGUI\ilObjectGUI().
ilObjGlossaryGUI::importFileObject | ( | ) |
display status information or report errors messages in case of error
public
Definition at line 276 of file class.ilObjGlossaryGUI.php.
References $_GET, $file, ilObject\_writeImportId(), ilUtil\delDir(), ilUtil\moveUploadedFile(), ilUtil\redirect(), ilUtil\sendSuccess(), and ilUtil\unzip().
ilObjGlossaryGUI::importObject | ( | ) |
Definition at line 224 of file class.ilObjGlossaryGUI.php.
References createObject().
ilObjGlossaryGUI::initSettingsForm | ( | $a_mode = "edit" | ) |
Init settings form.
int | $a_mode | Edit Mode |
Definition at line 481 of file class.ilObjGlossaryGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilRadioOption\setInfo(), ilSelectInputGUI\setOptions(), ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().
Referenced by properties(), and saveProperties().
ilObjGlossaryGUI::listTerms | ( | ) |
list terms
Definition at line 728 of file class.ilObjGlossaryGUI.php.
References $_GET, $_SESSION, $ilCtrl, $lang, ilObjectGUI\$lng, $tab, ilObjectGUI\$tpl, ilMDLanguageItem\_getLanguages(), ilTextInputGUI\setMaxLength(), and ilSelectInputGUI\setOptions().
Referenced by applyFilter(), and resetFilter().
ilObjGlossaryGUI::moveDefinitionDown | ( | ) |
move a definiton down
Definition at line 849 of file class.ilObjGlossaryGUI.php.
References $_GET.
ilObjGlossaryGUI::moveDefinitionUp | ( | ) |
move a definiton up
Definition at line 836 of file class.ilObjGlossaryGUI.php.
References $_GET.
ilObjGlossaryGUI::properties | ( | ) |
edit properties of object (admin form)
public
Definition at line 467 of file class.ilObjGlossaryGUI.php.
References ilObjectGUI\$tpl, ilObjectGUI\$tree, getSettingsValues(), and initSettingsForm().
ilObjGlossaryGUI::publishExportFile | ( | ) |
download export file
Definition at line 1178 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::quickList | ( | ) |
quick term list
Definition at line 609 of file class.ilObjGlossaryGUI.php.
References $_GET, $term, ilGlossaryDefinition\getDefinitionList(), and ilUtil\switchColor().
ilObjGlossaryGUI::resetFilter | ( | ) |
Reset filter (note: this function existed before data table filter has been introduced.
Definition at line 1679 of file class.ilObjGlossaryGUI.php.
References listTerms().
ilObjGlossaryGUI::saveObject | ( | ) |
save new content object to db
Reimplemented from ilObjectGUI.
Definition at line 232 of file class.ilObjGlossaryGUI.php.
References $_GET, $_POST, ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjGlossaryGUI::saveProperties | ( | ) |
save properties
Definition at line 564 of file class.ilObjGlossaryGUI.php.
References $_POST, ilObjectGUI\$tpl, initSettingsForm(), ilUtil\sendSuccess(), ilGlossaryDefinition\setShortTextsDirty(), and ilUtil\yn2tf().
ilObjGlossaryGUI::saveTerm | ( | ) |
Definition at line 1468 of file class.ilObjGlossaryGUI.php.
References $ilCtrl, and ilUtil\sendSuccess().
ilObjGlossaryGUI::setLocator | ( | $a_tree = "" , |
|
$a_id = "" |
|||
) |
set Locator
object | tree object |
integer | reference id public |
Definition at line 1419 of file class.ilObjGlossaryGUI.php.
References $_GET, and ilObjectGUI\setLocator().
ilObjGlossaryGUI::setTabs | ( | ) |
output tabs
Reimplemented from ilObjectGUI.
Definition at line 1549 of file class.ilObjGlossaryGUI.php.
References getTabs().
Referenced by confirmDeleteExportFile(), executeCommand(), showInfoScreen(), and viewExportLog().
ilObjGlossaryGUI::showActions | ( | $a_actions | ) |
show possible action (form buttons)
public
Definition at line 771 of file class.ilObjGlossaryGUI.php.
References $d, ilObjectGUI\$lng, $name, and ilUtil\getImagePath().
ilObjGlossaryGUI::showInfoScreen | ( | ) |
Show info screen.
@return |
Definition at line 363 of file class.ilObjGlossaryGUI.php.
References $_GET, addUsagesToInfo(), getTemplate(), ilObjectGUI\setLocator(), and setTabs().
Referenced by executeCommand().
ilObjGlossaryGUI::updateTerm | ( | ) |
update term
Definition at line 981 of file class.ilObjGlossaryGUI.php.
References $_GET, $_POST, $term, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilObjGlossaryGUI::view | ( | ) |
view content
Definition at line 1448 of file class.ilObjGlossaryGUI.php.
References viewObject().
ilObjGlossaryGUI::viewExportLog | ( | ) |
Definition at line 1208 of file class.ilObjGlossaryGUI.php.
References ilObjectGUI\$tree, and setTabs().
ilObjGlossaryGUI::viewObject | ( | ) |
list childs of current object
public
Reimplemented from ilObjectGUI.
Definition at line 433 of file class.ilObjGlossaryGUI.php.
References $_GET, and ilFrameTargetInfo\_getFrame().
Referenced by view().
ilObjGlossaryGUI::$admin_tabs |
Definition at line 27 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::$mode |
Definition at line 28 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::$term |
Definition at line 29 of file class.ilObjGlossaryGUI.php.
Referenced by addDefinition(), addTerm(), confirmDefinitionDeletion(), confirmTermDeletion(), deleteTerms(), quickList(), and updateTerm().