ILIAS
Release_5_0_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. | |
getOnloadCode () | |
Get on load code. | |
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 427 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 406 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 415 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 358 of file class.ilPageContent.php.
References $node.
Referenced by ilPCTable\addCell(), ilPCFileList\create(), ilPCTable\create(), ilPCList\create(), ilPCQuestionOverview\create(), ilPCMap\create(), ilPCVerification\create(), ilPCResources\create(), ilPCPlugged\create(), ilPCProfile\create(), ilPCContentInclude\create(), ilPCSkills\create(), ilPCSection\create(), ilPCPlaceHolder\create(), ilPCConsultationHours\create(), ilPCMyCourses\create(), ilPCAMDPageList\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 239 of file class.ilPageContent.php.
ilPageContent::disable | ( | ) |
Disable page content.
Definition at line 331 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::enable | ( | ) |
Enable page content.
Definition at line 323 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 145 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, ilPCMyCourses, ilPCAMDPageList, and ilPCSourceCode.
Definition at line 372 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::getOnloadCode | ( | ) |
ilPageContent::getPage | ( | ) |
Get page.
Definition at line 56 of file class.ilPageContent.php.
Referenced by ilPCAMDPageList\findPages(), ilPCTableData\fixHideAndSpans(), ilPCQuestion\getCssFiles(), ilPCQuestion\getJavascriptFiles(), ilPCQuestion\getOnloadCode(), ilPCQuestion\getQuestionJsOfPage(), ilPCTable\importCell(), ilPCSourceCode\modifyPageContentPostXsl(), ilPCAMDPageList\modifyPageContentPostXsl(), ilPCQuestion\modifyPageContentPostXsl(), ilPCParagraph\saveJS(), and ilPCParagraph\setText().
ilPageContent::getPCId | ( | ) |
Get PC Id.
Definition at line 187 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, and ilPCAMDPageList.
Definition at line 383 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 255 of file class.ilPageContent.php.
|
staticfinal |
Increases an hierarchical editing id at lowest level (last number)
string | $ed_id | hierarchical ID |
Definition at line 224 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, ilPCQuestion, ilPCInteractiveImage, ilPCTable, ilPCContentInclude, ilPCFileList, ilPCProfile, ilPCResources, ilPCSection, ilPCSkills, ilPCListItem, ilPCMap, ilPCParagraph, ilPCPlugged, ilPCTab, ilPCVerification, ilPCConsultationHours, ilPCMyCourses, ilPCAMDPageList, ilPCFileItem, ilPCList, ilPCMediaObject, ilPCQuestionOverview, ilPCSourceCode, and ilPCContentTemplate.
Referenced by __construct().
|
final |
Check whether page content is enabled.
Definition at line 341 of file class.ilPageContent.php.
ilPageContent::isGreaterHierId | ( | $a, | |
$b | |||
) |
Check whether Hier ID $a is greater than Hier ID $b.
Definition at line 288 of file class.ilPageContent.php.
ilPageContent::lookupHierId | ( | ) |
Get hierarchical id from dom.
Definition at line 154 of file class.ilPageContent.php.
ilPageContent::modifyPageContentPostXsl | ( | $a_output, | |
$a_mode | |||
) |
Modify page content after xsl.
string | $a_output |
Reimplemented in ilPCMap, ilPCQuestion, ilPCAMDPageList, ilPCPlugged, and ilPCSourceCode.
Definition at line 393 of file class.ilPageContent.php.
ilPageContent::readHierId | ( | ) |
Read PC Id.
Definition at line 164 of file class.ilPageContent.php.
Referenced by ilPCParagraph\getParagraphSequenceContent(), and ilPCInteractiveImage\setNode().
ilPageContent::readPCId | ( | ) |
Read PC Id.
Definition at line 198 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 312 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 137 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, ilPCMyCourses, ilPCAMDPageList, ilPCPlaceHolder, ilPCQuestion, ilPCParagraph, 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 177 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 ilPCContentTemplate\init(), ilPCSourceCode\init(), ilPCMyCourses\init(), ilPCFileItem\init(), ilPCList\init(), ilPCQuestionOverview\init(), ilPCConsultationHours\init(), ilPCAMDPageList\init(), ilPCMediaObject\init(), ilPCParagraph\init(), ilPCPlugged\init(), ilPCListItem\init(), ilPCVerification\init(), ilPCTab\init(), ilPCMap\init(), ilPCFileList\init(), ilPCProfile\init(), ilPCContentInclude\init(), ilPCResources\init(), ilPCSection\init(), ilPCSkills\init(), ilPCTable\init(), ilPCInteractiveImage\init(), ilPCPlaceHolder\init(), ilPCQuestion\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 278 of file class.ilPageContent.php.
Referenced by ilPageObject\copyContents().
ilPageContent::writePCId | ( | $a_pc_id | ) |
Write pc id.
Definition at line 209 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 ilPCContentTemplate\create(), 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(), ilPCAMDPageList\handleCopiedContent(), ilPCTable\handleCopiedContent(), ilPCTable\importCellAttributes(), ilPCTable\importHtml(), ilPCTable\importRow(), ilPCTable\importTableAttributes(), ilPCVerification\isInPortfolioPage(), ilPCParagraph\linkTermsInDom(), ilPCParagraph\saveAnchors(), ilPCParagraph\saveMetaKeywords(), ilPCMediaObject\saveMobUsage(), and ilPCParagraph\setText().