ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
|
Public Member Functions | |
__construct (\DOMDocument $dom, ?PCDefinition $def=null) | |
getContentDomNode (string $a_hier_id, string $a_pc_id="") | |
deleteContent (\ilPageObject $page, string $a_hid, string $a_pcid="", bool $move_operation=false) | |
deleteContents (\ilPageObject $page, array $a_hids, bool $a_self_ass=false, bool $move_operation=false) | |
handleDeleteContent (\ilPageObject $page, $a_node=null, $move_operation=false) | |
switchEnableMultiple (\ilPageObject $page, array $a_hids, bool $a_self_ass=false) | |
setInitialOpenedContent (string $a_type="", int $a_id=0, string $a_target="") | |
getInitialOpenedContent () | |
Get initial opened content. More... | |
downloadFile (\ilPageObject $page, string $file_link_id) | |
insertInstIntoIDs (string $a_inst, bool $a_res_ref_to_obj_id=true) | |
inserts installation id into ids (e.g. More... | |
pasteContents (\ilObjUser $user, string $a_hier_id, \ilPageObject $page, bool $a_self_ass=false) | |
copyXmlContent (\ilPageObject $page, bool $a_clone_mobs=false, int $a_new_parent_id=0, int $obj_copy_id=0, bool $self_ass=true) | |
insertContentNode (\DOMNode $a_cont_node, string $a_pos, int $a_mode=IL_INSERT_AFTER, string $a_pcid="") | |
insertContent (\ilPageContent $a_cont_obj, string $a_pos, int $a_mode=IL_INSERT_AFTER, string $a_pcid="", bool $remove_placeholder=true, bool $placeholder_enabled=false) | |
moveContentAfter (\ilPageObject $page, string $a_source, string $a_target, string $a_spcid="", string $a_tpcid="") | |
move content object from position $a_source before position $a_target (both hierarchical content ids) More... | |
copyContents (array $a_hids, \ilObjUser $user) | |
Copy contents to clipboard. More... | |
Protected Member Functions | |
getPageObjectNode () | |
checkForTag (string $a_content_tag, string $a_hier_id, string $a_pc_id="") | |
handleCopiedContent (\ilPageObject $page, \DOMDocument $dom, bool $a_self_ass=true, bool $a_clone_mobs=false, int $new_parent_id=0, int $obj_copy_id=0) | |
Handle copied content This function copies items, that must be copied, if page content is duplicated. More... | |
Protected Attributes | |
ILIAS COPage Dom DomUtil | $dom_util |
DOMDocument | $dom |
ILIAS COPage Link LinkManager | $link |
ILIAS COPage PC DomainService | $pc_service |
DOMNode | $page_object_node |
Definition at line 28 of file class.PageContentManager.php.
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::__construct | ( | \DOMDocument | $dom, |
?PCDefinition | $def = null |
||
) |
Definition at line 36 of file class.PageContentManager.php.
References $DIC, ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\$dom, $path, and ILIAS\Repository\link().
|
protected |
Definition at line 114 of file class.PageContentManager.php.
References $path.
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\deleteContents(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\switchEnableMultiple().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::copyContents | ( | array | $a_hids, |
\ilObjUser | $user | ||
) |
Copy contents to clipboard.
Definition at line 693 of file class.PageContentManager.php.
References ilObjUser\addToPCClipboard(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getContentDomNode(), null, ilEditClipboard\setAction(), and ilPageContent\sortHierIds().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::copyXmlContent | ( | \ilPageObject | $page, |
bool | $a_clone_mobs = false , |
||
int | $a_new_parent_id = 0 , |
||
int | $obj_copy_id = 0 , |
||
bool | $self_ass = true |
||
) |
Definition at line 435 of file class.PageContentManager.php.
References ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\handleCopiedContent().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::deleteContent | ( | \ilPageObject | $page, |
string | $a_hid, | ||
string | $a_pcid = "" , |
||
bool | $move_operation = false |
||
) |
Definition at line 80 of file class.PageContentManager.php.
References ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getContentDomNode(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\handleDeleteContent().
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\moveContentAfter().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::deleteContents | ( | \ilPageObject | $page, |
array | $a_hids, | ||
bool | $a_self_ass = false , |
||
bool | $move_operation = false |
||
) |
Definition at line 91 of file class.PageContentManager.php.
References ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\checkForTag(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getContentDomNode(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\handleDeleteContent().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::downloadFile | ( | \ilPageObject | $page, |
string | $file_link_id | ||
) |
Definition at line 272 of file class.PageContentManager.php.
References ilPageObject\buildDom(), exit, ilPageObject\getDomDoc(), ilPageObject\getId(), ilPageObject\getParentType(), ilPageContentUsage\getUsagesOfPage(), and ILIAS\Repository\link().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::getContentDomNode | ( | string | $a_hier_id, |
string | $a_pc_id = "" |
||
) |
Definition at line 59 of file class.PageContentManager.php.
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\copyContents(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\deleteContent(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\deleteContents(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\insertContent(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\insertContentNode(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\switchEnableMultiple().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::getInitialOpenedContent | ( | ) |
Get initial opened content.
Definition at line 232 of file class.PageContentManager.php.
References $id, $path, ilInternalLink\_extractObjIdOfTarget(), and null.
|
protected |
Definition at line 54 of file class.PageContentManager.php.
References ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\$page_object_node.
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\insertContent(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\insertContentNode().
|
protected |
Handle copied content This function copies items, that must be copied, if page content is duplicated.
Currently called by
Definition at line 459 of file class.PageContentManager.php.
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\copyXmlContent(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\pasteContents().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::handleDeleteContent | ( | \ilPageObject | $page, |
$a_node = null , |
|||
$move_operation = false |
|||
) |
Definition at line 134 of file class.PageContentManager.php.
References $path.
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\deleteContent(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\deleteContents().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::insertContent | ( | \ilPageContent | $a_cont_obj, |
string | $a_pos, | ||
int | $a_mode = IL_INSERT_AFTER , |
||
string | $a_pcid = "" , |
||
bool | $remove_placeholder = true , |
||
bool | $placeholder_enabled = false |
||
) |
Definition at line 553 of file class.PageContentManager.php.
References ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getContentDomNode(), ilPageContent\getDomNode(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getPageObjectNode(), IL_INSERT_AFTER, IL_INSERT_BEFORE, IL_INSERT_CHILD, and ilPageContent\setDomNode().
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\moveContentAfter().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::insertContentNode | ( | \DOMNode | $a_cont_node, |
string | $a_pos, | ||
int | $a_mode = IL_INSERT_AFTER , |
||
string | $a_pcid = "" |
||
) |
Definition at line 479 of file class.PageContentManager.php.
References ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getContentDomNode(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getPageObjectNode(), IL_INSERT_AFTER, IL_INSERT_BEFORE, and IL_INSERT_CHILD.
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\pasteContents().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::insertInstIntoIDs | ( | string | $a_inst, |
bool | $a_res_ref_to_obj_id = true |
||
) |
inserts installation id into ids (e.g.
il__pg_4 -> il_23_pg_4) this is needed for xml export of page
string | $a_inst | installation id |
bool | $a_res_ref_to_obj_id | convert repository links obj_<ref_id> to <type>_<obj_id> |
Definition at line 310 of file class.PageContentManager.php.
References ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\$dom, $id, $path, $ref_id, ilObject\_lookupObjId(), and ilObject\_lookupType().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::moveContentAfter | ( | \ilPageObject | $page, |
string | $a_source, | ||
string | $a_target, | ||
string | $a_spcid = "" , |
||
string | $a_tpcid = "" |
||
) |
move content object from position $a_source before position $a_target (both hierarchical content ids)
string | $a_source | |
string | $a_target | |
string | $a_spcid | |
string | $a_tpcid |
Definition at line 663 of file class.PageContentManager.php.
References ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\deleteContent(), ilPageObject\getContentObject(), IL_INSERT_AFTER, and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\insertContent().
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::pasteContents | ( | \ilObjUser | $user, |
string | $a_hier_id, | ||
\ilPageObject | $page, | ||
bool | $a_self_ass = false |
||
) |
Definition at line 397 of file class.PageContentManager.php.
References $c, ILIAS\$error, $path, ilObjUser\getPCClipboardContent(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\handleCopiedContent(), IL_INSERT_AFTER, ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\insertContentNode(), and null.
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::setInitialOpenedContent | ( | string | $a_type = "" , |
int | $a_id = 0 , |
||
string | $a_target = "" |
||
) |
Definition at line 174 of file class.PageContentManager.php.
References $c, $path, and null.
ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager::switchEnableMultiple | ( | \ilPageObject | $page, |
array | $a_hids, | ||
bool | $a_self_ass = false |
||
) |
Definition at line 150 of file class.PageContentManager.php.
References ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\checkForTag(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getContentDomNode().
|
protected |
Definition at line 31 of file class.PageContentManager.php.
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\__construct(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\insertInstIntoIDs().
|
protected |
Definition at line 30 of file class.PageContentManager.php.
|
protected |
Definition at line 32 of file class.PageContentManager.php.
|
protected |
Definition at line 34 of file class.PageContentManager.php.
Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getPageObjectNode().
|
protected |
Definition at line 33 of file class.PageContentManager.php.