ILIAS
Release_4_0_x_branch Revision 61816
|
Class ilPCContentInclude. More...
Public Member Functions | |
init () | |
Init page content component. | |
setNode (&$a_node) | |
Set node. | |
create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
Create content include node in xml. | |
setContentId ($a_id) | |
Set content id. | |
getContentId () | |
Get content id. | |
setContentType ($a_type) | |
Set content type. | |
getContentType () | |
Get content type. | |
setInstId ($a_id) | |
Set installation id. | |
getInstId () | |
Get installation id. | |
getContentIncludeAttribute ($a_attr) | |
Get content include tag attribute. | |
Public Member Functions inherited from ilPageContent | |
__construct ($a_dom) | |
Constructor. | |
getType () | |
Get type of page content. | |
& | getNode () |
Get xml node of page content. | |
setHierId ($a_hier_id) | |
Set hierarchical ID in xml structure. | |
getHierId () | |
Get hierarchical id. | |
lookupHierId () | |
Get hierarchical id from dom. | |
readHierId () | |
Read PC Id. | |
setPcId ($a_pcid) | |
Set PC Id. | |
getPCId () | |
Get PC Id. | |
readPCId () | |
Read PC Id. | |
isGreaterHierId ($a, $b) | |
Check whether Hier ID $a is greater than Hier ID $b. | |
setEnabled ($value) | |
Set Enabled value for page content component. | |
enable () | |
Enable page content. | |
disable () | |
Disable page content. | |
isEnabled () | |
Check whether page content is enabled. | |
createPageContentNode ($a_set_this_node=true) | |
Create page content node (always use this method first when adding a new element) |
Data Fields | |
$dom | |
$incl_node | |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom |
Protected Member Functions | |
setContentIncludeAttribute ($a_attr, $a_value) | |
Set attribute of content include tag. | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. |
Additional Inherited Members | |
Static Public Member Functions inherited from ilPageContent | |
static | incEdId ($ed_id) |
Increases an hierarchical editing id at lowest level (last number) | |
static | decEdId ($ed_id) |
Decreases an hierarchical editing id at lowest level (last number) | |
static | haveSameContainer ($ed_id1, $ed_id2) |
Check, if two ids are in same container. | |
static | sortHierIds ($a_array) |
Sort an array of Hier IDS in ascending order. |
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.
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 45 of file class.ilPCContentInclude.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
Referenced by ilPageEditorGUI\insertFromClipboard().
ilPCContentInclude::getContentId | ( | ) |
Get content id.
Definition at line 64 of file class.ilPCContentInclude.php.
References getContentIncludeAttribute().
ilPCContentInclude::getContentIncludeAttribute | ( | $a_attr | ) |
Get content include tag attribute.
Definition at line 127 of file class.ilPCContentInclude.php.
Referenced by getContentId(), getContentType(), and getInstId().
ilPCContentInclude::getContentType | ( | ) |
Get content type.
Definition at line 80 of file class.ilPCContentInclude.php.
References getContentIncludeAttribute().
ilPCContentInclude::getInstId | ( | ) |
Get installation id.
Definition at line 96 of file class.ilPCContentInclude.php.
References getContentIncludeAttribute().
ilPCContentInclude::init | ( | ) |
Init page content component.
Reimplemented from ilPageContent.
Definition at line 25 of file class.ilPCContentInclude.php.
References ilPageContent\setType().
ilPCContentInclude::setContentId | ( | $a_id | ) |
Set content id.
Definition at line 56 of file class.ilPCContentInclude.php.
References setContentIncludeAttribute().
|
protected |
Set attribute of content include tag.
string | attribute name |
string | attribute value |
Definition at line 107 of file class.ilPCContentInclude.php.
Referenced by setContentId(), setContentType(), and setInstId().
ilPCContentInclude::setContentType | ( | $a_type | ) |
Set content type.
Definition at line 72 of file class.ilPCContentInclude.php.
References setContentIncludeAttribute().
ilPCContentInclude::setInstId | ( | $a_id | ) |
Set installation id.
Definition at line 88 of file class.ilPCContentInclude.php.
References setContentIncludeAttribute().
ilPCContentInclude::setNode | ( | & | $a_node | ) |
Set node.
Reimplemented from ilPageContent.
Definition at line 33 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.