55        $this->dom = $a_pg_obj->getDom();
 
   58            die(
"Error: ilPageContent::init() did not set type");
 
   69        $this->pg_obj = $a_val;
 
   86    abstract public function init();
 
  115        $this->node = $a_node;
 
  160        $this->hier_id = $a_hier_id;
 
  177        return $this->node->get_attribute(
"HierId");
 
  187        if (is_object($this->node)) {
 
  188            return $this->node->get_attribute(
"HierId");
 
  199        $this->pcid = $a_pcid;
 
  219        $this->file_download_link = $a_download_link;
 
  239        $this->fullscreen_link = $a_fullscreen_link;
 
  259        $this->sourcecode_download_script = $script_name;
 
  280        if (is_object($this->node)) {
 
  281            return $this->node->get_attribute(
"PCID");
 
  290        if (is_object($this->node)) {
 
  291            $this->node->set_attribute(
"PCID", $a_pc_id);
 
  304        $id = explode(
"_", $ed_id);
 
  307        return implode(
$id, 
"_");
 
  319        $id = explode(
"_", $ed_id);
 
  322        return implode(
$id, 
"_");
 
  335        $id1 = explode(
"_", $ed_id1);
 
  336        $id2 = explode(
"_", $ed_id1);
 
  337        if (count($id1) == count($id2)) {
 
  340            foreach ($id1 as 
$key => 
$id) {
 
  355        uasort($a_array, array(
"ilPageContent", 
"isGreaterHierId"));
 
  365        $a_arr = explode(
"_", $a);
 
  366        $b_arr = explode(
"_", $b);
 
  367        for (
$i = 0; 
$i < count($a_arr); 
$i++) {
 
  368            if ((
int) $a_arr[
$i] > (int) $b_arr[
$i]) {
 
  370            } elseif ((
int) $a_arr[
$i] < (
int) $b_arr[
$i]) {
 
  385        if (is_object($this->node)) {
 
  386            $this->node->set_attribute(
"Enabled", $value);
 
  413        if (is_object($this->node) && $this->node->has_attribute(
"Enabled")) {
 
  414            $compare = $this->node->get_attribute(
"Enabled");
 
  419        return strcasecmp($compare, 
"true") == 0;
 
  427        $node = $this->dom->create_element(
"PageContent");
 
  428        if ($a_set_this_node) {
 
  449    public static function handleCopiedContent(DOMDocument $a_domdoc, $a_self_ass = 
true, $a_clone_mobs = 
false)
 
  472    public static function afterPageUpdate($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation)
 
An exception for terminatinating execution or to throw for unit testing.
static getLogger($a_component_id)
Get component logger.
writePCId($a_pc_id)
Write pc id.
setEnabled($value)
Set Enabled value for page content component.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element)
static beforePageDelete($a_page)
Before page is being deleted.
__construct($a_pg_obj)
Constructor.
static decEdId($ed_id)
Decreases an hierarchical editing id at lowest level (last number)
getHierId()
Get hierarchical id.
getFileDownloadLink()
Get file download link.
modifyPageContentPostXsl($a_output, $a_mode)
Modify page content after xsl.
static handleCopiedContent(DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false)
Handle copied content.
static isGreaterHierId($a, $b)
Check whether Hier ID $a is greater than Hier ID $b.
setNode($a_node)
Set xml node of page content.
setFullscreenLink($a_fullscreen_link)
Set fullscreen link.
static afterPageHistoryEntry($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr)
After page history entry has been created.
getCssFiles($a_mode)
Get css files.
getType()
Get type of page content.
getFullscreenLink()
Get fullscreen link.
setHierId($a_hier_id)
Set hierarchical ID in xml structure.
static haveSameContainer($ed_id1, $ed_id2)
Check, if two ids are in same container.
setFileDownloadLink($a_download_link)
Set file download link.
disable()
Disable page content.
static incEdId($ed_id)
Increases an hierarchical editing id at lowest level (last number)
enable()
Enable page content.
setPcId($a_pcid)
Set PC Id.
isEnabled()
Check whether page content is enabled.
setSourcecodeDownloadScript($script_name)
Set sourcecode download script.
static afterPageUpdate($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation)
After page has been updated (or created)
getSourcecodeDownloadScript()
Get sourcecode download script.
lookupHierId()
Get hierarchical id from dom.
static sortHierIds($a_array)
Sort an array of Hier IDS in ascending order.
getJavascriptFiles($a_mode)
Get Javascript files.
& getNode()
Get xml node of page content.
setType($a_type)
Set Type.
static getLangVars()
Get lang vars needed for editing.
$sourcecode_download_script
getOnloadCode($a_mode)
Get on load code.
if(!array_key_exists('StateId', $_REQUEST)) $id