/**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->q_node =& $a_node->first_child();
     //... and this the PlaceHolder
 }
Пример #2
0
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->list_node =& $a_node->first_child();
     // this is the Table node
 }
Пример #3
0
 /**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->incl_node =& $a_node->first_child();
     // this is the snippet node
 }
 /**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->sec_node =& $a_node->first_child();
     // this is the Section node
 }
Пример #5
0
 /**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->vrfc_node =& $a_node->first_child();
     // this is the verification node
 }
 /**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->qover_node = $a_node->first_child();
     // this is the question overview node
 }
Пример #7
0
 /**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->res_node =& $a_node->first_child();
     // this is the Resources node
 }
 /**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->res_node = $a_node->first_child();
     // this is the login page element
 }
Пример #9
0
 /**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->amdpl_node =& $a_node->first_child();
     // this is the courses node
 }
 /**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->cach_node =& $a_node->first_child();
     // this is the consultation hours node
 }
Пример #11
0
 /**
  * Set node
  */
 function setNode(&$a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->plug_node =& $a_node->first_child();
     // this is the Plugged node
 }
 /**
  * Set node (and media object node)
  */
 function setNode($a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
     $this->iim_node = $a_node->first_child();
     $this->med_alias_node = $this->iim_node->first_child();
     if (is_object($this->med_alias_node) && $this->med_alias_node->myDOMNode != null) {
         $id = $this->med_alias_node->get_attribute("OriginId");
         $mob_id = ilInternalLink::_extractObjIdOfTarget($id);
         if (ilObject::_lookupType($mob_id) == "mob") {
             $this->setMediaObject(new ilObjMediaObject($mob_id));
         }
     }
     include_once "./Services/COPage/classes/class.ilMediaAliasItem.php";
     $this->std_alias_item = new ilMediaAliasItem($this->dom, $this->readHierId(), "Standard", $this->readPCId(), "InteractiveImage");
 }
 /**
  * Need to override getType from ilPageContent to distinguish between Pararagraph and Source
  */
 function getType()
 {
     return $this->getCharacteristic() == "Code" ? "src" : parent::getType();
 }
Пример #14
0
 /**
  * Copy contents to clipboard
  *
  * @param	string		$a_hids		array of hierarchical ids of content objects
  */
 function copyContents($a_hids)
 {
     global $ilUser;
     //var_dump($a_hids);
     if (!is_array($a_hids)) {
         return;
     }
     $time = date("Y-m-d H:i:s", time());
     $hier_ids = array();
     $skip = array();
     foreach ($a_hids as $a_hid) {
         if ($a_hid == "") {
             continue;
         }
         $a_hid = explode(":", $a_hid);
         // check, whether new hid is child of existing one or vice versa
         reset($hier_ids);
         foreach ($hier_ids as $h) {
             if ($h . "_" == substr($a_hid[0], 0, strlen($h) + 1)) {
                 $skip[] = $a_hid[0];
             }
             if ($a_hid[0] . "_" == substr($h, 0, strlen($a_hid[0]) + 1)) {
                 $skip[] = $h;
             }
         }
         $pc_id[$a_hid[0]] = $a_hid[1];
         if ($a_hid[0] != "") {
             $hier_ids[$a_hid[0]] = $a_hid[0];
         }
     }
     foreach ($skip as $s) {
         unset($hier_ids[$s]);
     }
     include_once "./Services/COPage/classes/class.ilPageContent.php";
     $hier_ids = ilPageContent::sortHierIds($hier_ids);
     $nr = 1;
     foreach ($hier_ids as $hid) {
         $curr_node = $this->getContentNode($hid, $pc_id[$hid]);
         if (is_object($curr_node)) {
             if ($curr_node->node_name() == "PageContent") {
                 $content = $this->dom->dump_node($curr_node);
                 // remove pc and hier ids
                 $content = eregi_replace("PCID=\"[a-z0-9]*\"", "", $content);
                 $content = eregi_replace("HierId=\"[a-z0-9_]*\"", "", $content);
                 $ilUser->addToPCClipboard($content, $time, $nr);
                 $nr++;
             }
         }
     }
     include_once "./Modules/LearningModule/classes/class.ilEditClipboard.php";
     ilEditClipboard::setAction("copy");
 }
Пример #15
0
 /**
  * Set node (in fact this will never be called, since these types of nodes do not exist
  */
 function setNode($a_node)
 {
     parent::setNode($a_node);
     // this is the PageContent node
 }