ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjAdvancedEditingGUI Class Reference

Class ilObjAdvancedEditingGUI. More...

+ Inheritance diagram for ilObjAdvancedEditingGUI:
+ Collaboration diagram for ilObjAdvancedEditingGUI:

Public Member Functions

 ilObjAdvancedEditingGUI ($a_data, $a_id, $a_call_by_reference)
 Constructor.
executeCommand ()
 execute command
 saveObject ()
 save object public
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 addSubtabs (&$tabs_gui)
 Add rte subtabs.
 addPageEditorSettingsSubtabs ()
 Show page editor settings subtabs.
 getTabs (&$tabs_gui)
 get tabs public
 settingsObject ()
 Display assessment folder settings form.
 saveSettingsObject ()
 Save Assessment settings.
 assessmentObject ()
 Display settings for test and assessment.
 saveAssessmentSettingsObject ()
 surveyObject ()
 Display settings for surveys.
 saveSurveySettingsObject ()
 frmPostObject ()
 Display settings for forums.
 saveFrmPostSettingsObject ()
 excAssObject ()
 Display settings for exercise assignments.
 saveExcAssSettingsObject ()
 showPageEditorSettingsObject ()
 Show page editor settings.
 initPageEditorForm ($a_mode="edit")
 Init page editor form.
 savePageEditorSettingsObject ()
 Save page editor settings form.
 showGeneralPageEditorSettingsObject ()
 Show general page editor settings.
 initGeneralPageSettingsForm ()
 Init general page editor settings form.
 saveGeneralPageSettingsObject ()
 Save general page settings.
 initCharSelectorSettingsForm (ilCharSelectorGUI $char_selector)
 Init the settings form for the selector of unicode characters.
 showCharSelectorSettingsObject ()
 Show the settings for the selector of unicode characters.
 saveCharSelectorSettingsObject ()
 Save the settings for the selector of unicode characters.
- 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
 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)
 viewObject ()
 list childs of current object
 deleteObject ($a_error=false)
 Display deletion confirmation screen.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.

Data Fields

 $conditions
- 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

 initTagsForm ($a_id, $a_cmd, $a_title)
 saveTags ($a_id, $a_cmd)
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 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.
 showMountWebfolderIcon ()
 setTabs ()
 set admin tabs public
 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 ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded)
 initCreationForms ($a_new_type)
 Init creation froms.
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion)
 initCreateForm ($a_new_type)
 Init object creation form.
 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
 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.
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files.
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting.

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.

Detailed Description

Class ilObjAdvancedEditingGUI.

Author
Helmut Schottmüller hscho.nosp@m.ttm@.nosp@m.gmx.d.nosp@m.e
Version
Id:
class.ilObjAdvancedEditingGUI.php 55219 2014-11-17 11:34:59Z fneumann

ilObjAdvancedEditingGUI: ilPermissionGUI

Definition at line 17 of file class.ilObjAdvancedEditingGUI.php.

Member Function Documentation

ilObjAdvancedEditingGUI::addPageEditorSettingsSubtabs ( )

Show page editor settings subtabs.

Definition at line 130 of file class.ilObjAdvancedEditingGUI.php.

References $_GET, $ilCtrl, and ilPageEditorSettings\getGroups().

