ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilPCMyCourses Class Reference

Class ilPCMyCourses. More...

+ Inheritance diagram for ilPCMyCourses:
+ Collaboration diagram for ilPCMyCourses:

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 courses node in xml. More...
 
 setData ($a_sort)
 Set courses settings. More...
 
 getSorting ()
 
- 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 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
 
- Data Fields inherited from ilPageContent
 $hier_id
 
 $node
 
 $dom
 
 $page_lang
 

Additional Inherited Members

- Protected Member Functions inherited from ilPageContent
 setType ($a_type)
 Set Type. More...
 
- Protected Attributes inherited from ilPageContent
 $file_download_link
 
 $fullscreen_link
 
 $sourcecode_download_script
 
 $log
 

Detailed Description

Class ilPCMyCourses.

My courses content object (see ILIAS DTD)

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id
class.ilPCListItem.php 22210 2009-10-26 09:46:06Z akill

Definition at line 16 of file class.ilPCMyCourses.php.

Member Function Documentation

◆ create()

ilPCMyCourses::create ( $a_pg_obj,
  $a_hier_id,
  $a_pc_id = "" 
)

Create courses node in xml.

Parameters
object$a_pg_objPage Object
string$a_hier_idHierarchical ID

Definition at line 52 of file class.ilPCMyCourses.php.

References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.

53  {
54  $this->node = $this->createPageContentNode();
55  $a_pg_obj->insertContent($this, $a_hier_id, IL_INSERT_AFTER, $a_pc_id);
56  $this->mcrs_node = $this->dom->create_element("MyCourses");
57  $this->mcrs_node = $this->node->append_child($this->mcrs_node);
58  }
const IL_INSERT_AFTER
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
+ Here is the call graph for this function:

◆ getLangVars()

static ilPCMyCourses::getLangVars ( )
static

Get lang vars needed for editing.

Returns
array array of lang var keys

Definition at line 32 of file class.ilPCMyCourses.php.

References array.

33  {
34  return array("ed_insert_my_courses", "pc_mcrs");
35  }
Create styles array
The data for the language used.

◆ getSorting()

ilPCMyCourses::getSorting ( )

Definition at line 82 of file class.ilPCMyCourses.php.

83  {
84  if (is_object($this->mcrs_node))
85  {
86  return $this->mcrs_node->get_attribute("Sort");
87  }
88  }

◆ init()

ilPCMyCourses::init ( )

Init page content component.

Definition at line 23 of file class.ilPCMyCourses.php.

References ilPageContent\setType().

24  {
25  $this->setType("mcrs");
26  }
setType($a_type)
Set Type.
+ Here is the call graph for this function:

◆ setData()

ilPCMyCourses::setData (   $a_sort)

Set courses settings.

Definition at line 63 of file class.ilPCMyCourses.php.

References $ilUser.

64  {
65  global $ilUser;
66 
67  $this->mcrs_node->set_attribute("User", $ilUser->getId());
68  $this->mcrs_node->set_attribute("Sort", $a_sort);
69 
70  /* remove all children first
71  $children = $this->cach_node->child_nodes();
72  if($children)
73  {
74  foreach($children as $child)
75  {
76  $this->cach_node->remove_child($child);
77  }
78  }
79  */
80  }
$ilUser
Definition: imgupload.php:18

◆ setNode()

ilPCMyCourses::setNode (   $a_node)

Set node.

Definition at line 40 of file class.ilPCMyCourses.php.

41  {
42  parent::setNode($a_node); // this is the PageContent node
43  $this->mcrs_node =& $a_node->first_child(); // this is the courses node
44  }

Field Documentation

◆ $dom

ilPCMyCourses::$dom

Definition at line 18 of file class.ilPCMyCourses.php.


The documentation for this class was generated from the following file: