ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilPageContent. More...
Public Member Functions | |
__construct ($a_pg_obj) | |
Constructor. | |
setPage ($a_val) | |
Set page. | |
getPage () | |
Get page. | |
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. | |
getJavascriptFiles () | |
Get Javascript files. | |
getCssFiles () | |
Get css files. | |
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) | |
modifyPageContentPostXsl ($a_output, $a_mode) | |
Modify page content after xsl. |
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. | |
static | getLangVars () |
Get lang vars needed for editing. | |
static | handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false) |
Handle copied content. | |
static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
After page has been updated (or created) | |
static | beforePageDelete ($a_page) |
Before page is being deleted. | |
static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
After page history entry has been created. |
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(), init(), and setPage().
|
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 |
Reimplemented in ilPCParagraph, ilPCMediaObject, ilPCFileList, ilPCContentInclude, and ilPCSkills.
Definition at line 419 of file class.ilPageContent.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 |
Reimplemented in ilPCParagraph, ilPCMediaObject, ilPCFileList, ilPCQuestion, ilPCContentInclude, and ilPCSkills.
Definition at line 398 of file class.ilPageContent.php.
|
static |
Before page is being deleted.
object | $a_page | page object |
Reimplemented in ilPCParagraph, ilPCMediaObject, ilPCFileList, ilPCQuestion, ilPCContentInclude, and ilPCSkills.
Definition at line 407 of file class.ilPageContent.php.
ilPageContent::createPageContentNode | ( | $a_set_this_node = true | ) |
Create page content node (always use this method first when adding a new element)
Definition at line 350 of file class.ilPageContent.php.
References $node.
Referenced by ilPCTable\addCell(), ilPCFileList\create(), ilPCTable\create(), ilPCList\create(), ilPCQuestionOverview\create(), ilPCMap\create(), ilPCVerification\create(), ilPCSkills\create(), ilPCPlugged\create(), ilPCProfile\create(), ilPCResources\create(), ilPCSection\create(), ilPCContentInclude\create(), ilPCPlaceHolder\create(), ilPCConsultationHours\create(), ilPCDataTable\create(), ilPCLoginPageElement\create(), ilPCTabs\create(), ilPCBlog\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 231 of file class.ilPageContent.php.
ilPageContent::disable | ( | ) |
Disable page content.
Definition at line 323 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::enable | ( | ) |
Enable page content.
Definition at line 315 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::getCssFiles | ( | ) |
Get css files.
Reimplemented in ilPCPlugged.
Definition at line 119 of file class.ilPageContent.php.
ilPageContent::getHierId | ( | ) |
Get hierarchical id.
Definition at line 137 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::getJavascriptFiles | ( | ) |
Get Javascript files.
Reimplemented in ilPCPlugged.
Definition at line 111 of file class.ilPageContent.php.
|
static |
Get lang vars needed for editing.
Reimplemented in ilPCTable, ilPCTabs, ilPCMediaObject, ilPCFileList, ilPCResources, ilPCQuestion, ilPCProfile, ilPCPlaceHolder, ilPCLoginPageElement, ilPCSection, ilPCVerification, ilPCConsultationHours, and ilPCSourceCode.
Definition at line 364 of file class.ilPageContent.php.
& ilPageContent::getNode | ( | ) |
Get xml node of page content.
Definition at line 103 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(), ilPCFileItem\newItemAfter(), ilPCTab\newItemAfter(), ilPCListItem\newItemAfter(), ilPCListItem\newItemBefore(), ilPCTab\newItemBefore(), ilPCFileItem\newItemBefore(), ilPCTableData\newRowAfter(), and ilPCTableData\newRowBefore().
ilPageContent::getPage | ( | ) |
Get page.
Definition at line 56 of file class.ilPageContent.php.
Referenced by ilPCTableData\fixHideAndSpans(), ilPCTable\importCell(), ilPCParagraph\saveJS(), and ilPCParagraph\setText().
ilPageContent::getPCId | ( | ) |
Get PC Id.
Definition at line 179 of file class.ilPageContent.php.
ilPageContent::getType | ( | ) |
Get type of page content.
Reimplemented in ilPCParagraph.
Definition at line 82 of file class.ilPageContent.php.
Referenced by __construct().
|
static |
Handle copied content.
This function must, e.g. create copies of objects referenced within the content (e.g. question objects)
DOMDocument | $a_domdoc | dom document |
Reimplemented in ilPCTable.
Definition at line 375 of file class.ilPageContent.php.
|
staticfinal |
Check, if two ids are in same container.
string | $ed_id1 | hierachical ID 1 |
string | $ed_id2 | hierachical ID 2 |
Definition at line 247 of file class.ilPageContent.php.
|
staticfinal |
Increases an hierarchical editing id at lowest level (last number)
string | $ed_id | hierarchical ID |
Definition at line 216 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 ilPCDataTable, ilPCTabs, ilPCBlog, ilPCTableData, ilPCLoginPageElement, ilPCPlaceHolder, ilPCInteractiveImage, ilPCQuestion, ilPCTable, ilPCContentInclude, ilPCFileList, ilPCProfile, ilPCResources, ilPCSection, ilPCSkills, ilPCListItem, ilPCMap, ilPCParagraph, ilPCPlugged, ilPCTab, ilPCVerification, ilPCConsultationHours, ilPCFileItem, ilPCList, ilPCMediaObject, ilPCQuestionOverview, and ilPCSourceCode.
Referenced by __construct().
|
final |
Check whether page content is enabled.
Definition at line 333 of file class.ilPageContent.php.
ilPageContent::isGreaterHierId | ( | $a, | |
$b | |||
) |
Check whether Hier ID $a is greater than Hier ID $b.
Definition at line 280 of file class.ilPageContent.php.
ilPageContent::lookupHierId | ( | ) |
Get hierarchical id from dom.
Definition at line 146 of file class.ilPageContent.php.
ilPageContent::modifyPageContentPostXsl | ( | $a_output, | |
$a_mode | |||
) |
Modify page content after xsl.
string | $a_output |
Reimplemented in ilPCMap, and ilPCPlugged.
Definition at line 385 of file class.ilPageContent.php.
ilPageContent::readHierId | ( | ) |
Read PC Id.
Definition at line 156 of file class.ilPageContent.php.
Referenced by ilPCParagraph\getParagraphSequenceContent(), and ilPCInteractiveImage\setNode().
ilPageContent::readPCId | ( | ) |
Read PC Id.
Definition at line 190 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 304 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 129 of file class.ilPageContent.php.
ilPageContent::setNode | ( | & | $a_node | ) |
Set xml node of page content.
object | $a_node | node object |
Reimplemented in ilPCTabs, ilPCBlog, ilPCLoginPageElement, ilPCMediaObject, ilPCConsultationHours, ilPCPlaceHolder, ilPCParagraph, ilPCQuestion, ilPCContentInclude, ilPCProfile, ilPCResources, ilPCSection, ilPCSkills, ilPCMap, ilPCPlugged, ilPCVerification, ilPCList, ilPCQuestionOverview, ilPCTable, and ilPCFileList.
Definition at line 92 of file class.ilPageContent.php.
ilPageContent::setPage | ( | $a_val | ) |
Set page.
object | $a_val | page object |
Definition at line 46 of file class.ilPageContent.php.
Referenced by __construct().
ilPageContent::setPcId | ( | $a_pcid | ) |
Set PC Id.
string | $a_pcid | PC Id |
Definition at line 169 of file class.ilPageContent.php.
|
finalprotected |
Set Type.
Must be called in constructor.
string | $a_type | type of page content component |
Definition at line 72 of file class.ilPageContent.php.
Referenced by ilPCSourceCode\init(), ilPCConsultationHours\init(), ilPCList\init(), ilPCQuestionOverview\init(), ilPCFileItem\init(), ilPCMediaObject\init(), ilPCListItem\init(), ilPCMap\init(), ilPCTab\init(), ilPCParagraph\init(), ilPCVerification\init(), ilPCPlugged\init(), ilPCProfile\init(), ilPCContentInclude\init(), ilPCResources\init(), ilPCSkills\init(), ilPCSection\init(), ilPCFileList\init(), ilPCTable\init(), ilPCQuestion\init(), ilPCInteractiveImage\init(), ilPCPlaceHolder\init(), ilPCLoginPageElement\init(), ilPCTableData\init(), ilPCBlog\init(), ilPCTabs\init(), and ilPCDataTable\init().
|
static |
Sort an array of Hier IDS in ascending order.
Definition at line 270 of file class.ilPageContent.php.
Referenced by ilPageObject\copyContents().
ilPageContent::writePCId | ( | $a_pc_id | ) |
Write pc id.
Definition at line 201 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 ilPCQuestion\afterPageUpdate(), ilPCContentInclude\collectContentIncludes(), ilPCFileList\collectFileItems(), ilPCSkills\collectSkills(), ilPCParagraph\createAfter(), ilPCParagraph\createAtNode(), ilPCParagraph\createBeforeNode(), createPageContentNode(), ilPCTable\extractText(), getNode(), ilPCTable\handleCopiedContent(), ilPCTable\importCellAttributes(), ilPCTable\importHtml(), ilPCTable\importRow(), ilPCTable\importTableAttributes(), ilPCVerification\isInPortfolioPage(), ilPCParagraph\linkTermsInDom(), ilPCParagraph\saveAnchors(), ilPCParagraph\saveMetaKeywords(), ilPCMediaObject\saveMobUsage(), and ilPCParagraph\setText().