ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 509 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 488 of file class.ilPageContent.php.
|
static |
Before page is being deleted.
object | $a_page | page object |
Definition at line 497 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 440 of file class.ilPageContent.php.
References $node.
Referenced by ilPCTable\addCell(), ilPCFileList\create(), ilPCTable\create(), ilPCList\create(), ilPCQuestionOverview\create(), ilPCPlugged\create(), ilPCMap\create(), ilPCVerification\create(), ilPCProfile\create(), ilPCResources\create(), ilPCSkills\create(), ilPCSection\create(), ilPCPlaceHolder\create(), ilPCMyCourses\create(), ilPCConsultationHours\create(), ilPCAMDPageList\create(), ilPCContentInclude\create(), ilPCDataTable\create(), ilPCLoginPageElement\create(), ilPCBlog\create(), ilPCTabs\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 321 of file class.ilPageContent.php.
ilPageContent::disable | ( | ) |
Disable page content.
Definition at line 413 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::enable | ( | ) |
Enable page content.
Definition at line 405 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::getCssFiles | ( | $a_mode | ) |
ilPageContent::getFileDownloadLink | ( | ) |
Get file download link.
Definition at line 229 of file class.ilPageContent.php.
References $file_download_link.
Referenced by ilPCContentInclude\modifyPageContentPostXsl().
ilPageContent::getFullscreenLink | ( | ) |
Get fullscreen link.
Definition at line 249 of file class.ilPageContent.php.
References $fullscreen_link.
Referenced by ilPCContentInclude\modifyPageContentPostXsl().
ilPageContent::getHierId | ( | ) |
Get hierarchical id.
Definition at line 167 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 | ( | $a_mode | ) |
|
static |
Get lang vars needed for editing.
Definition at line 454 of file class.ilPageContent.php.
References array.
& ilPageContent::getNode | ( | ) |
Get xml node of page content.
Definition at line 125 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 | ( | $a_mode | ) |
ilPageContent::getPage | ( | ) |
Get page.
Definition at line 78 of file class.ilPageContent.php.
References init().
Referenced by ilPCAMDPageList\findPages(), ilPCTableData\fixHideAndSpans(), ilPCQuestion\getCssFiles(), ilPCQuestion\getJavascriptFiles(), ilPCQuestion\getOnloadCode(), ilPCQuestion\getQuestionJsOfPage(), ilPCTable\importCell(), ilPCSourceCode\modifyPageContentPostXsl(), ilPCAMDPageList\modifyPageContentPostXsl(), ilPCContentInclude\modifyPageContentPostXsl(), ilPCQuestion\modifyPageContentPostXsl(), ilPCMediaObject\modifyPageContentPostXsl(), ilPCParagraph\saveJS(), and ilPCParagraph\setText().
ilPageContent::getPCId | ( | ) |
ilPageContent::getSourcecodeDownloadScript | ( | ) |
Get sourcecode download script.
Definition at line 269 of file class.ilPageContent.php.
References $sourcecode_download_script.
Referenced by ilPCContentInclude\modifyPageContentPostXsl().
ilPageContent::getType | ( | ) |
Get type of page content.
Definition at line 104 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 |
Definition at line 465 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 337 of file class.ilPageContent.php.
|
staticfinal |
Increases an hierarchical editing id at lowest level (last number)
string | $ed_id | hierarchical ID |
Definition at line 306 of file class.ilPageContent.php.
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 423 of file class.ilPageContent.php.
|
static |
Check whether Hier ID $a is greater than Hier ID $b.
Definition at line 370 of file class.ilPageContent.php.
ilPageContent::lookupHierId | ( | ) |
Get hierarchical id from dom.
Definition at line 176 of file class.ilPageContent.php.
ilPageContent::modifyPageContentPostXsl | ( | $a_output, | |
$a_mode | |||
) |
Modify page content after xsl.
string | $a_output |
Definition at line 475 of file class.ilPageContent.php.
ilPageContent::readHierId | ( | ) |
Read PC Id.
Definition at line 186 of file class.ilPageContent.php.
Referenced by ilPCParagraph\getParagraphSequenceContent(), and ilPCInteractiveImage\setNode().
ilPageContent::readPCId | ( | ) |
Read PC Id.
Definition at line 280 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 394 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 219 of file class.ilPageContent.php.
ilPageContent::setFullscreenLink | ( | $a_fullscreen_link | ) |
Set fullscreen link.
string | $a_download_link | download link |
Definition at line 239 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 159 of file class.ilPageContent.php.
ilPageContent::setNode | ( | $a_node | ) |
Set xml node of page content.
object | $a_node | node object |
Definition at line 114 of file class.ilPageContent.php.
ilPageContent::setPage | ( | $a_val | ) |
Set page.
object | $a_val | page object |
Definition at line 68 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 259 of file class.ilPageContent.php.
|
finalprotected |
Set Type.
Must be called in constructor.
string | $a_type | type of page content component |
Definition at line 94 of file class.ilPageContent.php.
References $a_type.
Referenced by ilPCContentTemplate\init(), ilPCSourceCode\init(), ilPCMyCourses\init(), ilPCFileItem\init(), ilPCList\init(), ilPCQuestionOverview\init(), ilPCConsultationHours\init(), ilPCAMDPageList\init(), ilPCMediaObject\init(), ilPCPlugged\init(), ilPCListItem\init(), ilPCVerification\init(), ilPCTab\init(), ilPCMap\init(), ilPCFileList\init(), ilPCProfile\init(), ilPCResources\init(), ilPCSection\init(), ilPCSkills\init(), ilPCInteractiveImage\init(), ilPCTable\init(), ilPCPlaceHolder\init(), ilPCQuestion\init(), ilPCContentInclude\init(), ilPCParagraph\init(), ilPCLoginPageElement\init(), ilPCTableData\init(), ilPCBlog\init(), ilPCDataTable\init(), and ilPCTabs\init().
|
static |
Sort an array of Hier IDS in ascending order.
Definition at line 360 of file class.ilPageContent.php.
References array.
Referenced by ilPageObject\copyContents().
ilPageContent::writePCId | ( | $a_pc_id | ) |
Write pc id.
Definition at line 291 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(), 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().
|
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(), 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().