ILIAS
Release_4_2_x_branch Revision 61807
|
Class ilPageContent. More...
Public Member Functions | |
__construct ($a_dom) | |
Constructor. | |
init () | |
Init object. | |
getType () | |
Get type of page content. | |
setNode (&$a_node) | |
Set xml node 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. | |
writePCId ($a_pc_id) | |
Write 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) |
Static Public Member Functions | |
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. |
Data Fields | |
$hier_id | |
$node | |
$dom |
Protected Member Functions | |
setType ($a_type) | |
Set Type. |
Class ilPageContent.
Content object of ilPageObject (see ILIAS DTD). Every concrete object should be an instance of a class derived from ilPageContent (e.g. ilParagraph, ilMediaObject, ...)
Definition at line 17 of file class.ilPageContent.php.
|
final |
Constructor.
All initialisation in derived classes should go to the init() function
Definition at line 30 of file class.ilPageContent.php.
References getType(), and init().
ilPageContent::createPageContentNode | ( | $a_set_this_node = true | ) |
Create page content node (always use this method first when adding a new element)
Definition at line 314 of file class.ilPageContent.php.
References $node.
Referenced by ilPCTable\addCell(), ilPCTable\create(), ilPCList\create(), ilPCQuestionOverview\create(), ilPCContentInclude\create(), ilPCSection\create(), ilPCResources\create(), ilPCFileList\create(), ilPCDataTable\create(), ilPCTabs\create(), ilPCProfile\create(), ilPCBlog\create(), ilPCLoginPageElements\create(), ilPCSkills\create(), ilPCVerification\create(), ilPCPlugged\create(), ilPCMap\create(), ilPCPlaceHolder\create(), ilPCQuestion\create(), ilPCMediaObject\create(), ilPCInteractiveImage\create(), ilPCParagraph\createAfter(), ilPCParagraph\createAtNode(), ilPCParagraph\createBeforeNode(), ilPCDataTable\getCellNode(), and ilPCDataTable\makeEmptyCell().
|
staticfinal |
Decreases an hierarchical editing id at lowest level (last number)
string | $ed_id | hierarchical ID |
Definition at line 195 of file class.ilPageContent.php.
ilPageContent::disable | ( | ) |
Disable page content.
Definition at line 287 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::enable | ( | ) |
Enable page content.
Definition at line 279 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::getHierId | ( | ) |
Get hierarchical id.
Definition at line 101 of file class.ilPageContent.php.
References $hier_id.
Referenced by ilPCTableData\deleteCol(), ilPCTable\getCaption(), ilPCTable\getCaptionAlign(), ilPCTableData\moveColLeft(), ilPCTableData\moveColRight(), ilPCTableData\newColAfter(), and ilPCTableData\newColBefore().
& ilPageContent::getNode | ( | ) |
Get xml node of page content.
Definition at line 82 of file class.ilPageContent.php.
References $node.
Referenced by ilPCTableData\deleteCol(), ilPCListItem\deleteItem(), ilPCTab\deleteItem(), ilPCFileItem\deleteItem(), ilPCTableData\deleteRow(), ilPCTableData\initTablePCNode(), ilPCTableData\moveColLeft(), ilPCTableData\moveColRight(), ilPCTab\moveItemDown(), ilPCListItem\moveItemDown(), ilPCFileItem\moveItemDown(), ilPCTab\moveItemUp(), ilPCListItem\moveItemUp(), ilPCFileItem\moveItemUp(), ilPCTableData\moveRowDown(), ilPCTableData\moveRowUp(), ilPCTableData\newColAfter(), ilPCTableData\newColBefore(), ilPCTab\newItemAfter(), ilPCFileItem\newItemAfter(), ilPCListItem\newItemAfter(), ilPCTab\newItemBefore(), ilPCListItem\newItemBefore(), ilPCFileItem\newItemBefore(), ilPCTableData\newRowAfter(), and ilPCTableData\newRowBefore().
ilPageContent::getPCId | ( | ) |
Get PC Id.
Definition at line 143 of file class.ilPageContent.php.
ilPageContent::getType | ( | ) |
Get type of page content.
Reimplemented in ilPCParagraph.
Definition at line 61 of file class.ilPageContent.php.
Referenced by __construct().
|
staticfinal |
Check, if two ids are in same container.
string | $ed_id1 | hierachical ID 1 |
string | $ed_id2 | hierachical ID 2 |
Definition at line 211 of file class.ilPageContent.php.
|
staticfinal |
Increases an hierarchical editing id at lowest level (last number)
string | $ed_id | hierarchical ID |
Definition at line 180 of file class.ilPageContent.php.
Referenced by ilPageObject\addHierIDs().
|
abstract |
Init object.
This function must be overwritten and at least set the content type.
Reimplemented in ilPCPlaceHolder, ilPCDataTable, ilPCTabs, ilPCMap, ilPCQuestion, ilPCBlog, ilPCFileItem, ilPCFileList, ilPCListItem, ilPCLoginPageElements, ilPCPlugged, ilPCProfile, ilPCSkills, ilPCTab, ilPCTableData, ilPCVerification, ilPCInteractiveImage, ilPCTable, ilPCContentInclude, ilPCParagraph, ilPCResources, ilPCSection, ilPCMediaObject, ilPCList, and ilPCQuestionOverview.
Referenced by __construct().
|
final |
Check whether page content is enabled.
Definition at line 297 of file class.ilPageContent.php.
ilPageContent::isGreaterHierId | ( | $a, | |
$b | |||
) |
Check whether Hier ID $a is greater than Hier ID $b.
Definition at line 244 of file class.ilPageContent.php.
ilPageContent::lookupHierId | ( | ) |
Get hierarchical id from dom.
Definition at line 110 of file class.ilPageContent.php.
ilPageContent::readHierId | ( | ) |
Read PC Id.
Definition at line 120 of file class.ilPageContent.php.
Referenced by ilPCParagraph\getParagraphSequenceContent(), and ilPCInteractiveImage\setNode().
ilPageContent::readPCId | ( | ) |
Read PC Id.
Definition at line 154 of file class.ilPageContent.php.
Referenced by ilPCParagraph\getParagraphSequenceContent(), and ilPCInteractiveImage\setNode().
ilPageContent::setEnabled | ( | $value | ) |
Set Enabled value for page content component.
string | $value | "True" | "False" |
Definition at line 268 of file class.ilPageContent.php.
Referenced by disable(), and enable().
ilPageContent::setHierId | ( | $a_hier_id | ) |
Set hierarchical ID in xml structure.
string | $a_hier_id | Hierarchical ID. |
Reimplemented in ilPCMediaObject.
Definition at line 93 of file class.ilPageContent.php.
ilPageContent::setNode | ( | & | $a_node | ) |
Set xml node of page content.
object | $a_node | node object |
Reimplemented in ilPCPlaceHolder, ilPCTabs, ilPCMap, ilPCQuestion, ilPCBlog, ilPCDataTable, ilPCLoginPageElements, ilPCPlugged, ilPCProfile, ilPCSkills, ilPCVerification, ilPCFileList, ilPCMediaObject, ilPCParagraph, ilPCContentInclude, ilPCResources, ilPCSection, ilPCList, ilPCQuestionOverview, and ilPCTable.
Definition at line 71 of file class.ilPageContent.php.
ilPageContent::setPcId | ( | $a_pcid | ) |
Set PC Id.
string | $a_pcid | PC Id |
Definition at line 133 of file class.ilPageContent.php.
|
finalprotected |
Set Type.
Must be called in constructor.
string | $a_type | type of page content component |
Definition at line 51 of file class.ilPageContent.php.
Referenced by ilPCList\init(), ilPCQuestionOverview\init(), ilPCMediaObject\init(), ilPCResources\init(), ilPCSection\init(), ilPCContentInclude\init(), ilPCParagraph\init(), ilPCTable\init(), ilPCInteractiveImage\init(), ilPCTableData\init(), ilPCFileItem\init(), ilPCProfile\init(), ilPCListItem\init(), ilPCLoginPageElements\init(), ilPCFileList\init(), ilPCSkills\init(), ilPCBlog\init(), ilPCTab\init(), ilPCVerification\init(), ilPCPlugged\init(), ilPCMap\init(), ilPCQuestion\init(), ilPCTabs\init(), ilPCDataTable\init(), and ilPCPlaceHolder\init().
|
static |
Sort an array of Hier IDS in ascending order.
Definition at line 234 of file class.ilPageContent.php.
Referenced by ilPageObject\copyContents().
ilPageContent::writePCId | ( | $a_pc_id | ) |
Write pc id.
Definition at line 165 of file class.ilPageContent.php.
ilPageContent::$dom |
Definition at line 22 of file class.ilPageContent.php.
ilPageContent::$hier_id |
Definition at line 20 of file class.ilPageContent.php.
Referenced by ilPCTableData\deleteCol(), ilPCFileList\deleteFileItems(), ilPCTable\getCaption(), ilPCTable\getCaptionAlign(), ilPCTabs\getCaptions(), ilPCFileList\getFileList(), getHierId(), ilPCParagraph\getLastSavedPCId(), ilPCParagraph\getParagraphSequenceContent(), ilPCInteractiveImage\getPopups(), ilPCTableData\moveColLeft(), ilPCTableData\moveColRight(), ilPCTableData\newColAfter(), ilPCTableData\newColBefore(), ilPCTabs\saveCaptions(), ilPCInteractiveImage\savePopups(), ilPCFileList\savePositions(), and ilPCTabs\savePositions().
ilPageContent::$node |
Definition at line 21 of file class.ilPageContent.php.
Referenced by ilPCParagraph\createAfter(), ilPCParagraph\createAtNode(), ilPCParagraph\createBeforeNode(), createPageContentNode(), ilPCTable\extractText(), getNode(), ilPCTable\importCellAttributes(), ilPCTable\importHtml(), ilPCTable\importRow(), ilPCTable\importTableAttributes(), and ilPCParagraph\setText().