ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilStructureObjectGUI. More...
Public Member Functions | |
ilStructureObjectGUI (&$a_content_obj, &$a_tree) | |
Constructor public. | |
setStructureObject (&$a_st_object) | |
set structure object | |
getType () | |
this function is called by condition handler gui interface | |
& | executeCommand () |
execute command | |
create () | |
create new page or chapter in chapter | |
edit () | |
view () | |
showHierarchy () | |
Show subhiearchy of pages and subchapters. | |
cutItems ($a_return="view") | |
Copy items to clipboard, then cut them from the current tree. | |
copyItems ($a_return="view") | |
Copy items to clipboard. | |
saveAllTitles () | |
Save all titles of chapters/pages. | |
subchap () | |
add_cell ($val, $link="") | |
output a cell in object list | |
save () | |
save new chapter | |
putInTree () | |
put chapter into tree | |
cutPage () | |
cut page | |
copyPage () | |
copy page | |
pastePage () | |
paste page | |
cutChapter () | |
Cut chapter(s) | |
copyChapter () | |
copy a single chapter (selection) | |
pasteChapter () | |
paste chapter | |
activatePages () | |
activates or deactivates pages | |
initConditionHandlerInterface () | |
cancel () | |
cancel creation of new page or chapter | |
setTabs () | |
output tabs | |
insertChapter ($a_as_sub=false) | |
Insert (multiple) chapters at node. | |
insertSubchapter () | |
Insert (multiple) subchapters at node. | |
insertChapterClip ($a_as_sub=false, $a_return="view") | |
Insert Chapter from clipboard. | |
insertSubchapterClip () | |
Insert Chapter from clipboard. | |
insertPage () | |
Insert (multiple) pages at node. | |
insertPageClip () | |
Insert pages from clipboard. | |
proceedDragDrop () | |
Perform drag and drop action. | |
setPageLayout () | |
Set layout for multipl pages. | |
initSetPageLayoutForm () | |
Init set page layout form. | |
savePageLayout () | |
Save page layout. | |
editMasterLanguage () | |
Edit master language. | |
switchToLanguage () | |
Switch to language. | |
Public Member Functions inherited from ilLMObjectGUI | |
ilLMObjectGUI (&$a_content_obj) | |
constructor | |
setActions ($a_actions="") | |
build action array | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. | |
delete () | |
Confirm deletion screen (delete page or structure objects) | |
cancelDelete () | |
cancel deletion of page/structure objects | |
confirmedDelete () | |
page and structure object deletion | |
showActions ($a_actions) | |
show possible action (form buttons) | |
checkTree () | |
check the content object tree |
Static Public Member Functions | |
static | _goto ($a_target, $a_target_ref_id="") |
redirect script |
Data Fields | |
$obj | |
$tree | |
Data Fields inherited from ilLMObjectGUI | |
$ilias | |
$tpl | |
$lng | |
$obj | |
$ctrl | |
$content_object | |
$actions |
Class ilStructureObjectGUI.
User Interface for Structure Objects Editing
ilStructureObjectGUI: ilConditionHandlerGUI, ilMDEditorGUI
Definition at line 21 of file class.ilStructureObjectGUI.php.
|
static |
redirect script
string | $a_target |
Definition at line 640 of file class.ilStructureObjectGUI.php.
References $_GET, $ilErr, ilLMObjectGUI\$lng, $ref_id, ilObject\_getAllReferences(), ilObjectGUI\_gotoRepositoryRoot(), ilLMObject\_lookupContObjID(), ilObject\_lookupTitle(), exit, and ilUtil\sendFailure().
ilStructureObjectGUI::activatePages | ( | ) |
activates or deactivates pages
Definition at line 510 of file class.ilStructureObjectGUI.php.
References $_POST, ilLMObjectGUI\$lng, $path, ilPageObject\_lookupActive(), ilLMObject\_lookupType(), ilPageObject\_writeActive(), and ilUtil\sendFailure().
ilStructureObjectGUI::add_cell | ( | $val, | |
$link = "" |
|||
) |
output a cell in object list
Reimplemented from ilLMObjectGUI.
Definition at line 371 of file class.ilStructureObjectGUI.php.
ilStructureObjectGUI::cancel | ( | ) |
cancel creation of new page or chapter
Definition at line 588 of file class.ilStructureObjectGUI.php.
References $_GET.
ilStructureObjectGUI::copyChapter | ( | ) |
copy a single chapter (selection)
Definition at line 492 of file class.ilStructureObjectGUI.php.
References copyItems().
ilStructureObjectGUI::copyItems | ( | $a_return = "view" | ) |
Copy items to clipboard.
Definition at line 229 of file class.ilStructureObjectGUI.php.
References $_POST, $ilCtrl, ilLMObjectGUI\$lng, ilLMObject\clipboardCopy(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilEditClipboard\setAction(), ilUtil\stripSlashesArray(), and ilLMObject\uniqueTypesCheck().
Referenced by copyChapter(), and copyPage().
ilStructureObjectGUI::copyPage | ( | ) |
copy page
Definition at line 460 of file class.ilStructureObjectGUI.php.
References copyItems().
ilStructureObjectGUI::create | ( | ) |
create new page or chapter in chapter
Reimplemented from ilLMObjectGUI.
Definition at line 115 of file class.ilStructureObjectGUI.php.
References $_GET, and setTabs().
ilStructureObjectGUI::cutChapter | ( | ) |
Cut chapter(s)
Definition at line 484 of file class.ilStructureObjectGUI.php.
References cutItems().
ilStructureObjectGUI::cutItems | ( | $a_return = "view" | ) |
Copy items to clipboard, then cut them from the current tree.
Definition at line 188 of file class.ilStructureObjectGUI.php.
References $_POST, $ilCtrl, ilLMObjectGUI\$lng, ilLMObject\clipboardCut(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilEditClipboard\setAction(), ilUtil\stripSlashesArray(), and ilLMObject\uniqueTypesCheck().
Referenced by cutChapter(), and cutPage().
ilStructureObjectGUI::cutPage | ( | ) |
cut page
Definition at line 452 of file class.ilStructureObjectGUI.php.
References cutItems().
ilStructureObjectGUI::edit | ( | ) |
Definition at line 124 of file class.ilStructureObjectGUI.php.
References view().
ilStructureObjectGUI::editMasterLanguage | ( | ) |
Edit master language.
@return |
Definition at line 999 of file class.ilStructureObjectGUI.php.
References $ilCtrl.
& ilStructureObjectGUI::executeCommand | ( | ) |
execute command
Definition at line 60 of file class.ilStructureObjectGUI.php.
References $_POST, $cmd, $ret, ilMDEditorGUI\addObserver(), initConditionHandlerInterface(), and setTabs().
ilStructureObjectGUI::getType | ( | ) |
this function is called by condition handler gui interface
Definition at line 52 of file class.ilStructureObjectGUI.php.
ilStructureObjectGUI::ilStructureObjectGUI | ( | & | $a_content_obj, |
& | $a_tree | ||
) |
Constructor public.
Definition at line 30 of file class.ilStructureObjectGUI.php.
References ilLMObjectGUI\$ilias, ilLMObjectGUI\$lng, ilLMObjectGUI\$tpl, and ilLMObjectGUI\ilLMObjectGUI().
ilStructureObjectGUI::initConditionHandlerInterface | ( | ) |
Definition at line 571 of file class.ilStructureObjectGUI.php.
Referenced by executeCommand().
ilStructureObjectGUI::initSetPageLayoutForm | ( | ) |
Init set page layout form.
Definition at line 946 of file class.ilStructureObjectGUI.php.
References $_POST, $ilCtrl, ilLMObjectGUI\$lng, and ilObjContentObjectGUI\getLayoutOption().
Referenced by setPageLayout().
ilStructureObjectGUI::insertChapter | ( | $a_as_sub = false | ) |
Insert (multiple) chapters at node.
Definition at line 686 of file class.ilStructureObjectGUI.php.
References $ilCtrl, ilLMObjectGUI\$lng, ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostMulti(), ilHierarchyFormGUI\getPostNodeId(), IL_FIRST_NODE, and putInTree().
Referenced by insertSubchapter().
ilStructureObjectGUI::insertChapterClip | ( | $a_as_sub = false , |
|
$a_return = "view" |
|||
) |
Insert Chapter from clipboard.
Definition at line 747 of file class.ilStructureObjectGUI.php.
References $ilCtrl, $ilLog, $ilUser, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), IL_FIRST_NODE, ilLMObject\pasteTree(), and ilLMObject\updateInternalLinks().
Referenced by insertSubchapterClip(), and pasteChapter().
ilStructureObjectGUI::insertPage | ( | ) |
Insert (multiple) pages at node.
Definition at line 829 of file class.ilStructureObjectGUI.php.
References $ilCtrl, ilLMObjectGUI\$lng, ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostMulti(), ilHierarchyFormGUI\getPostNodeId(), IL_FIRST_NODE, and putInTree().
ilStructureObjectGUI::insertPageClip | ( | ) |
Insert pages from clipboard.
Definition at line 865 of file class.ilStructureObjectGUI.php.
References $ilCtrl, $ilUser, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), IL_FIRST_NODE, ilLMObject\pasteTree(), and ilLMObject\updateInternalLinks().
Referenced by pastePage().
ilStructureObjectGUI::insertSubchapter | ( | ) |
Insert (multiple) subchapters at node.
Definition at line 737 of file class.ilStructureObjectGUI.php.
References $ilCtrl, and insertChapter().
ilStructureObjectGUI::insertSubchapterClip | ( | ) |
Insert Chapter from clipboard.
Definition at line 821 of file class.ilStructureObjectGUI.php.
References insertChapterClip().
ilStructureObjectGUI::pasteChapter | ( | ) |
paste chapter
Definition at line 500 of file class.ilStructureObjectGUI.php.
References $ilUser, and insertChapterClip().
ilStructureObjectGUI::pastePage | ( | ) |
paste page
Definition at line 468 of file class.ilStructureObjectGUI.php.
References $ilUser, and insertPageClip().
ilStructureObjectGUI::proceedDragDrop | ( | ) |
Perform drag and drop action.
Definition at line 911 of file class.ilStructureObjectGUI.php.
References $_POST, and $ilCtrl.
ilStructureObjectGUI::putInTree | ( | ) |
put chapter into tree
Reimplemented from ilLMObjectGUI.
Definition at line 418 of file class.ilStructureObjectGUI.php.
References $_GET, $tree, IL_FIRST_NODE, and IL_LAST_NODE.
Referenced by insertChapter(), insertPage(), and save().
ilStructureObjectGUI::save | ( | ) |
save new chapter
Definition at line 392 of file class.ilStructureObjectGUI.php.
References $_GET, $_POST, ilLMObjectGUI\checkTree(), putInTree(), and ilUtil\stripSlashes().
ilStructureObjectGUI::saveAllTitles | ( | ) |
Save all titles of chapters/pages.
Definition at line 269 of file class.ilStructureObjectGUI.php.
References $_GET, $_POST, $ilCtrl, ilLMObject\saveTitles(), and ilUtil\stripSlashesArray().
ilStructureObjectGUI::savePageLayout | ( | ) |
Save page layout.
Definition at line 978 of file class.ilStructureObjectGUI.php.
References $_POST, $ilCtrl, ilLMObjectGUI\$lng, ilUtil\sendSuccess(), ilUtil\stripSlashes(), and ilLMObject\writeLayout().
ilStructureObjectGUI::setPageLayout | ( | ) |
Set layout for multipl pages.
Definition at line 928 of file class.ilStructureObjectGUI.php.
References $_POST, $ilCtrl, ilLMObjectGUI\$lng, ilLMObjectGUI\$tpl, initSetPageLayoutForm(), and ilUtil\sendFailure().
ilStructureObjectGUI::setStructureObject | ( | & | $a_st_object | ) |
set structure object
object | $a_st_object | structure object |
Definition at line 43 of file class.ilStructureObjectGUI.php.
ilStructureObjectGUI::setTabs | ( | ) |
output tabs
Definition at line 607 of file class.ilStructureObjectGUI.php.
References $ilUser, ilLMObjectGUI\$lng, and ilUtil\getImagePath().
Referenced by create(), executeCommand(), showHierarchy(), and subchap().
ilStructureObjectGUI::showHierarchy | ( | ) |
Show subhiearchy of pages and subchapters.
Definition at line 143 of file class.ilStructureObjectGUI.php.
References $_GET, $ilCtrl, ilLMObjectGUI\$lng, ilUtil\getImagePath(), ilObjContentObjectGUI\getMultiLangHeader(), ilFormGUI\setFormAction(), and setTabs().
Referenced by view().
ilStructureObjectGUI::subchap | ( | ) |
Definition at line 281 of file class.ilStructureObjectGUI.php.
References $_GET, $ilCtrl, $ilUser, ilLMObjectGUI\$lng, $tree, ilStructureObject\_getPresentationTitle(), ilUtil\formSelect(), ilUtil\getImagePath(), IL_FIRST_NODE, setTabs(), ilLMObjectGUI\showActions(), and ilUtil\switchColor().
ilStructureObjectGUI::switchToLanguage | ( | ) |
ilStructureObjectGUI::view | ( | ) |
Definition at line 132 of file class.ilStructureObjectGUI.php.
References $ilCtrl, $ilUser, ilLMObjectGUI\$lng, $tree, and showHierarchy().
Referenced by edit().
ilStructureObjectGUI::$obj |
Definition at line 23 of file class.ilStructureObjectGUI.php.
ilStructureObjectGUI::$tree |
Definition at line 24 of file class.ilStructureObjectGUI.php.
Referenced by putInTree(), subchap(), and view().