ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
s
t
w
+
Functions
_
a
b
c
f
g
h
i
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.ilECSCourseMemberConnector.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once
'./Services/WebServices/ECS/classes/class.ilECSConnector.php'
;
5
include_once
'./Services/WebServices/ECS/classes/class.ilECSConnectorException.php'
;
6
13
class
ilECSCourseMemberConnector
extends
ilECSConnector
14
{
15
20
public
function
__construct
(
ilECSSetting
$settings
= null)
21
{
22
parent::__construct
(
$settings
);
23
}
24
25
30
public
function
getCourseMember
($course_member_id, $a_details =
false
)
31
{
32
$this->path_postfix =
'/campusconnect/course_members/'
. (int) $course_member_id;
33
34
if
($a_details and $course_member_id) {
35
$this->path_postfix .=
'/details'
;
36
}
37
38
try
{
39
$this->
prepareConnection
();
40
$this->
setHeader
(array());
41
if
($a_details) {
42
$this->
addHeader
(
'Accept'
,
'application/json'
);
43
}
else
{
44
#$this->addHeader('Accept', 'text/uri-list');
45
}
46
$this->curl->setOpt(CURLOPT_HTTPHEADER, $this->
getHeader
());
47
$res
= $this->
call
();
48
49
if
(substr(
$res
, 0, 4) ==
'http'
) {
50
$json = file_get_contents(
$res
);
51
$ecs_result =
new
ilECSResult
($json);
52
}
else
{
53
$ecs_result =
new
ilECSResult
(
$res
);
54
}
55
56
// Return ECSEContentDetails for details switch
57
if
($a_details) {
58
include_once
'./Services/WebServices/ECS/classes/class.ilECSEContentDetails.php'
;
59
$details =
new
ilECSEContentDetails
();
60
$GLOBALS
[
'DIC'
][
'ilLog'
]->write(print_r(
$res
,
true
));
61
$details->loadFromJson($ecs_result->getResult());
62
return
$details;
63
}
64
65
return
$ecs_result->getResult();
66
}
catch
(
ilCurlConnectionException
$e
) {
67
throw
new
ilECSConnectorException
(
'Error calling ECS service: '
. $e->getMessage());
68
}
69
}
70
}
ilCurlConnectionException
Definition:
class.ilCurlConnectionException.php:34
ilECSSetting
Definition:
class.ilECSSetting.php:33
ilECSConnector\$settings
$settings
Definition:
class.ilECSConnector.php:50
ilECSConnector\getHeader
getHeader()
Definition:
class.ilECSConnector.php:82
ilECSResult
Definition:
class.ilECSResult.php:35
Vendor\Package\$e
$e
Definition:
example_cleaned.php:31
ilECSEContentDetails
Presentation of ecs content details (http://...campusconnect/courselinks/id/details) ...
Definition:
class.ilECSEContentDetails.php:32
$res
foreach($_POST as $key=> $value) $res
Definition:
save_question_post_data.php:15
ilECSConnectorException
Definition:
class.ilECSConnectorException.php:36
$GLOBALS
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition:
PEAR.php:64
ilECSConnector\setHeader
setHeader($a_header_strings)
Definition:
class.ilECSConnector.php:87
ilECSCourseMemberConnector
Connector for course member ressource.
Definition:
class.ilECSCourseMemberConnector.php:13
ilECSCourseMemberConnector\__construct
__construct(ilECSSetting $settings=null)
Constructor.
Definition:
class.ilECSCourseMemberConnector.php:20
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:30
ilECSConnector\call
call()
call peer
Definition:
class.ilECSConnector.php:613
ilECSConnector
Definition:
class.ilECSConnector.php:38
ilECSConnector\addHeader
addHeader($a_name, $a_value)
Add Header.
Definition:
class.ilECSConnector.php:77
ilECSConnector\prepareConnection
prepareConnection()
prepare connection
Definition:
class.ilECSConnector.php:570
ilECSCourseMemberConnector\getCourseMember
getCourseMember($course_member_id, $a_details=false)
Get single directory tree.
Definition:
class.ilECSCourseMemberConnector.php:30
Services
WebServices
ECS
classes
Course
class.ilECSCourseMemberConnector.php
Generated on Sat Apr 5 2025 20:01:34 for ILIAS by
1.8.13 (using
Doxyfile
)