ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilPCMyCourses.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12
class
ilPCMyCourses
extends
ilPageContent
13
{
17
protected
$user
;
18
19
public
$dom
;
20
24
public
function
init
()
25
{
26
global
$DIC
;
27
$this->
user
= $DIC->user();
28
$this->
setType
(
"mcrs"
);
29
}
30
35
public
static
function
getLangVars
()
36
{
37
return
array(
"ed_insert_my_courses"
,
"pc_mcrs"
);
38
}
39
43
public
function
setNode
($a_node)
44
{
45
parent::setNode($a_node);
// this is the PageContent node
46
$this->mcrs_node = &$a_node->first_child();
// this is the courses node
47
}
48
55
public
function
create
(&$a_pg_obj, $a_hier_id, $a_pc_id =
""
)
56
{
57
$this->node = $this->
createPageContentNode
();
58
$a_pg_obj->insertContent($this, $a_hier_id,
IL_INSERT_AFTER
, $a_pc_id);
59
$this->mcrs_node = $this->dom->create_element(
"MyCourses"
);
60
$this->mcrs_node = $this->node->append_child($this->mcrs_node);
61
}
62
66
public
function
setData
($a_sort)
67
{
68
$ilUser
=
$this->user
;
69
70
$this->mcrs_node->set_attribute(
"User"
,
$ilUser
->getId());
71
$this->mcrs_node->set_attribute(
"Sort"
, $a_sort);
72
73
/* remove all children first
74
$children = $this->cach_node->child_nodes();
75
if($children)
76
{
77
foreach($children as $child)
78
{
79
$this->cach_node->remove_child($child);
80
}
81
}
82
*/
83
}
84
85
public
function
getSorting
()
86
{
87
if
(is_object($this->mcrs_node)) {
88
return
$this->mcrs_node->get_attribute(
"Sort"
);
89
}
90
}
91
}
ilPCMyCourses\create
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create courses node in xml.
Definition:
class.ilPCMyCourses.php:55
ilPCMyCourses\init
init()
Init page content component.
Definition:
class.ilPCMyCourses.php:24
ilPCMyCourses\$user
$user
Definition:
class.ilPCMyCourses.php:17
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:35
user
user()
Definition:
user.php:4
ilPageContent
Class ilPageContent.
Definition:
class.ilPageContent.php:17
ilPCMyCourses\$dom
$dom
Definition:
class.ilPCMyCourses.php:19
$DIC
global $DIC
Definition:
goto.php:24
IL_INSERT_AFTER
const IL_INSERT_AFTER
Definition:
class.ilPageObject.php:5
ilPCMyCourses\setData
setData($a_sort)
Set courses settings.
Definition:
class.ilPCMyCourses.php:66
ilPCMyCourses\getSorting
getSorting()
Definition:
class.ilPCMyCourses.php:85
ilPCMyCourses
Class ilPCMyCourses.
Definition:
class.ilPCMyCourses.php:12
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:436
$ilUser
$ilUser
Definition:
imgupload.php:18
ilPCMyCourses\setNode
setNode($a_node)
Set node.
Definition:
class.ilPCMyCourses.php:43
Modules
Portfolio
classes
class.ilPCMyCourses.php
Generated on Sat Apr 5 2025 21:01:03 for ILIAS by
1.8.13 (using
Doxyfile
)