ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilPCMyCourses.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
require_once(
"./Services/COPage/classes/class.ilPageContent.php"
);
5
16
class
ilPCMyCourses
extends
ilPageContent
17
{
18
var
$dom
;
19
23
function
init
()
24
{
25
$this->
setType
(
"mcrs"
);
26
}
27
32
static
function
getLangVars
()
33
{
34
return
array
(
"ed_insert_my_courses"
,
"pc_mcrs"
);
35
}
36
40
function
setNode
($a_node)
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
}
45
52
function
create
(&$a_pg_obj, $a_hier_id, $a_pc_id =
""
)
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
}
59
63
function
setData
($a_sort)
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
}
81
82
function
getSorting
()
83
{
84
if
(is_object($this->mcrs_node))
85
{
86
return
$this->mcrs_node->get_attribute(
"Sort"
);
87
}
88
}
89
}
90
91
?>
ilPCMyCourses\create
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create courses node in xml.
Definition:
class.ilPCMyCourses.php:52
ilPCMyCourses\init
init()
Init page content component.
Definition:
class.ilPCMyCourses.php:23
ilPageContent\setType
setType($a_type)
Set Type.
Definition:
class.ilPageContent.php:94
ilPCMyCourses\getLangVars
static getLangVars()
Get lang vars needed for editing.
Definition:
class.ilPCMyCourses.php:32
ilPageContent
Class ilPageContent.
Definition:
class.ilPageContent.php:17
ilPCMyCourses\$dom
$dom
Definition:
class.ilPCMyCourses.php:18
$ilUser
$ilUser
Definition:
imgupload.php:18
IL_INSERT_AFTER
const IL_INSERT_AFTER
Definition:
class.ilPageObject.php:5
ilPCMyCourses\setData
setData($a_sort)
Set courses settings.
Definition:
class.ilPCMyCourses.php:63
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilPCMyCourses\getSorting
getSorting()
Definition:
class.ilPCMyCourses.php:82
ilPCMyCourses
Class ilPCMyCourses.
Definition:
class.ilPCMyCourses.php:16
ilPageContent\createPageContentNode
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
Definition:
class.ilPageContent.php:440
php
ilPCMyCourses\setNode
setNode($a_node)
Set node.
Definition:
class.ilPCMyCourses.php:40
Modules
Portfolio
classes
class.ilPCMyCourses.php
Generated on Fri Jan 17 2025 19:01:01 for ILIAS by
1.8.13 (using
Doxyfile
)