ILIAS
eassessment Revision 61809
|
Public Member Functions | |
__construct () | |
Constructor. | |
addAuth ($a_post) | |
Add auth resource. | |
getAuth ($a_hash) | |
get auth resource | |
getEventQueues () | |
get event queue | |
getResources ($a_econtent_id=0) | |
Get resources from ECS server. | |
addResource ($a_post) | |
Add resource. | |
updateResource ($a_econtent_id, $a_post_string) | |
update resource | |
deleteResource ($a_econtent_id) | |
Delete resource. | |
getMemberships ($a_mid=0) | |
public |
Data Fields | |
const | HTTP_CODE_CREATED = 201 |
const | HTTP_CODE_OK = 200 |
const | HTTP_CODE_NOT_FOUND = 404 |
Protected Attributes | |
$path_postfix = '' | |
$settings |
Private Member Functions | |
prepareConnection () | |
prepare connection | |
call () | |
call peer |
Definition at line 38 of file class.ilECSConnector.php.
ilECSConnector::__construct | ( | ) |
Constructor.
public
Definition at line 55 of file class.ilECSConnector.php.
References ilECSSettings\_getInstance().
ilECSConnector::addAuth | ( | $a_post | ) |
Add auth resource.
public
string | post data |
ilECSConnectorException |
Definition at line 73 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
ilECSConnector::addResource | ( | $a_post | ) |
Add resource.
public
string | post data |
ilECSConnectorException |
Definition at line 250 of file class.ilECSConnector.php.
References $ilLog, $res, ilECSUtils\_fetchEContentIdFromHeader(), call(), and prepareConnection().
|
private |
call peer
private
ilCurlConnectionException |
Definition at line 452 of file class.ilECSConnector.php.
References $res.
Referenced by addAuth(), addResource(), deleteResource(), getAuth(), getEventQueues(), getMemberships(), getResources(), and updateResource().
ilECSConnector::deleteResource | ( | $a_econtent_id | ) |
Delete resource.
public
string | econtent id |
ilECSConnectorException |
Definition at line 347 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
ilECSConnector::getAuth | ( | $a_hash | ) |
get auth resource
public
auth | hash (transfered via GET) |
ilECSConnectorException |
Definition at line 114 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
ilECSConnector::getEventQueues | ( | ) |
get event queue
public
ilECSConnectorException |
Definition at line 158 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
ilECSConnector::getMemberships | ( | $a_mid = 0 | ) |
public
int | membership id |
ilECSConnectorException |
Definition at line 389 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
ilECSConnector::getResources | ( | $a_econtent_id = 0 | ) |
Get resources from ECS server.
public
int | e-content id |
ilECSConnectorException |
Definition at line 202 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
|
private |
prepare connection
private
ilCurlConnectionException |
Definition at line 420 of file class.ilECSConnector.php.
References ilCurlConnection\init(), and ilECSSettings\PROTOCOL_HTTPS.
Referenced by addAuth(), addResource(), deleteResource(), getAuth(), getEventQueues(), getMemberships(), getResources(), and updateResource().
ilECSConnector::updateResource | ( | $a_econtent_id, | |
$a_post_string | |||
) |
update resource
public
int | econtent id |
string | post content |
ilECSConnectorException |
Definition at line 295 of file class.ilECSConnector.php.
References $ilLog, $res, call(), ilUtil\ilTempnam(), and prepareConnection().
|
protected |
Definition at line 44 of file class.ilECSConnector.php.
|
protected |
Definition at line 46 of file class.ilECSConnector.php.
const ilECSConnector::HTTP_CODE_CREATED = 201 |
Definition at line 40 of file class.ilECSConnector.php.
const ilECSConnector::HTTP_CODE_NOT_FOUND = 404 |
Definition at line 42 of file class.ilECSConnector.php.
Referenced by ilECSEContentReader\read().
const ilECSConnector::HTTP_CODE_OK = 200 |
Definition at line 41 of file class.ilECSConnector.php.