ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilPageContent. More...
Public Member Functions | |
__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 | 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 | |
$hier_id | |
$node | |
$dom | |
$page_lang | |
Protected Member Functions | |
setType ($a_type) | |
Set Type. More... | |
Protected Attributes | |
$file_download_link | |
$fullscreen_link | |
$sourcecode_download_script | |
$log | |
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 51 of file class.ilPageContent.php.
References ilLoggerFactory\getLogger(), 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 |
Definition at line 493 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 |
Definition at line 472 of file class.ilPageContent.php.
|
static |
Before page is being deleted.
object | $a_page | page object |
Definition at line 481 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 425 of file class.ilPageContent.php.
References $node.
Referenced by ilPCTable\addCell(), ilPCFileList\create(), ilPCTable\create(), ilPCList\create(), ilPCQuestionOverview\create(), ilPCMap\create(), ilPCResources\create(), ilPCLearningHistory\create(), ilPCVerification\create(), ilPCProfile\create(), ilPCSkills\create(), ilPCDataTable\create(), ilPCPlugged\create(), ilPCContentInclude\create(), ilPCConsultationHours\create(), ilPCMyCourses\create(), ilPCPlaceHolder\create(), ilPCLoginPageElement\create(), ilPCTabs\create(), ilPCSection\create(), ilPCAMDPageList\create(), ilPCBlog\create(), ilPCGrid\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 317 of file class.ilPageContent.php.
References $id.
ilPageContent::disable | ( | ) |
Disable page content.
Definition at line 401 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::enable | ( | ) |
Enable page content.
Definition at line 393 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::getCssFiles | ( | $a_mode | ) |
Get css files.
Definition at line 140 of file class.ilPageContent.php.
ilPageContent::getFileDownloadLink | ( | ) |
Get file download link.
Definition at line 227 of file class.ilPageContent.php.
References $file_download_link.
Referenced by ilPCContentInclude\modifyPageContentPostXsl().
ilPageContent::getFullscreenLink | ( | ) |
Get fullscreen link.
Definition at line 247 of file class.ilPageContent.php.
References $fullscreen_link.
Referenced by ilPCContentInclude\modifyPageContentPostXsl().
ilPageContent::getHierId | ( | ) |
Get hierarchical id.
Definition at line 166 of file class.ilPageContent.php.
References $hier_id.
Referenced by ilPCTableData\deleteCol(), ilPCTable\getCaption(), ilPCTable\getCaptionAlign(), ilPCDataTable\getCellNode(), ilPCTableData\moveColLeft(), ilPCTableData\moveColRight(), ilPCTableData\newColAfter(), and ilPCTableData\newColBefore().
ilPageContent::getJavascriptFiles | ( | $a_mode | ) |
Get Javascript files.
Definition at line 132 of file class.ilPageContent.php.
|
static |
Get lang vars needed for editing.
Definition at line 438 of file class.ilPageContent.php.
& ilPageContent::getNode | ( | ) |
Get xml node of page content.
Definition at line 124 of file class.ilPageContent.php.
References $node.
Referenced by ilPCGridCell\deleteCell(), ilPCTableData\deleteCol(), ilPCListItem\deleteItem(), ilPCTab\deleteItem(), ilPCFileItem\deleteItem(), ilPCTableData\deleteRow(), ilPCTableData\initTablePCNode(), ilPCGridCell\moveCellLeft(), ilPCGridCell\moveCellRight(), 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(), ilPCTab\newItemBefore(), ilPCListItem\newItemBefore(), ilPCFileItem\newItemBefore(), ilPCTableData\newRowAfter(), and ilPCTableData\newRowBefore().
ilPageContent::getOnloadCode | ( | $a_mode | ) |
Get on load code.
Definition at line 148 of file class.ilPageContent.php.
ilPageContent::getPage | ( | ) |
Get page.
Definition at line 77 of file class.ilPageContent.php.
References init().
Referenced by ilPCContentTemplate\create(), ilPCAMDPageList\findPages(), ilPCTableData\fixHideAndSpans(), ilPCPlugged\getCssFiles(), ilPCQuestion\getCssFiles(), ilPCPlugged\getJavascriptFiles(), ilPCQuestion\getJavascriptFiles(), ilPCQuestion\getOnloadCode(), ilPCLearningHistory\getPresentation(), ilPCQuestion\getQuestionJsOfPage(), ilPCTable\importCell(), ilPCSourceCode\modifyPageContentPostXsl(), ilPCAMDPageList\modifyPageContentPostXsl(), ilPCContentInclude\modifyPageContentPostXsl(), ilPCPlugged\modifyPageContentPostXsl(), ilPCQuestion\modifyPageContentPostXsl(), ilPCMediaObject\modifyPageContentPostXsl(), ilPCParagraph\saveJS(), and ilPCParagraph\setText().
ilPageContent::getPCId | ( | ) |
ilPageContent::getSourcecodeDownloadScript | ( | ) |
Get sourcecode download script.
Definition at line 267 of file class.ilPageContent.php.
References $sourcecode_download_script.
Referenced by ilPCContentInclude\modifyPageContentPostXsl().
ilPageContent::getType | ( | ) |
Get type of page content.
Definition at line 103 of file class.ilPageContent.php.
References $type.
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 |
Definition at line 449 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 333 of file class.ilPageContent.php.
|
staticfinal |
Increases an hierarchical editing id at lowest level (last number)
string | $ed_id | hierarchical ID |
Definition at line 302 of file class.ilPageContent.php.
References $id.
Referenced by ilPageObject\addHierIDs().
|
abstract |
Init object.
This function must be overwritten and at least set the content type.
Referenced by __construct(), and getPage().
|
final |
Check whether page content is enabled.
Definition at line 411 of file class.ilPageContent.php.
|
static |
Check whether Hier ID $a is greater than Hier ID $b.
Definition at line 363 of file class.ilPageContent.php.
References $i.
ilPageContent::lookupHierId | ( | ) |
Get hierarchical id from dom.
Definition at line 175 of file class.ilPageContent.php.
ilPageContent::modifyPageContentPostXsl | ( | $a_output, | |
$a_mode | |||
) |
Modify page content after xsl.
string | $a_output |
Definition at line 459 of file class.ilPageContent.php.
ilPageContent::readHierId | ( | ) |
Read PC Id.
Definition at line 185 of file class.ilPageContent.php.
Referenced by ilPCParagraph\getParagraphSequenceContent(), and ilPCInteractiveImage\setNode().
ilPageContent::readPCId | ( | ) |
Read PC Id.
Definition at line 278 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 383 of file class.ilPageContent.php.
Referenced by disable(), and enable().
ilPageContent::setFileDownloadLink | ( | $a_download_link | ) |
Set file download link.
string | $a_download_link | download link |
Definition at line 217 of file class.ilPageContent.php.
ilPageContent::setFullscreenLink | ( | $a_fullscreen_link | ) |
Set fullscreen link.
string | $a_download_link | download link |
Definition at line 237 of file class.ilPageContent.php.
ilPageContent::setHierId | ( | $a_hier_id | ) |
Set hierarchical ID in xml structure.
string | $a_hier_id | Hierarchical ID. |
Definition at line 158 of file class.ilPageContent.php.
ilPageContent::setNode | ( | $a_node | ) |
Set xml node of page content.
object | $a_node | node object |
Definition at line 113 of file class.ilPageContent.php.
ilPageContent::setPage | ( | $a_val | ) |
Set page.
object | $a_val | page object |
Definition at line 67 of file class.ilPageContent.php.
Referenced by __construct().
ilPageContent::setPcId | ( | $a_pcid | ) |
ilPageContent::setSourcecodeDownloadScript | ( | $script_name | ) |
Set sourcecode download script.
string | $script_name |
Definition at line 257 of file class.ilPageContent.php.
|
finalprotected |
Set Type.
Must be called in constructor.
string | $a_type | type of page content component |
Definition at line 93 of file class.ilPageContent.php.
References $a_type.
Referenced by ilPCGridCell\init(), ilPCContentTemplate\init(), ilPCSourceCode\init(), ilPCFileItem\init(), ilPCQuestionOverview\init(), ilPCList\init(), ilPCMap\init(), ilPCListItem\init(), ilPCTab\init(), ilPCFileList\init(), ilPCLearningHistory\init(), ilPCResources\init(), ilPCTable\init(), ilPCMediaObject\init(), ilPCMyCourses\init(), ilPCConsultationHours\init(), ilPCVerification\init(), ilPCProfile\init(), ilPCSkills\init(), ilPCInteractiveImage\init(), ilPCAMDPageList\init(), ilPCPlugged\init(), ilPCContentInclude\init(), ilPCPlaceHolder\init(), ilPCSection\init(), ilPCGrid\init(), ilPCLoginPageElement\init(), ilPCParagraph\init(), ilPCQuestion\init(), ilPCTableData\init(), ilPCTabs\init(), ilPCDataTable\init(), and ilPCBlog\init().
|
static |
Sort an array of Hier IDS in ascending order.
Definition at line 353 of file class.ilPageContent.php.
Referenced by ilPageObject\copyContents().
ilPageContent::writePCId | ( | $a_pc_id | ) |
Write pc id.
Definition at line 288 of file class.ilPageContent.php.
ilPageContent::$dom |
Definition at line 22 of file class.ilPageContent.php.
|
protected |
Definition at line 28 of file class.ilPageContent.php.
Referenced by getFileDownloadLink().
|
protected |
Definition at line 33 of file class.ilPageContent.php.
Referenced by getFullscreenLink().
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(), ilPCGrid\getCellData(), ilPCFileList\getFileList(), getHierId(), ilPCParagraph\getLastSavedPCId(), ilPCParagraph\getParagraphSequenceContent(), ilPCInteractiveImage\getPopups(), ilPCTableData\moveColLeft(), ilPCTableData\moveColRight(), ilPCTableData\newColAfter(), ilPCTableData\newColBefore(), ilPCTabs\saveCaptions(), ilPCInteractiveImage\savePopups(), ilPCGrid\savePositions(), ilPCFileList\savePositions(), ilPCTabs\savePositions(), and ilPCGrid\saveWidths().
|
protected |
Definition at line 43 of file class.ilPageContent.php.
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(), ilPCPlugged\getPluginName(), 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().
ilPageContent::$page_lang |
Definition at line 23 of file class.ilPageContent.php.
|
protected |
Definition at line 38 of file class.ilPageContent.php.
Referenced by getSourcecodeDownloadScript().