ILIAS
release_4-3 Revision
|
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 () | |
initCreateForm ($a_new_type) | |
Init object creation form. | |
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 | |
cancelDefinitionDeletion () | |
deleteDefinition () | |
editTerm () | |
edit term | |
updateTerm () | |
update term | |
export () | |
export content object | |
exportHTML () | |
create html package | |
publishExportFile () | |
download export file | |
viewExportLog () | |
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 | |
setSettingsSubTabs ($a_active) | |
Set sub tabs. | |
_goto ($a_target) | |
redirect script | |
applyFilter () | |
Apply filter. | |
resetFilter () | |
Reset filter (note: this function existed before data table filter has been introduced. | |
setContentStyleSheet ($a_tpl=null) | |
Set content style sheet. | |
editStyleProperties () | |
Edit style properties. | |
initStylePropertiesForm () | |
Init style properties form. | |
createStyle () | |
Create Style. | |
editStyle () | |
Edit Style. | |
deleteStyle () | |
Delete Style. | |
saveStyleSettings () | |
Save style settings. | |
getPublicAccessColValue ($a_type, $a_file) | |
Get public access value for export table. | |
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 () | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
cancelDeleteObject () | |
cancel deletion of object | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
createObject () | |
create new object form | |
cancelCreation () | |
cancel create action and go back to repository parent | |
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. | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. |
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 | |
const | CFORM_NEW = 1 |
const | CFORM_IMPORT = 2 |
const | CFORM_CLONE = 3 |
Protected Member Functions | |
initCreationForms ($a_new_type) | |
Init creation froms. | |
Protected Member Functions inherited from ilObjectGUI | |
prepareOutput () | |
prepare output | |
setTitleAndDescription () | |
called by prepare output | |
initHeaderAction ($a_sub_type=null, $a_sub_id=null) | |
Add header action menu. | |
insertHeaderAction ($a_list_gui) | |
Insert header action into main template. | |
addHeaderAction () | |
Add header action menu. | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. | |
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) | |
getCreationFormsHTML (array $a_forms) | |
Get HTML for creation forms (accordion) | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
Show didactic template types. | |
addDidacticTemplateOptions (array &$a_options) | |
Add custom templates. | |
getDidacticTemplateVar ($a_type) | |
Get didactic template setting from creation screen. | |
putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
Add object to tree at given position. | |
afterSave (ilObject $a_new_object) | |
Post (successful) object creation hook. | |
initEditForm () | |
Init object edit form. | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. | |
getEditFormValues () | |
Get values for edit form. | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. | |
updateCustom (ilPropertyFormGUI $a_form) | |
Insert custom update form values into object. | |
afterUpdate () | |
Post (successful) object update hook. | |
initImportForm ($a_new_type) | |
Init object import form. | |
importFileObject ($parent_id=null) | |
Import. | |
afterImport (ilObject $a_new_object) | |
Post (successful) object import hook. | |
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) | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. | |
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="", $a_type="", $a_ref_id=null) | |
Check permission and redirect on error. | |
checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission. |
Additional Inherited Members | |
Static Public Member Functions inherited from ilObjectGUI | |
static | _gotoRepositoryRoot ($a_raise_error=false) |
Goto repository root. | |
static | _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset") |
Goto repository root. |
Class ilGlossaryGUI.
GUI class for ilGlossary
ilObjGlossaryGUI: ilGlossaryTermGUI, ilMDEditorGUI, ilPermissionGUI ilObjGlossaryGUI: ilInfoScreenGUI, ilCommonActionDispatcherGUI, ilObjStyleSheetGUI ilObjGlossaryGUI: ilObjTaxonomyGUI, ilExportGUI
Definition at line 26 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::_goto | ( | $a_target | ) |
redirect script
string | $a_target |
Definition at line 1467 of file class.ilObjGlossaryGUI.php.
References $_GET, $ilErr, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, and ilUtil\sendFailure().
ilObjGlossaryGUI::addDefinition | ( | ) |
add definition
Definition at line 1294 of file class.ilObjGlossaryGUI.php.
References $_POST, $ilCtrl, $term, ilGlossaryTerm\_lookGlossaryID(), ilUtil\sendFailure(), and ilUtil\stripSlashes().
ilObjGlossaryGUI::addTerm | ( | ) |
add term
Definition at line 914 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 478 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 1499 of file class.ilObjGlossaryGUI.php.
References listTerms().
ilObjGlossaryGUI::assignObject | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 235 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::cancelDefinitionDeletion | ( | ) |
Definition at line 1028 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::cancelTermDeletion | ( | ) |
cancel deletion of object
public
Definition at line 1206 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::confirmDefinitionDeletion | ( | ) |
deletion confirmation screen
Definition at line 974 of file class.ilObjGlossaryGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, $term, ilGlossaryTerm\getNumberOfUsages(), ilObjStyleSheet\getSyntaxStylePath(), setContentStyleSheet(), and ilPageObjectGUI\setTemplateOutput().
ilObjGlossaryGUI::confirmTermDeletion | ( | ) |
confirm term deletion
Definition at line 1147 of file class.ilObjGlossaryGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, $term, ilGlossaryTerm\_lookGlossaryID(), ilGlossaryTerm\getNumberOfUsages(), and ilUtil\sendFailure().
ilObjGlossaryGUI::create | ( | ) |
create new (subobject) in glossary
Definition at line 1267 of file class.ilObjGlossaryGUI.php.
References $_POST.
ilObjGlossaryGUI::createStyle | ( | ) |
ilObjGlossaryGUI::deleteDefinition | ( | ) |
Definition at line 1034 of file class.ilObjGlossaryGUI.php.
References $_REQUEST.
ilObjGlossaryGUI::deleteStyle | ( | ) |
ilObjGlossaryGUI::deleteTerms | ( | ) |
delete selected terms
Definition at line 1214 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::editStyle | ( | ) |
ilObjGlossaryGUI::editStyleProperties | ( | ) |
Edit style properties.
Definition at line 1555 of file class.ilObjGlossaryGUI.php.
References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), initStylePropertiesForm(), and setSettingsSubTabs().
ilObjGlossaryGUI::editTerm | ( | ) |
& ilObjGlossaryGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 61 of file class.ilObjGlossaryGUI.php.
References $_GET, $_POST, $cmd, $ilErr, ilObjectGUI\$lng, $ret, ilObjectGUI\addHeaderAction(), ilMDEditorGUI\addObserver(), ilObjectGUI\getCreationMode(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), getTemplate(), ilObjectGUI\omitLocator(), ilObjectGUI\prepareOutput(), ilObjectGUI\setLocator(), setSettingsSubTabs(), setTabs(), and showInfoScreen().
ilObjGlossaryGUI::export | ( | ) |
export content object
Definition at line 1069 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::exportHTML | ( | ) |
create html package
Definition at line 1080 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::frameset | ( | ) |
glossary edit frameset
Definition at line 690 of file class.ilObjGlossaryGUI.php.
References $_GET, $ilCtrl, and exit.
ilObjGlossaryGUI::getPublicAccessColValue | ( | $a_type, | |
$a_file | |||
) |
Get public access value for export table.
Definition at line 1690 of file class.ilObjGlossaryGUI.php.
References $ilCtrl, and ilObjectGUI\$lng.
ilObjGlossaryGUI::getSettingsValues | ( | ) |
Get current values for settings from.
Definition at line 636 of file class.ilObjGlossaryGUI.php.
Referenced by properties().
ilObjGlossaryGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs
Reimplemented from ilObjectGUI.
Definition at line 1365 of file class.ilObjGlossaryGUI.php.
References $_GET.
Referenced by setTabs().
ilObjGlossaryGUI::getTemplate | ( | ) |
Definition at line 1335 of file class.ilObjGlossaryGUI.php.
References $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 36 of file class.ilObjGlossaryGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilGlossaryTerm\_lookGlossaryID(), and ilObjectGUI\ilObjectGUI().
ilObjGlossaryGUI::importFileObject | ( | ) |
display status information or report errors messages in case of error
public
Definition at line 345 of file class.ilObjGlossaryGUI.php.
References $_GET, $_REQUEST, $file, $ilErr, ilObjectGUI\$tpl, ilObject\_writeImportId(), ilObjectGUI\checkPermissionBool(), ilUtil\delDir(), ilObjectGUI\initImportForm(), ilUtil\moveUploadedFile(), ilObjectGUI\putObjectInTree(), ilUtil\redirect(), ilUtil\sendSuccess(), and ilUtil\unzip().
ilObjGlossaryGUI::importObject | ( | ) |
Definition at line 291 of file class.ilObjGlossaryGUI.php.
References ilObjectGUI\createObject().
ilObjGlossaryGUI::initCreateForm | ( | $a_new_type | ) |
Init object creation form.
string | $a_new_type |
Reimplemented from ilObjectGUI.
Definition at line 252 of file class.ilObjGlossaryGUI.php.
References ilTextAreaInputGUI\setCols(), ilTextInputGUI\setMaxLength(), and ilSelectInputGUI\setOptions().
Referenced by initCreationForms(), and saveObject().
|
protected |
Init creation froms.
this will create the default creation forms: new, import, clone
string | $a_new_type |
Reimplemented from ilObjectGUI.
Definition at line 242 of file class.ilObjGlossaryGUI.php.
References initCreateForm(), and ilObjectGUI\initImportForm().
ilObjGlossaryGUI::initSettingsForm | ( | $a_mode = "edit" | ) |
Init settings form.
int | $a_mode | Edit Mode |
Definition at line 568 of file class.ilObjGlossaryGUI.php.
References $ilCtrl, ilObjectGUI\$lng, $si, ilObjTaxonomy\getUsageOfObject(), ilRadioOption\setInfo(), ilSelectInputGUI\setOptions(), ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().
Referenced by properties(), and saveProperties().
ilObjGlossaryGUI::initStylePropertiesForm | ( | ) |
Init style properties form.
Definition at line 1571 of file class.ilObjGlossaryGUI.php.
References $_GET, $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjStyleSheet\_getStandardStyles(), ilObjStyleSheet\_lookupStandard(), ilObject\_lookupTitle(), ilUtil\formSelect(), ilSelectInputGUI\setOptions(), and ilNonEditableValueGUI\setValue().
Referenced by editStyleProperties().
ilObjGlossaryGUI::listTerms | ( | ) |
list terms
Definition at line 840 of file class.ilObjGlossaryGUI.php.
References $_GET, $_SESSION, $ilCtrl, $ilUser, $lang, ilObjectGUI\$lng, $si, $tab, ilObjectGUI\$tpl, ilMDLanguageItem\_getLanguages(), and ilTextInputGUI\setMaxLength().
Referenced by applyFilter(), and resetFilter().
ilObjGlossaryGUI::moveDefinitionDown | ( | ) |
move a definiton down
Definition at line 961 of file class.ilObjGlossaryGUI.php.
References $_GET.
ilObjGlossaryGUI::moveDefinitionUp | ( | ) |
move a definiton up
Definition at line 948 of file class.ilObjGlossaryGUI.php.
References $_GET.
ilObjGlossaryGUI::properties | ( | ) |
edit properties of object (admin form)
public
Definition at line 546 of file class.ilObjGlossaryGUI.php.
References ilObjectGUI\$tpl, ilObjectGUI\$tree, getSettingsValues(), initSettingsForm(), and setSettingsSubTabs().
ilObjGlossaryGUI::publishExportFile | ( | ) |
download export file
Definition at line 1092 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::quickList | ( | ) |
quick term list
Definition at line 716 of file class.ilObjGlossaryGUI.php.
References $_GET, $ilUser, $tab, $term, ilObjectGUI\$tpl, ilGlossaryDefinition\getDefinitionList(), and ilUtil\switchColor().
ilObjGlossaryGUI::resetFilter | ( | ) |
Reset filter (note: this function existed before data table filter has been introduced.
Definition at line 1515 of file class.ilObjGlossaryGUI.php.
References listTerms().
ilObjGlossaryGUI::saveObject | ( | ) |
save new content object to db
Reimplemented from ilObjectGUI.
Definition at line 299 of file class.ilObjGlossaryGUI.php.
References $_REQUEST, ilObjectGUI\$tpl, ilObjectGUI\checkPermissionBool(), initCreateForm(), ilObjectGUI\putObjectInTree(), ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjGlossaryGUI::saveProperties | ( | ) |
save properties
Definition at line 654 of file class.ilObjGlossaryGUI.php.
References $_POST, ilObjectGUI\$tpl, initSettingsForm(), ilUtil\sendSuccess(), ilGlossaryDefinition\setShortTextsDirty(), and ilUtil\yn2tf().
ilObjGlossaryGUI::saveStyleSettings | ( | ) |
Save style settings.
Definition at line 1671 of file class.ilObjGlossaryGUI.php.
References $_POST, $ilSetting, ilObjStyleSheet\_lookupStandard(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilObjGlossaryGUI::saveTerm | ( | ) |
Definition at line 1278 of file class.ilObjGlossaryGUI.php.
References $ilCtrl, and ilUtil\sendSuccess().
ilObjGlossaryGUI::setContentStyleSheet | ( | $a_tpl = null | ) |
Set content style sheet.
Definition at line 1532 of file class.ilObjGlossaryGUI.php.
References ilObjectGUI\$tpl, and ilObjStyleSheet\getContentStylePath().
Referenced by confirmDefinitionDeletion().
ilObjGlossaryGUI::setLocator | ( | $a_tree = "" , |
|
$a_id = "" |
|||
) |
set Locator
object | tree object |
integer | reference id public |
Definition at line 1231 of file class.ilObjGlossaryGUI.php.
References $_GET, and ilObjectGUI\setLocator().
ilObjGlossaryGUI::setSettingsSubTabs | ( | $a_active | ) |
Set sub tabs.
Definition at line 1433 of file class.ilObjGlossaryGUI.php.
References $ilCtrl, ilObjectGUI\$lng, and ilObjTaxonomy\loadLanguageModule().
Referenced by editStyleProperties(), executeCommand(), and properties().
ilObjGlossaryGUI::setTabs | ( | ) |
output tabs
Reimplemented from ilObjectGUI.
Definition at line 1357 of file class.ilObjGlossaryGUI.php.
References getTabs().
Referenced by executeCommand(), and showInfoScreen().
ilObjGlossaryGUI::showActions | ( | $a_actions | ) |
show possible action (form buttons)
public
Definition at line 883 of file class.ilObjGlossaryGUI.php.
References $d, ilObjectGUI\$lng, and ilUtil\getImagePath().
ilObjGlossaryGUI::showInfoScreen | ( | ) |
Show info screen.
@return |
Definition at line 442 of file class.ilObjGlossaryGUI.php.
References $_GET, addUsagesToInfo(), getTemplate(), ilObjectGUI\setLocator(), and setTabs().
Referenced by executeCommand().
ilObjGlossaryGUI::updateTerm | ( | ) |
update term
Definition at line 1053 of file class.ilObjGlossaryGUI.php.
References $_POST, $term, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilObjGlossaryGUI::view | ( | ) |
view content
Definition at line 1258 of file class.ilObjGlossaryGUI.php.
References viewObject().
ilObjGlossaryGUI::viewExportLog | ( | ) |
Definition at line 1122 of file class.ilObjGlossaryGUI.php.
References ilObjectGUI\$tree.
ilObjGlossaryGUI::viewObject | ( | ) |
list childs of current object
public
Reimplemented from ilObjectGUI.
Definition at line 512 of file class.ilObjGlossaryGUI.php.
References $_GET, and ilFrameTargetInfo\_getFrame().
Referenced by view().
ilObjGlossaryGUI::$admin_tabs |
Definition at line 28 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::$mode |
Definition at line 29 of file class.ilObjGlossaryGUI.php.
ilObjGlossaryGUI::$term |
Definition at line 30 of file class.ilObjGlossaryGUI.php.
Referenced by addDefinition(), addTerm(), confirmDefinitionDeletion(), confirmTermDeletion(), deleteTerms(), quickList(), and updateTerm().