ILIAS
Release_5_0_x_branch Revision 61816
|
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. | |
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 | |
moveUserStylesObject () | |
Move user styles. | |
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 () | |
Set scope. | |
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. | |
assignStylesToCatsObject () | |
Assign styles to cats. | |
addStyleCatAssignmentObject () | |
Add style category assignment. | |
saveStyleCatAssignmentObject () | |
Save style category assignment. | |
deleteSysStyleCatAssignmentsObject () | |
Delete system style to category assignments. | |
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 () | |
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 | |
$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 | |
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. | |
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 () | |
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. | |
validateCustom (ilPropertyFormGUI $a_form) | |
Validate custom values (if not possible with checkInput()) | |
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. |
Style settings GUI class.
ilObjStyleSettingsGUI: ilPermissionGUI, ilPageLayoutGUI
Definition at line 17 of file class.ilObjStyleSettingsGUI.php.
ilObjStyleSettingsGUI::activateObject | ( | $a_activate = true | ) |
Definition at line 633 of file class.ilObjStyleSettingsGUI.php.
References $_POST, ilUtil\sendInfo(), and ilUtil\sendSuccess().
Referenced by deactivateObject().
ilObjStyleSettingsGUI::addPageLayoutObject | ( | $a_form = null | ) |
Definition at line 714 of file class.ilObjStyleSettingsGUI.php.
References initAddPageLayoutForm().
Referenced by createPgObject().
ilObjStyleSettingsGUI::addStyleCatAssignmentObject | ( | ) |
Add style category assignment.
@return |
Definition at line 1108 of file class.ilObjStyleSettingsGUI.php.
References $_GET, $_REQUEST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObjectGUI\$tree, and ilExplorer\setExpand().
ilObjStyleSettingsGUI::assignStylesToCatsObject | ( | ) |
Assign styles to cats.
@return |
Definition at line 1063 of file class.ilObjStyleSettingsGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, $options, $si, $tab, ilObjectGUI\$tpl, and ilStyleDefinition\getAllSkinStyles().
ilObjStyleSettingsGUI::cancelCreateObject | ( | ) |
Definition at line 853 of file class.ilObjStyleSettingsGUI.php.
References viewPageLayoutsObject().
ilObjStyleSettingsGUI::cancelDeleteObject | ( | ) |
cancel deletion of object
public
Reimplemented from ilObjectGUI.
Definition at line 557 of file class.ilObjStyleSettingsGUI.php.
References ilUtil\sendInfo().
ilObjStyleSettingsGUI::cancelDeletePgObject | ( | ) |
cancel deletion of Page Layout
Definition at line 694 of file class.ilObjStyleSettingsGUI.php.
References ilUtil\sendInfo().
ilObjStyleSettingsGUI::confirmDeleteIndividualStyles | ( | ) |
Definition at line 223 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 415 of file class.ilObjStyleSettingsGUI.php.
References $_POST, ilObjectGUI\$ilias, ilObjectGUI\getReturnLocation(), and ilUtil\redirect().
ilObjStyleSettingsGUI::confirmedDeletePgObject | ( | ) |
conform deletion of Page Layout
Definition at line 703 of file class.ilObjStyleSettingsGUI.php.
References $_POST.
ilObjStyleSettingsGUI::createPgObject | ( | ) |
Definition at line 808 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, addPageLayoutObject(), and initAddPageLayoutForm().
ilObjStyleSettingsGUI::createStyleObject | ( | ) |
Create new style.
Definition at line 920 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl.
ilObjStyleSettingsGUI::deactivateObject | ( | ) |
Definition at line 648 of file class.ilObjStyleSettingsGUI.php.
References activateObject().
ilObjStyleSettingsGUI::deletePglObject | ( | ) |
display deletion confirmation screen
Definition at line 657 of file class.ilObjStyleSettingsGUI.php.
References $_POST, and ilUtil\getImageTagByType().
ilObjStyleSettingsGUI::deleteStyleObject | ( | $a_error = false | ) |
display deletion confirmation screen
public
Definition at line 385 of file class.ilObjStyleSettingsGUI.php.
References $_POST, and ilUtil\getImageTagByType().
ilObjStyleSettingsGUI::deleteSysStyleCatAssignmentsObject | ( | ) |
Delete system style to category assignments.
Definition at line 1163 of file class.ilObjStyleSettingsGUI.php.
References $_GET, $_POST, $ilCtrl, ilObjectGUI\$lng, ilStyleDefinition\deleteSystemStyleCategoryAssignment(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::editContentStylesObject | ( | ) |
view list of styles
Definition at line 115 of file class.ilObjStyleSettingsGUI.php.
References ilObjectGUI\$data, $ilCtrl, ilObjectGUI\$ilias, ilObjectGUI\$lng, $si, ilObjectGUI\$tpl, ilObjContentObject\_getNrLMsIndividualStyles(), ilObjContentObject\_getNrLMsNoStyle(), ilObjContentObject\_getNrOfAssignedLMs(), and ilObjStyleSheet\_lookupActive().
ilObjStyleSettingsGUI::editPgObject | ( | ) |
Definition at line 857 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, and executeCommand().
ilObjStyleSettingsGUI::editSystemStylesObject | ( | ) |
edit system styles
Definition at line 244 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, ilObjectGUI\$ilias, ilObjectGUI\$lng, $options, $si, $tab, ilObjectGUI\$tpl, and ilStyleDefinition\getAllSkinStyles().
& 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 968 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 877 of file class.ilObjStyleSettingsGUI.php.
References getTabs().
ilObjStyleSettingsGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs public
object | tabs gui object |
Reimplemented from ilObjectGUI.
Definition at line 887 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 997 of file class.ilObjStyleSettingsGUI.php.
References ilObjectGUI\$tpl, and initPageLayoutImportForm().
ilObjStyleSettingsGUI::importPageLayoutObject | ( | ) |
Import page layout.
Definition at line 1034 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilPageLayout\import(), initPageLayoutImportForm(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::initAddPageLayoutForm | ( | ) |
Definition at line 728 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, ilObjectGUI\$lng, $options, $si, 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 1009 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 213 of file class.ilObjStyleSettingsGUI.php.
References $_GET, and ilObjContentObject\_moveLMStyles().
ilObjStyleSettingsGUI::moveLMStylesObject | ( | ) |
move learning modules from one style to another
Definition at line 196 of file class.ilObjStyleSettingsGUI.php.
References $_POST, ilObjContentObject\_moveLMStyles(), and confirmDeleteIndividualStyles().
ilObjStyleSettingsGUI::moveUserStylesObject | ( | ) |
Move user styles.
@return |
Definition at line 346 of file class.ilObjStyleSettingsGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjUser\_getAllUserAssignedStyles(), ilObjUser\_moveUsersToStyle(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::saveActiveStylesObject | ( | ) |
Save active styles.
Definition at line 485 of file class.ilObjStyleSettingsGUI.php.
References $_POST, ilObjStyleSheet\_writeActive(), and ilUtil\redirect().
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 931 of file class.ilObjStyleSettingsGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, $t, and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::saveScopeObject | ( | ) |
Save scope for style.
Definition at line 588 of file class.ilObjStyleSettingsGUI.php.
References $_GET, ilObjectGUI\$tree, ilObjStyleSheet\_writeScope(), ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::saveStyleCatAssignmentObject | ( | ) |
Save style category assignment.
@return |
Definition at line 1141 of file class.ilObjStyleSettingsGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilUtil\sendSuccess(), and ilStyleDefinition\writeSystemStyleCategoryAssignment().
ilObjStyleSettingsGUI::saveStyleSettingsObject | ( | ) |
save skin and style settings
Definition at line 290 of file class.ilObjStyleSettingsGUI.php.
References $_POST, $ilCtrl, ilObjStyleSettings\_activateStyle(), ilObjStyleSettings\_deactivateStyle(), ilObjUser\_getNumberOfUsersForStyle(), ilStyleDefinition\getAllSkinStyles(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::setScopeObject | ( | ) |
Set scope.
@return |
Definition at line 570 of file class.ilObjStyleSettingsGUI.php.
References $ilCtrl, and ilObjectGUI\$tpl.
ilObjStyleSettingsGUI::setTabs | ( | ) |
set admin tabs public
Reimplemented from ilObjectGUI.
Definition at line 872 of file class.ilObjStyleSettingsGUI.php.
ilObjStyleSettingsGUI::showActions | ( | $with_subobjects = false | ) |
show possible action (form buttons)
boolean | public |
Definition at line 509 of file class.ilObjStyleSettingsGUI.php.
References ilUtil\getImagePath(), and ilObjectGUI\showPossibleSubObjects().
ilObjStyleSettingsGUI::toggleGlobalDefaultObject | ( | ) |
Toggle global default style.
Definition at line 435 of file class.ilObjStyleSettingsGUI.php.
References $_GET, $ilSetting, ilObjectGUI\$lng, ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjStyleSettingsGUI::toggleGlobalFixedObject | ( | ) |
Toggle global fixed style.
Definition at line 460 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 608 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.