ILIAS
Release_4_2_x_branch Revision 61807
|
Style settings GUI class. More...
Public Member Functions | |
ilObjStyleSettingsGUI ($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true) | |
Constructor. | |
& | executeCommand () |
Execute command. | |
saveObject () | |
Save object. | |
editBasicSettingsObject () | |
edit basic style settings | |
saveBasicStyleSettingsObject () | |
save basic style settings | |
editContentStylesObject () | |
view list of styles | |
moveLMStylesObject () | |
move learning modules from one style to another | |
moveIndividualStylesObject () | |
move all learning modules with individual styles to new style | |
confirmDeleteIndividualStyles () | |
editSystemStylesObject () | |
edit system styles | |
saveStyleSettingsObject () | |
save skin and style settings | |
deleteStyleObject ($a_error=false) | |
display deletion confirmation screen | |
confirmedDeleteObject () | |
delete selected style objects | |
toggleGlobalDefaultObject () | |
Toggle global default style. | |
toggleGlobalFixedObject () | |
Toggle global fixed style. | |
saveActiveStylesObject () | |
Save active styles. | |
showActions ($with_subobjects=false) | |
show possible action (form buttons) | |
cancelDeleteObject () | |
cancel deletion of object | |
setScopeObject () | |
saveScopeObject () | |
save scope for style | |
viewPageLayoutsObject () | |
view list of page layouts | |
activateObject ($a_activate=true) | |
deactivateObject () | |
deletePglObject () | |
display deletion confirmation screen | |
cancelDeletePgObject () | |
cancel deletion of Page Layout | |
confirmedDeletePgObject () | |
conform deletion of Page Layout | |
addPageLayoutObject ($a_form=null) | |
initAddPageLayoutForm () | |
createPgObject () | |
cancelCreateObject () | |
editPgObject () | |
setTabs () | |
set admin tabs public | |
getAdminTabs (&$tabs_gui) | |
administration tabs show only permissions and trash folder | |
getTabs (&$tabs_gui) | |
get tabs public | |
createStyleObject () | |
Create new style. | |
savePageLayoutTypesObject () | |
Save page layout types. | |
exportLayoutObject () | |
Export page layout template object. | |
importPageLayoutFormObject () | |
Import page layout. | |
initPageLayoutImportForm () | |
Init page layout import form. | |
importPageLayoutObject () | |
Import page layout. | |
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 () | |
undeleteObject () | |
Get objects back from trash. | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
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. | |
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 | |
$peditor_active = false | |
$pg_id = null | |
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 |
Additional Inherited Members | |
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. | |
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) | |
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) | |
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. |
Style settings GUI class.
ilObjStyleSettingsGUI: ilPermissionGUI, ilPageLayoutGUI
Definition at line 17 of file class.ilObjStyleSettingsGUI.php.
ilObjStyleSettingsGUI::activateObject | ( | $a_activate = true | ) |
Definition at line 867 of file class.ilObjStyleSettingsGUI.php.
References $_POST, ilUtil\sendInfo(), and ilUtil\sendSuccess().
Referenced by deactivateObject().
ilObjStyleSettingsGUI::addPageLayoutObject | ( | $a_form = null | ) |
Definition at line 1004 of file class.ilObjStyleSettingsGUI.php.
References initAddPageLayoutForm().
Referenced by createPgObject().
ilObjStyleSettingsGUI::cancelCreateObject | ( | ) |
Definition at line 1146 of file class.ilObjStyleSettingsGUI.php.
References viewPageLayoutsObject().
ilObjStyleSettingsGUI::cancelDeleteObject | ( | ) |
cancel deletion of object
public
Reimplemented from ilObjectGUI.
Definition at line 780 of file class.ilObjStyleSettingsGUI.php.
References ilUtil\sendInfo().
ilObjStyleSettingsGUI::cancelDeletePgObject | ( | ) |
cancel deletion of Page Layout
Definition at line 980 of file class.ilObjStyleSettingsGUI.php.
References ilUtil\sendInfo().
ilObjStyleSettingsGUI::confirmDeleteIndividualStyles | ( | ) |
Definition at line 317 of file class.ilObjStyleSettingsGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, and ilObject\_lookupTitle().
Referenced by moveLMStylesObject().
ilObjStyleSettingsGUI::confirmedDeleteObject | ( | ) |
delete selected style objects
Reimplemented from ilObjectGUI.
Definition at line 638 of file class.ilObjStyleSettingsGUI.php.
References $_SESSION, ilObjectGUI\$ilias, ilObjectGUI\getReturnLocation(), and ilUtil\redirect().
ilObjStyleSettingsGUI::confirmedDeletePgObject | ( | ) |
conform deletion of Page Layout
Definition at line 991 of file class.ilObjStyleSettingsGUI.php.
References $_SESSION, and $ilDB.
ilObjStyleSettingsGUI::createPgObject | ( | ) |
Definition at line 1101 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, addPageLayoutObject(), and initAddPageLayoutForm().
ilObjStyleSettingsGUI::createStyleObject | ( | ) |
Create new style.
Definition at line 1216 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl.
ilObjStyleSettingsGUI::deactivateObject | ( | ) |
Definition at line 882 of file class.ilObjStyleSettingsGUI.php.
References activateObject().
ilObjStyleSettingsGUI::deletePglObject | ( | ) |
display deletion confirmation screen
Definition at line 891 of file class.ilObjStyleSettingsGUI.php.
References $_POST, $_SESSION, ilUtil\getImageTagByType(), ilObjectGUI\getTemplateFile(), ilUtil\sendInfo(), and ilUtil\switchColor().
ilObjStyleSettingsGUI::deleteStyleObject | ( | $a_error = false | ) |
display deletion confirmation screen
public
Definition at line 581 of file class.ilObjStyleSettingsGUI.php.
References $_POST, $_SESSION, ilObject\_lookupTitle(), ilUtil\getImagePath(), ilUtil\sendInfo(), and ilUtil\switchColor().
ilObjStyleSettingsGUI::editBasicSettingsObject | ( | ) |
edit basic style settings
Definition at line 115 of file class.ilObjStyleSettingsGUI.php.
ilObjStyleSettingsGUI::editContentStylesObject | ( | ) |
view list of styles
Definition at line 209 of file class.ilObjStyleSettingsGUI.php.
References ilObjectGUI\$data, $ilCtrl, ilObjectGUI\$ilias, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObjContentObject\_getNrLMsIndividualStyles(), ilObjContentObject\_getNrLMsNoStyle(), ilObjContentObject\_getNrOfAssignedLMs(), ilObjStyleSheet\_lookupActive(), and ilSelectInputGUI\setOptions().
ilObjStyleSettingsGUI::editPgObject | ( | ) |
Definition at line 1150 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, and executeCommand().
ilObjStyleSettingsGUI::editSystemStylesObject | ( | ) |
edit system styles
Definition at line 338 of file class.ilObjStyleSettingsGUI.php.
References $_GET, ilObjectGUI\$ilias, ilObjUser\_getAllUserAssignedStyles(), ilObjUser\_getNumberOfUsersForStyle(), and ilObjStyleSettings\_lookupActivatedStyle().
& ilObjStyleSettingsGUI::executeCommand | ( | ) |
Execute command.
Reimplemented from ilObjectGUI.
Definition at line 46 of file class.ilObjStyleSettingsGUI.php.
References $_GET, $cmd, $ret, and ilObjectGUI\prepareOutput().
Referenced by editPgObject().
ilObjStyleSettingsGUI::exportLayoutObject | ( | ) |
Export page layout template object.
Definition at line 1264 of file class.ilObjStyleSettingsGUI.php.
References $_GET, ilUtil\deliverFile(), ilUtil\ilTempnam(), and ilUtil\makeDir().
ilObjStyleSettingsGUI::getAdminTabs | ( | & | $tabs_gui | ) |
administration tabs show only permissions and trash folder
Reimplemented from ilObjectGUI.
Definition at line 1170 of file class.ilObjStyleSettingsGUI.php.
References getTabs().
ilObjStyleSettingsGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs public
object | tabs gui object |
Reimplemented from ilObjectGUI.
Definition at line 1180 of file class.ilObjStyleSettingsGUI.php.
References ilObjectGUI\$lng.
Referenced by getAdminTabs().
ilObjStyleSettingsGUI::ilObjStyleSettingsGUI | ( | $a_data, | |
$a_id, | |||
$a_call_by_reference, | |||
$a_prepare_output = true |
|||
) |
Constructor.
Definition at line 26 of file class.ilObjStyleSettingsGUI.php.
References $cmd, $ilCtrl, ilObjectGUI\$lng, and ilObjectGUI\ilObjectGUI().
ilObjStyleSettingsGUI::importPageLayoutFormObject | ( | ) |
Import page layout.
Definition at line 1293 of file class.ilObjStyleSettingsGUI.php.
References ilObjectGUI\$tpl, and initPageLayoutImportForm().
ilObjStyleSettingsGUI::importPageLayoutObject | ( | ) |
Import page layout.
Definition at line 1330 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilPageLayout\import(), initPageLayoutImportForm(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::initAddPageLayoutForm | ( | ) |
Definition at line 1018 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilPageLayout\getAvailableModules(), ilPageLayout\getLayouts(), ilSelectInputGUI\setOptions(), ilTextInputGUI\setSize(), and ilTextAreaInputGUI\setValue().
Referenced by addPageLayoutObject(), and createPgObject().
ilObjStyleSettingsGUI::initPageLayoutImportForm | ( | ) |
Init page layout import form.
Definition at line 1305 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, ilObjectGUI\$lng, and ilFileInputGUI\setSuffixes().
Referenced by importPageLayoutFormObject(), and importPageLayoutObject().
ilObjStyleSettingsGUI::moveIndividualStylesObject | ( | ) |
move all learning modules with individual styles to new style
Definition at line 307 of file class.ilObjStyleSettingsGUI.php.
References $_GET, and ilObjContentObject\_moveLMStyles().
ilObjStyleSettingsGUI::moveLMStylesObject | ( | ) |
move learning modules from one style to another
Definition at line 290 of file class.ilObjStyleSettingsGUI.php.
References $_POST, ilObjContentObject\_moveLMStyles(), and confirmDeleteIndividualStyles().
ilObjStyleSettingsGUI::saveActiveStylesObject | ( | ) |
Save active styles.
Definition at line 708 of file class.ilObjStyleSettingsGUI.php.
References $_POST, ilObjStyleSheet\_writeActive(), and ilUtil\redirect().
ilObjStyleSettingsGUI::saveBasicStyleSettingsObject | ( | ) |
save basic style settings
Definition at line 191 of file class.ilObjStyleSettingsGUI.php.
References $_POST, ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::saveObject | ( | ) |
Save object.
Reimplemented from ilObjectGUI.
Definition at line 97 of file class.ilObjStyleSettingsGUI.php.
References ilObjectGUI\getReturnLocation(), ilUtil\redirect(), and ilUtil\sendInfo().
ilObjStyleSettingsGUI::savePageLayoutTypesObject | ( | ) |
Save page layout types.
Definition at line 1227 of file class.ilObjStyleSettingsGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, $t, and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::saveScopeObject | ( | ) |
save scope for style
Definition at line 824 of file class.ilObjStyleSettingsGUI.php.
References $_GET, ilObjectGUI\$ilias, ilObjStyleSheet\_writeScope(), and ilUtil\redirect().
ilObjStyleSettingsGUI::saveStyleSettingsObject | ( | ) |
save skin and style settings
Definition at line 486 of file class.ilObjStyleSettingsGUI.php.
References $_POST, $ilCtrl, ilObjStyleSettings\_activateStyle(), ilObjStyleSettings\_deactivateStyle(), ilObjUser\_getAllUserAssignedStyles(), ilObjUser\_getNumberOfUsersForStyle(), ilObjUser\_moveUsersToStyle(), and ilUtil\sendInfo().
ilObjStyleSettingsGUI::setScopeObject | ( | ) |
Definition at line 789 of file class.ilObjStyleSettingsGUI.php.
References $_GET, and IL_FM_POSITIVE.
ilObjStyleSettingsGUI::setTabs | ( | ) |
set admin tabs public
Reimplemented from ilObjectGUI.
Definition at line 1165 of file class.ilObjStyleSettingsGUI.php.
ilObjStyleSettingsGUI::showActions | ( | $with_subobjects = false | ) |
show possible action (form buttons)
boolean | public |
Definition at line 732 of file class.ilObjStyleSettingsGUI.php.
References ilUtil\getImagePath(), and ilObjectGUI\showPossibleSubObjects().
ilObjStyleSettingsGUI::toggleGlobalDefaultObject | ( | ) |
Toggle global default style.
Definition at line 658 of file class.ilObjStyleSettingsGUI.php.
References $_GET, $ilSetting, ilObjectGUI\$lng, ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::toggleGlobalFixedObject | ( | ) |
Toggle global fixed style.
Definition at line 683 of file class.ilObjStyleSettingsGUI.php.
References $_GET, $ilSetting, ilObjectGUI\$lng, ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::viewPageLayoutsObject | ( | ) |
view list of page layouts
Definition at line 842 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, ilObjectGUI\$lng, and ilObjectGUI\$tpl.
Referenced by cancelCreateObject().
ilObjStyleSettingsGUI::$peditor_active = false |
Definition at line 20 of file class.ilObjStyleSettingsGUI.php.
ilObjStyleSettingsGUI::$pg_id = null |
Definition at line 21 of file class.ilObjStyleSettingsGUI.php.