{
global $ilCtrl, $ilTabs;
$ilTabs->addSubTabTarget("adve_pe_general",
$ilCtrl->getLinkTarget($this, "showGeneralPageEditorSettings"),
array("showGeneralPageEditorSettings", "", "view"));
include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
foreach ($grps as $g => $types)
{
$ilCtrl->setParameter($this, "grp", $g);
$ilTabs->addSubTabTarget("adve_grp_".$g,
$ilCtrl->getLinkTarget($this, "showPageEditorSettings"),
array("showPageEditorSettings"));
}
$ilCtrl->setParameter($this, "grp", $_GET["grp"]);
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::addSubtabs ( $tabs_gui)

Add rte subtabs.

Definition at line 96 of file class.ilObjAdvancedEditingGUI.php.

References $ilCtrl.

Referenced by getTabs().

{
global $ilCtrl;
if ($ilCtrl->getNextClass() != "ilpermissiongui" &&
!in_array($ilCtrl->getCmd(), array("showPageEditorSettings",
"showGeneralPageEditorSettings", "showCharSelectorSettings", "", "view")))
{
$tabs_gui->addSubTabTarget("adve_general_settings",
$this->ctrl->getLinkTarget($this, "settings"),
array("settings", "saveSettings"),
"", "");
$tabs_gui->addSubTabTarget("adve_assessment_settings",
$this->ctrl->getLinkTarget($this, "assessment"),
array("assessment", "saveAssessmentSettings"),
"", "");
$tabs_gui->addSubTabTarget("adve_survey_settings",
$this->ctrl->getLinkTarget($this, "survey"),
array("survey", "saveSurveySettings"),
"", "");
$tabs_gui->addSubTabTarget("adve_frm_post_settings",
$this->ctrl->getLinkTarget($this, "frmPost"),
array("frmPost", "saveFrmPostSettings"),
"", "");
$tabs_gui->addSubTabTarget("adve_excass_settings",
$this->ctrl->getLinkTarget($this, "excass"),
array("excass", "saveExcAssSettings"),
"", "");
}
}

+ Here is the caller graph for this function:

ilObjAdvancedEditingGUI::assessmentObject ( )

Display settings for test and assessment.

Definition at line 230 of file class.ilObjAdvancedEditingGUI.php.

References initTagsForm().

{
$form = $this->initTagsForm("assessment", "saveAssessmentSettings",
"advanced_editing_assessment_settings");
$this->tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::excAssObject ( )

Display settings for exercise assignments.

Definition at line 281 of file class.ilObjAdvancedEditingGUI.php.

References initTagsForm().

{
$form = $this->initTagsForm("exc_ass", "saveExcAssSettings",
"advanced_editing_excass_settings");
$this->tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

& ilObjAdvancedEditingGUI::executeCommand ( )

execute command

Reimplemented from ilObjectGUI.

Definition at line 39 of file class.ilObjAdvancedEditingGUI.php.

References $cmd, $ret, and ilObjectGUI\prepareOutput().

{
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
$this->prepareOutput();
switch($next_class)
{
case 'ilpermissiongui':
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;
default:
if($cmd == "" || $cmd == "view")
{
$cmd = "showGeneralPageEditorSettings";
}
$cmd .= "Object";
$this->$cmd();
break;
}
return true;
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::frmPostObject ( )

Display settings for forums.

Definition at line 264 of file class.ilObjAdvancedEditingGUI.php.

References initTagsForm().

{
$form = $this->initTagsForm("frm_post", "saveFrmPostSettings",
"advanced_editing_frm_post_settings");
$this->tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::getAdminTabs ( $tabs_gui)

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

Definition at line 88 of file class.ilObjAdvancedEditingGUI.php.

References getTabs().

{
$this->getTabs($tabs_gui);
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::getTabs ( $tabs_gui)

get tabs public

Parameters
objecttabs gui object

Reimplemented from ilObjectGUI.

Definition at line 156 of file class.ilObjAdvancedEditingGUI.php.

References addSubtabs().

Referenced by getAdminTabs().

{
global $rbacsystem;
if ($rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$tabs_gui->addTarget("adve_page_editor_settings",
$this->ctrl->getLinkTarget($this, "showGeneralPageEditorSettings"),
array("showPageEditorSettings", "","view"));
$tabs_gui->addTarget("adve_rte_settings",
$this->ctrl->getLinkTarget($this, "settings"),
array("settings","assessment", "survey", "frmPost"), "", "");
$tabs_gui->addTarget("adve_char_selector_settings",
$this->ctrl->getLinkTarget($this, "showCharSelectorSettings"),
array("showCharSelectorSettings", "","view"));
}
if ($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
{
$tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"), array("perm","info","owner"), 'ilpermissiongui');
}
$this->addSubtabs($tabs_gui);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAdvancedEditingGUI::ilObjAdvancedEditingGUI (   $a_data,
  $a_id,
  $a_call_by_reference 
)

Constructor.

Definition at line 24 of file class.ilObjAdvancedEditingGUI.php.

References ilObjectGUI\$lng, and ilObjectGUI\ilObjectGUI().

{
global $rbacsystem, $lng;
$this->type = "adve";
$this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,false);
$this->lng->loadLanguageModule('adve');
$this->lng->loadLanguageModule('meta');
if (!$rbacsystem->checkAccess('read',$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read_adve"),$this->ilias->error_obj->WARNING);
}
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::initCharSelectorSettingsForm ( ilCharSelectorGUI  $char_selector)

Init the settings form for the selector of unicode characters.

Definition at line 566 of file class.ilObjAdvancedEditingGUI.php.

References $ilCtrl, ilObjectGUI\$lng, and ilCharSelectorGUI\addFormProperties().

Referenced by saveCharSelectorSettingsObject(), and showCharSelectorSettingsObject().

{
global $lng, $ilCtrl;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setTitle($lng->txt('settings'));
$form->setFormAction($ilCtrl->getFormAction($this));
$form->addCommandButton("saveCharSelectorSettings", $lng->txt("save"));
$char_selector->addFormProperties($form);
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAdvancedEditingGUI::initGeneralPageSettingsForm ( )

Init general page editor settings form.

Definition at line 496 of file class.ilObjAdvancedEditingGUI.php.

References $ilCtrl, ilObjectGUI\$lng, ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setInfo(), and ilNumberInputGUI\setMinValue().

Referenced by saveGeneralPageSettingsObject(), and showGeneralPageEditorSettingsObject().

{
global $lng, $ilCtrl;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$aset = new ilSetting("adve");
// use physical character styles
$cb = new ilCheckboxInputGUI($this->lng->txt("adve_use_physical"), "use_physical");
$cb->setInfo($this->lng->txt("adve_use_physical_info"));
$cb->setChecked($aset->get("use_physical"));
$form->addItem($cb);
// blocking mode
$cb = new ilCheckboxInputGUI($this->lng->txt("adve_blocking_mode"), "block_mode_act");
$cb->setChecked($aset->get("block_mode_minutes") > 0);
$form->addItem($cb);
// number of minutes
$ni = new ilNumberInputGUI($this->lng->txt("adve_minutes"), "block_mode_minutes");
$ni->setMinValue(2);
$ni->setMaxLength(5);
$ni->setSize(5);
$ni->setRequired(true);
$ni->setInfo($this->lng->txt("adve_minutes_info"));
$ni->setValue($aset->get("block_mode_minutes"));
$cb->addSubItem($ni);
$form->addCommandButton("saveGeneralPageSettings", $lng->txt("save"));
$form->setTitle($lng->txt("adve_pe_general"));
$form->setFormAction($ilCtrl->getFormAction($this));
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAdvancedEditingGUI::initPageEditorForm (   $a_mode = "edit")

Init page editor form.

Parameters
int$a_modeEdit Mode

Definition at line 376 of file class.ilObjAdvancedEditingGUI.php.

References $ilSetting, ilObjectGUI\$lng, $t, ilPageContentGUI\_getCommonBBButtons(), ilObjAssessmentFolder\ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_DISABLED, ilPageEditorSettings\lookupSetting(), and ilFormPropertyGUI\setInfo().

Referenced by savePageEditorSettingsObject(), and showPageEditorSettingsObject().

{
global $lng, $ilSetting;
$lng->loadLanguageModule("content");
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
if( $this->cgrp == "test" )
{
require_once 'Modules/Test/classes/class.ilObjAssessmentFolder.php';
$this->form->setTitle($lng->txt("adve_activation"));
$cb = new ilCheckboxInputGUI($this->lng->txt("advanced_editing_tst_editing"), "tst_page_edit");
$cb->setInfo($this->lng->txt("advanced_editing_tst_editing_desc"));
{
$cb->setChecked(true);
}
$this->form->addItem($cb);
$sh->setTitle($lng->txt("adve_text_content_features"));
$this->form->addItem($sh);
}
elseif ($this->cgrp == "rep")
{
$this->form->setTitle($lng->txt("adve_activation"));
$cb = new ilCheckboxInputGUI($this->lng->txt("advanced_editing_rep_page_editing"), "cat_page_edit");
$cb->setInfo($this->lng->txt("advanced_editing_rep_page_editing_desc"));
if ($ilSetting->get("enable_cat_page_edit"))
{
$cb->setChecked(true);
}
$this->form->addItem($cb);
$sh->setTitle($lng->txt("adve_text_content_features"));
$this->form->addItem($sh);
}
else
{
$this->form->setTitle($lng->txt("adve_text_content_features"));
}
include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
include_once("./Services/COPage/classes/class.ilPageContentGUI.php");
foreach ($buttons as $b => $t)
{
// command button activation
$cb = new ilCheckboxInputGUI(str_replace(":", "", $this->lng->txt("cont_text_".$b)), "active_".$b);
$cb->setChecked(ilPageEditorSettings::lookupSetting($this->cgrp, "active_".$b, true));
$this->form->addItem($cb);
}
// save and cancel commands
$this->form->addCommandButton("savePageEditorSettings", $lng->txt("save"));
$this->form->setFormAction($this->ctrl->getFormAction($this));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAdvancedEditingGUI::initTagsForm (   $a_id,
  $a_cmd,
  $a_title 
)
protected

Definition at line 295 of file class.ilObjAdvancedEditingGUI.php.

References ilMultiSelectInputGUI\setHeight().

Referenced by assessmentObject(), excAssObject(), frmPostObject(), and surveyObject().

{
global $ilAccess;
include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this, $a_cmd));
$form->setTitle($this->lng->txt($a_title));
$alltags = $this->object->getHTMLTags();
$alltags = array_combine($alltags, $alltags);
include_once "Services/Form/classes/class.ilMultiSelectInputGUI.php";
$tags = new ilMultiSelectInputGUI($this->lng->txt("advanced_editing_allow_html_tags"), "html_tags");
$tags->setHeight(400);
$tags->enableSelectAll(true);
$tags->enableSelectedFirst(true);
$tags->setOptions($alltags);
$tags->setValue($this->object->_getUsedHTMLTags($a_id));
$form->addItem($tags);
if ($ilAccess->checkAccess("write", "", $this->object->getRefId()))
{
$form->addCommandButton($a_cmd, $this->lng->txt("save"));
}
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAdvancedEditingGUI::saveAssessmentSettingsObject ( )

Definition at line 238 of file class.ilObjAdvancedEditingGUI.php.

References saveTags().

{
$this->saveTags("assessment", "assessment");
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::saveCharSelectorSettingsObject ( )

Save the settings for the selector of unicode characters.

Definition at line 603 of file class.ilObjAdvancedEditingGUI.php.

References $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilCharSelectorConfig\CONTEXT_ADMIN, initCharSelectorSettingsForm(), and ilUtil\sendSuccess().

{
require_once 'Services/UIComponent/CharSelector/classes/class.ilCharSelectorGUI.php';
$form = $this->initCharSelectorSettingsForm($char_selector);
if ($form->checkInput())
{
$char_selector->getFormValues($form);
$ilSetting->set('char_selector_availability', $char_selector->getConfig()->getAvailability());
$ilSetting->set('char_selector_definition', $char_selector->getConfig()->getDefinition());
ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
$ilCtrl->redirect($this, "showCharSelectorSettings");
}
$form->setValuesByPost();
$tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::saveExcAssSettingsObject ( )

Definition at line 289 of file class.ilObjAdvancedEditingGUI.php.

References saveTags().

{
$this->saveTags("exc_ass", "excAss");
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::saveFrmPostSettingsObject ( )

Definition at line 272 of file class.ilObjAdvancedEditingGUI.php.

References saveTags().

{
$this->saveTags("frm_post", "frmPost");
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::saveGeneralPageSettingsObject ( )

Save general page settings.

Definition at line 537 of file class.ilObjAdvancedEditingGUI.php.

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, initGeneralPageSettingsForm(), and ilUtil\sendSuccess().

{
global $ilCtrl, $lng, $tpl;
$form = $this->initGeneralPageSettingsForm();
if ($form->checkInput())
{
$aset = new ilSetting("adve");
$aset->set("use_physical", $_POST["use_physical"]);
if ($_POST["block_mode_act"])
{
$aset->set("block_mode_minutes", (int) $_POST["block_mode_minutes"]);
}
else
{
$aset->set("block_mode_minutes", 0);
}
ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
$ilCtrl->redirect($this, "showGeneralPageEditorSettings");
}
$form->setValuesByPost();
$tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::saveObject ( )

save object public

Reimplemented from ilObjectGUI.

Definition at line 71 of file class.ilObjAdvancedEditingGUI.php.

References ilUtil\sendSuccess().

{
global $rbacadmin;
// create and insert forum in objecttree
$newObj = parent::saveObject();
// put here object specific stuff
// always send a message
ilUtil::sendSuccess($this->lng->txt("object_added"),true);
$this->ctrl->redirect($this);
//header("Location:".$this->getReturnLocation("save","adm_object.php?".$this->link_params));
//exit();
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::savePageEditorSettingsObject ( )

Save page editor settings form.

Definition at line 446 of file class.ilObjAdvancedEditingGUI.php.

References $_GET, $_POST, $ilCtrl, $ilSetting, ilObjectGUI\$lng, $t, ilObjectGUI\$tpl, ilPageContentGUI\_getCommonBBButtons(), initPageEditorForm(), ilUtil\sendInfo(), and ilPageEditorSettings\writeSetting().

{
if ($this->form->checkInput())
{
include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
include_once("./Services/COPage/classes/class.ilPageContentGUI.php");
foreach ($buttons as $b => $t)
{
$this->form->getInput("active_".$b));
}
if ($_GET["grp"] == "test")
{
$ilSetting->set("enable_tst_page_edit", (int) $_POST["tst_page_edit"]);
}
elseif ($_GET["grp"] == "rep")
{
$ilSetting->set("enable_cat_page_edit", (int) $_POST["cat_page_edit"]);
}
ilUtil::sendInfo($lng->txt("msg_obj_modified"), true);
}
$ilCtrl->setParameter($this, "grp", $_GET["grp"]);
$ilCtrl->redirect($this, "showPageEditorSettings");
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::saveSettingsObject ( )

Save Assessment settings.

Definition at line 211 of file class.ilObjAdvancedEditingGUI.php.

References $_POST, and ilUtil\sendSuccess().

{
if ($_POST["use_tiny"])
{
$this->object->_setRichTextEditor("tinymce");
}
else
{
$this->object->_setRichTextEditor("");
}
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"),true);
$this->ctrl->redirect($this,'settings');
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::saveSurveySettingsObject ( )

Definition at line 255 of file class.ilObjAdvancedEditingGUI.php.

References saveTags().

{
$this->saveTags("survey", "survey");
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::saveTags (   $a_id,
  $a_cmd 
)
protected

Definition at line 324 of file class.ilObjAdvancedEditingGUI.php.

References $_POST, ilUtil\sendInfo(), and ilUtil\sendSuccess().

Referenced by saveAssessmentSettingsObject(), saveExcAssSettingsObject(), saveFrmPostSettingsObject(), and saveSurveySettingsObject().

{
try
{
// get rid of select all
if(is_array($_POST['html_tags']) && $_POST['html_tags'][0] == "")
{
unset($_POST['html_tags'][0]);
}
$this->object->_setUsedHTMLTags((array)$_POST['html_tags'], $a_id);
ilUtil::sendSuccess($this->lng->txt('msg_obj_modified'), true);
}
{
ilUtil::sendInfo($e->getMessage(), true);
}
$this->ctrl->redirect($this, $a_cmd);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAdvancedEditingGUI::settingsObject ( )

Display assessment folder settings form.

Definition at line 187 of file class.ilObjAdvancedEditingGUI.php.

References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, and ilCheckboxInputGUI\setChecked().

{
global $tpl, $ilCtrl, $lng;
$editor = $this->object->_getRichTextEditor();
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($ilCtrl->getFormAction($this));
$this->form->setTitle($lng->txt("adve_activation"));
$cb = new ilCheckboxInputGUI($this->lng->txt("adve_use_tiny_mce"), "use_tiny");
if ($editor == "tinymce")
{
$cb->setChecked(true);
}
$this->form->addItem($cb);
$this->form->addCommandButton("saveSettings", $lng->txt("save"));
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::showCharSelectorSettingsObject ( )

Show the settings for the selector of unicode characters.

Definition at line 584 of file class.ilObjAdvancedEditingGUI.php.

References $ilSetting, ilObjectGUI\$tpl, ilCharSelectorConfig\CONTEXT_ADMIN, and initCharSelectorSettingsForm().

{
global $ilTabs, $ilSetting, $tpl;
$ilTabs->activateTab("adve_char_selector_settings");
require_once 'Services/UIComponent/CharSelector/classes/class.ilCharSelectorGUI.php';
$char_selector->getConfig()->setAvailability($ilSetting->get('char_selector_availability'));
$char_selector->getConfig()->setDefinition($ilSetting->get('char_selector_definition'));
$form = $this->initCharSelectorSettingsForm($char_selector);
$char_selector->setFormValues($form);
$tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::showGeneralPageEditorSettingsObject ( )

Show general page editor settings.

Definition at line 482 of file class.ilObjAdvancedEditingGUI.php.

References ilObjectGUI\$tpl, and initGeneralPageSettingsForm().

{
global $tpl, $ilTabs;
$this->addPageEditorSettingsSubTabs();
$ilTabs->activateTab("adve_page_editor_settings");
$form = $this->initGeneralPageSettingsForm();
$tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::showPageEditorSettingsObject ( )

Show page editor settings.

Definition at line 349 of file class.ilObjAdvancedEditingGUI.php.

References $_GET, $ilCtrl, ilObjectGUI\$tpl, ilPageEditorSettings\getGroups(), and initPageEditorForm().

{
global $tpl, $ilTabs, $ilCtrl;
$this->addPageEditorSettingsSubTabs();
include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
$this->cgrp = $_GET["grp"];
if ($this->cgrp == "")
{
$this->cgrp = key($grps);
}
$ilCtrl->setParameter($this, "grp", $this->cgrp);
$ilTabs->setSubTabActive("adve_grp_".$this->cgrp);
$tpl->setContent($this->form->getHtml());
}

+ Here is the call graph for this function:

ilObjAdvancedEditingGUI::surveyObject ( )

Display settings for surveys.

Definition at line 247 of file class.ilObjAdvancedEditingGUI.php.

References initTagsForm().

{
$form = $this->initTagsForm("survey", "saveSurveySettings",
"advanced_editing_survey_settings");
$this->tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

Field Documentation

ilObjAdvancedEditingGUI::$conditions

Definition at line 19 of file class.ilObjAdvancedEditingGUI.php.


The documentation for this class was generated from the following file: