ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilPCSection. More...
Public Member Functions | |
init () | |
Init page content component. More... | |
setNode ($a_node) | |
Set node. More... | |
create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
Create section node in xml. More... | |
setCharacteristic ($a_char) | |
Set Characteristic of section. More... | |
getCharacteristic () | |
Get characteristic of section. More... | |
modifyPageContentPostXsl ($a_output, $a_mode) | |
Modify page content after xsl. More... | |
setActiveFrom ($a_unix_ts) | |
Set activation from. More... | |
getActiveFrom () | |
Get activation from. More... | |
setActiveTo ($a_unix_ts) | |
Set activation to. More... | |
getActiveTo () | |
Get activation to. More... | |
getAttribute ($a_attr) | |
Get attribute. More... | |
setPermission ($a_val) | |
Set permission. More... | |
getPermission () | |
Get permission. More... | |
setPermissionRefId ($a_ref_id) | |
Set permission ref id. More... | |
getPermissionRefId () | |
Get permission ref id. More... | |
setNoLink () | |
Set no link. More... | |
setExtLink ($a_href) | |
Set link of area to an external one. More... | |
setIntLink ($a_type, $a_target, $a_target_frame) | |
Set link of area to an internal one. More... | |
getLink () | |
Get link. More... | |
handleAccess ($a_html, $a_mode) | |
insertTimings ($a_html) | |
Insert timings (in edit mode) More... | |
Public Member Functions inherited from ilPageContent | |
__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 | getLangVars () |
Get lang vars needed for editing. More... | |
static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
After page has been updated (or created) More... | |
static | saveTimings ($a_page) |
Save timings. More... | |
static | getCacheTriggerString ($a_page) |
Get page cache update trigger string. More... | |
Static Public Member Functions inherited from ilPageContent | |
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 | |
$dom | |
$sec_node | |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom | |
$page_lang | |
Protected Member Functions | |
setAttribute ($a_attr, $a_val) | |
Set attribute. More... | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. More... | |
Protected Attributes | |
$access | |
$ctrl | |
$lng | |
Protected Attributes inherited from ilPageContent | |
$file_download_link | |
$fullscreen_link | |
$sourcecode_download_script | |
$log | |
Class ilPCSection.
Section content object (see ILIAS DTD)
Definition at line 17 of file class.ilPCSection.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 123 of file class.ilPCSection.php.
ilPCSection::create | ( | & | $a_pg_obj, |
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Create section node in xml.
object | $a_pg_obj | Page Object |
string | $a_hier_id | Hierarchical ID |
Definition at line 65 of file class.ilPCSection.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
ilPCSection::getActiveFrom | ( | ) |
Get activation from.
Definition at line 164 of file class.ilPCSection.php.
ilPCSection::getActiveTo | ( | ) |
Get activation to.
Definition at line 194 of file class.ilPCSection.php.
ilPCSection::getAttribute | ( | $a_attr | ) |
Get attribute.
string | $a_attr | attribute |
Definition at line 226 of file class.ilPCSection.php.
Referenced by getPermission(), and getPermissionRefId().
|
static |
Get page cache update trigger string.
ilPageObject | $a_page |
Definition at line 443 of file class.ilPCSection.php.
References $DIC, $ilDB, and IL_CAL_UNIX.
Referenced by ilPageObjectGUI\showPage().
ilPCSection::getCharacteristic | ( | ) |
Get characteristic of section.
Definition at line 95 of file class.ilPCSection.php.
|
static |
Get lang vars needed for editing.
Definition at line 110 of file class.ilPCSection.php.
ilPCSection::getLink | ( | ) |
ilPCSection::getPermission | ( | ) |
Get permission.
Definition at line 249 of file class.ilPCSection.php.
References getAttribute().
ilPCSection::getPermissionRefId | ( | ) |
Get permission ref id.
Definition at line 270 of file class.ilPCSection.php.
References $id, and getAttribute().
ilPCSection::handleAccess | ( | $a_html, | |
$a_mode | |||
) |
$a_html | |
$a_mode |
Definition at line 355 of file class.ilPCSection.php.
References $access, $end, $id, and $start.
Referenced by modifyPageContentPostXsl().
ilPCSection::init | ( | ) |
Init page content component.
Definition at line 40 of file class.ilPCSection.php.
References $DIC, and ilPageContent\setType().
ilPCSection::insertTimings | ( | $a_html | ) |
Insert timings (in edit mode)
string | $a_html | html |
Definition at line 474 of file class.ilPCSection.php.
References $ctrl, $end, $from, $html, $i, $ilCtrl, $lng, $start, ilDatePresentation\formatDate(), IL_CAL_UNIX, and ilDatePresentation\setUseRelativeDates().
ilPCSection::modifyPageContentPostXsl | ( | $a_output, | |
$a_mode | |||
) |
Modify page content after xsl.
string | $a_output |
Definition at line 135 of file class.ilPCSection.php.
References handleAccess().
|
static |
Save timings.
ilPageObject | $a_page | page object |
Definition at line 389 of file class.ilPCSection.php.
References $DIC, $from, $i, $ilDB, $path, $res, $xml, domxml_open_mem(), xpath_eval(), and xpath_new_context().
ilPCSection::setActiveFrom | ( | $a_unix_ts | ) |
Set activation from.
string | $a_unix_ts | unix ts activation from |
Definition at line 148 of file class.ilPCSection.php.
ilPCSection::setActiveTo | ( | $a_unix_ts | ) |
Set activation to.
string | $a_unix_ts | unix ts activation to |
Definition at line 178 of file class.ilPCSection.php.
|
protected |
Set attribute.
string | $a_attr | attribute |
string | $a_val | attribute value |
Definition at line 209 of file class.ilPCSection.php.
Referenced by setPermission(), and setPermissionRefId().
ilPCSection::setCharacteristic | ( | $a_char | ) |
Set Characteristic of section.
string | $a_char | Characteristic |
Definition at line 79 of file class.ilPCSection.php.
ilPCSection::setExtLink | ( | $a_href | ) |
Set link of area to an external one.
string | $a_href |
Definition at line 291 of file class.ilPCSection.php.
References $attributes, ilDOMUtil\setFirstOptionalElement(), and setNoLink().
ilPCSection::setIntLink | ( | $a_type, | |
$a_target, | |||
$a_target_frame | |||
) |
Set link of area to an internal one.
Definition at line 310 of file class.ilPCSection.php.
References $a_type, $attributes, ilDOMUtil\setFirstOptionalElement(), and setNoLink().
ilPCSection::setNode | ( | $a_node | ) |
Set node.
Definition at line 53 of file class.ilPCSection.php.
ilPCSection::setNoLink | ( | ) |
Set no link.
Definition at line 282 of file class.ilPCSection.php.
References ilDOMUtil\deleteAllChildsByName().
Referenced by setExtLink(), and setIntLink().
ilPCSection::setPermission | ( | $a_val | ) |
Set permission.
string | $a_val | "read"|"write"|"visible" |
Definition at line 239 of file class.ilPCSection.php.
References setAttribute().
ilPCSection::setPermissionRefId | ( | $a_ref_id | ) |
Set permission ref id.
integer | $a_ref_id | ref id |
Definition at line 260 of file class.ilPCSection.php.
References setAttribute().
|
protected |
Definition at line 22 of file class.ilPCSection.php.
Referenced by handleAccess().
|
protected |
Definition at line 27 of file class.ilPCSection.php.
Referenced by insertTimings().
ilPCSection::$dom |
Definition at line 34 of file class.ilPCSection.php.
|
protected |
Definition at line 32 of file class.ilPCSection.php.
Referenced by insertTimings().
ilPCSection::$sec_node |
Definition at line 35 of file class.ilPCSection.php.