ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilPCContentInclude. More...
Public Member Functions | |
init () | |
Init page content component. More... | |
setNode ($a_node) | |
Set node. More... | |
create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
Create content include node in xml. More... | |
setContentId ($a_id) | |
Set content id. More... | |
getContentId () | |
Get content id. More... | |
setContentType ($a_type) | |
Set content type. More... | |
getContentType () | |
Get content type. More... | |
setInstId ($a_id) | |
Set installation id. More... | |
getInstId () | |
Get installation id. More... | |
getContentIncludeAttribute ($a_attr) | |
Get content include tag attribute. More... | |
modifyPageContentPostXsl ($a_html, $a_mode) | |
Public Member Functions inherited from ilPageContent | |
__construct ($a_pg_obj) | |
Constructor. More... | |
setPage ($a_val) | |
Set page. More... | |
getPage () | |
Get page. More... | |
init () | |
Init object. More... | |
getType () | |
Get type of page content. More... | |
setNode ($a_node) | |
Set xml node of page content. More... | |
& | getNode () |
Get xml node of page content. More... | |
getJavascriptFiles ($a_mode) | |
Get Javascript files. More... | |
getCssFiles ($a_mode) | |
Get css files. More... | |
getOnloadCode ($a_mode) | |
Get on load code. More... | |
setHierId ($a_hier_id) | |
Set hierarchical ID in xml structure. More... | |
getHierId () | |
Get hierarchical id. More... | |
lookupHierId () | |
Get hierarchical id from dom. More... | |
readHierId () | |
Read PC Id. More... | |
setPcId ($a_pcid) | |
Set PC Id. More... | |
getPCId () | |
Get PC Id. More... | |
setFileDownloadLink ($a_download_link) | |
Set file download link. More... | |
getFileDownloadLink () | |
Get file download link. More... | |
setFullscreenLink ($a_fullscreen_link) | |
Set fullscreen link. More... | |
getFullscreenLink () | |
Get fullscreen link. More... | |
setSourcecodeDownloadScript ($script_name) | |
Set sourcecode download script. More... | |
getSourcecodeDownloadScript () | |
Get sourcecode download script. More... | |
readPCId () | |
Read PC Id. More... | |
writePCId ($a_pc_id) | |
Write pc id. More... | |
setEnabled ($value) | |
Set Enabled value for page content component. More... | |
enable () | |
Enable page content. More... | |
disable () | |
Disable page content. More... | |
isEnabled () | |
Check whether page content is enabled. More... | |
createPageContentNode ($a_set_this_node=true) | |
Create page content node (always use this method first when adding a new element) More... | |
modifyPageContentPostXsl ($a_output, $a_mode) | |
Modify page content after xsl. More... | |
Static Public Member Functions | |
static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
After page has been updated (or created) More... | |
static | beforePageDelete ($a_page) |
Before page is being deleted. More... | |
static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
After page history entry has been created. More... | |
static | saveContentIncludeUsage ($a_page, $a_domdoc, $a_old_nr=0) |
save content include usages More... | |
static | collectContentIncludes ($a_page, $a_domdoc) |
get all content includes that are used within the page More... | |
Static Public Member Functions inherited from ilPageContent | |
static | incEdId ($ed_id) |
Increases an hierarchical editing id at lowest level (last number) More... | |
static | decEdId ($ed_id) |
Decreases an hierarchical editing id at lowest level (last number) More... | |
static | haveSameContainer ($ed_id1, $ed_id2) |
Check, if two ids are in same container. More... | |
static | sortHierIds ($a_array) |
Sort an array of Hier IDS in ascending order. More... | |
static | isGreaterHierId ($a, $b) |
Check whether Hier ID $a is greater than Hier ID $b. More... | |
static | getLangVars () |
Get lang vars needed for editing. More... | |
static | handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false) |
Handle copied content. More... | |
static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
After page has been updated (or created) More... | |
static | beforePageDelete ($a_page) |
Before page is being deleted. More... | |
static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
After page history entry has been created. More... | |
Data Fields | |
$dom | |
$incl_node | |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom | |
$page_lang | |
Protected Member Functions | |
setContentIncludeAttribute ($a_attr, $a_value) | |
Set attribute of content include tag. More... | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. More... | |
Protected Attributes | |
$access | |
Protected Attributes inherited from ilPageContent | |
$file_download_link | |
$fullscreen_link | |
$sourcecode_download_script | |
$log | |
Class ilPCContentInclude.
Content include object (see ILIAS DTD). Inserts content snippets from other source (e.g. media pool)
Definition at line 17 of file class.ilPCContentInclude.php.
|
static |
After page history entry has been created.
object | $a_page | page object |
DOMDocument | $a_old_domdoc | old dom document |
string | $a_old_xml | old xml |
integer | $a_old_nr | history number |
Definition at line 176 of file class.ilPCContentInclude.php.
|
static |
After page has been updated (or created)
object | $a_page | page object |
DOMDocument | $a_domdoc | dom document |
string | $a_xml | xml |
bool | $a_creation | true on creation, otherwise false |
Definition at line 151 of file class.ilPCContentInclude.php.
|
static |
Before page is being deleted.
object | $a_page | page object |
Definition at line 162 of file class.ilPCContentInclude.php.
References ilPageContentUsage\deleteAllUsages().
|
static |
get all content includes that are used within the page
Definition at line 202 of file class.ilPCContentInclude.php.
References ilPageContent\$node, and array.
Referenced by ilPageObjectGUI\showPage().
ilPCContentInclude::create | ( | & | $a_pg_obj, |
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Create content include node in xml.
object | $a_pg_obj | Page Object |
string | $a_hier_id | Hierarchical ID |
Definition at line 53 of file class.ilPCContentInclude.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
ilPCContentInclude::getContentId | ( | ) |
Get content id.
Definition at line 72 of file class.ilPCContentInclude.php.
References getContentIncludeAttribute().
ilPCContentInclude::getContentIncludeAttribute | ( | $a_attr | ) |
Get content include tag attribute.
Definition at line 135 of file class.ilPCContentInclude.php.
Referenced by getContentId(), getContentType(), and getInstId().
ilPCContentInclude::getContentType | ( | ) |
Get content type.
Definition at line 88 of file class.ilPCContentInclude.php.
References getContentIncludeAttribute().
ilPCContentInclude::getInstId | ( | ) |
Get installation id.
Definition at line 104 of file class.ilPCContentInclude.php.
References getContentIncludeAttribute().
ilPCContentInclude::init | ( | ) |
Init page content component.
Definition at line 30 of file class.ilPCContentInclude.php.
References $DIC, and ilPageContent\setType().
ilPCContentInclude::modifyPageContentPostXsl | ( | $a_html, | |
$a_mode | |||
) |
Definition at line 223 of file class.ilPCContentInclude.php.
References $html, $info, $lng, $ref_id, $start, ilPageObject\_exists(), ilObject\_getAllReferences(), ilLink\_getLink(), ilObject\_lookupTitle(), ilPageContent\getFileDownloadLink(), ilPageContent\getFullscreenLink(), ilPageContent\getPage(), ilPageContent\getSourcecodeDownloadScript(), IL_PAGE_OFFLINE, and ilMediaPoolItem\lookupTitle().
|
static |
save content include usages
Definition at line 184 of file class.ilPCContentInclude.php.
References ilPageContentUsage\deleteAllUsages(), and ilPageContentUsage\saveUsage().
ilPCContentInclude::setContentId | ( | $a_id | ) |
Set content id.
Definition at line 64 of file class.ilPCContentInclude.php.
References setContentIncludeAttribute().
|
protected |
Set attribute of content include tag.
string | attribute name |
string | attribute value |
Definition at line 115 of file class.ilPCContentInclude.php.
Referenced by setContentId(), setContentType(), and setInstId().
ilPCContentInclude::setContentType | ( | $a_type | ) |
Set content type.
Definition at line 80 of file class.ilPCContentInclude.php.
References $a_type, and setContentIncludeAttribute().
ilPCContentInclude::setInstId | ( | $a_id | ) |
Set installation id.
Definition at line 96 of file class.ilPCContentInclude.php.
References setContentIncludeAttribute().
ilPCContentInclude::setNode | ( | $a_node | ) |
Set node.
Definition at line 41 of file class.ilPCContentInclude.php.
|
protected |
Definition at line 25 of file class.ilPCContentInclude.php.
ilPCContentInclude::$dom |
Definition at line 19 of file class.ilPCContentInclude.php.
ilPCContentInclude::$incl_node |
Definition at line 20 of file class.ilPCContentInclude.php.