ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct (ilECSSetting $settings=null) | |
Constructor. | |
addHeader ($a_name, $a_value) | |
Add Header. | |
getHeader () | |
setHeader ($a_header_strings) | |
getServer () | |
Get current server setting. | |
addAuth ($a_post, $a_target_mid) | |
Add auth resource. | |
getAuth ($a_hash) | |
get auth resource | |
getEventQueues () | |
get event queue | |
readEventFifo ($a_delete=false) | |
Read event fifo. | |
getResourceList ($a_path) | |
getResource ($a_path, $a_econtent_id, $a_details_only=false) | |
Get resources from ECS server. | |
addResource ($a_path, $a_post) | |
Add resource. | |
updateResource ($a_path, $a_econtent_id, $a_post_string) | |
update resource | |
deleteResource ($a_path, $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 |
const | HEADER_MEMBERSHIPS = 'X-EcsReceiverMemberships' |
const | HEADER_COMMUNITIES = 'X-EcsReceiverCommunities' |
Protected Member Functions | |
prepareConnection () | |
prepare connection | |
call () | |
call peer |
Static Protected Member Functions | |
static | _fetchEContentIdFromHeader ($a_header) |
fetch new econtent id from location header |
Protected Attributes | |
$path_postfix = '' | |
$settings | |
$header_strings = array() |
Definition at line 38 of file class.ilECSConnector.php.
ilECSConnector::__construct | ( | ilECSSetting | $settings = null | ) |
Constructor.
public
Reimplemented in ilECSCourseConnector, ilECSCourseMemberConnector, ilECSDirectoryTreeConnector, and ilECSCourseUrlConnector.
Definition at line 61 of file class.ilECSConnector.php.
|
staticprotected |
fetch new econtent id from location header
public
array | header array |
Definition at line 654 of file class.ilECSConnector.php.
References $ilLog.
Referenced by addResource().
ilECSConnector::addAuth | ( | $a_post, | |
$a_target_mid | |||
) |
Add auth resource.
public
string | post data |
ilECSConnectorException |
Definition at line 118 of file class.ilECSConnector.php.
References $auth, $ilLog, $result, $ret, addHeader(), call(), getHeader(), HEADER_MEMBERSHIPS, and prepareConnection().
ilECSConnector::addHeader | ( | $a_name, | |
$a_value | |||
) |
Add Header.
string | $a_name | |
string | $a_value |
Definition at line 80 of file class.ilECSConnector.php.
Referenced by addAuth(), addResource(), ilECSCourseUrlConnector\addUrl(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), readEventFifo(), and updateResource().
ilECSConnector::addResource | ( | $a_path, | |
$a_post | |||
) |
Add resource.
public
string | resource "path" |
string | post data |
ilECSConnectorException |
Definition at line 398 of file class.ilECSConnector.php.
References $ilLog, $res, _fetchEContentIdFromHeader(), addHeader(), call(), getHeader(), and prepareConnection().
|
protected |
call peer
private
ilCurlConnectionException |
Definition at line 632 of file class.ilECSConnector.php.
References $res.
Referenced by addAuth(), addResource(), ilECSCourseUrlConnector\addUrl(), deleteResource(), getAuth(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), getEventQueues(), getMemberships(), getResource(), getResourceList(), readEventFifo(), and updateResource().
ilECSConnector::deleteResource | ( | $a_path, | |
$a_econtent_id | |||
) |
Delete resource.
public
string | resource "path" |
string | econtent id |
ilECSConnectorException |
Definition at line 504 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 172 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
ilECSConnector::getEventQueues | ( | ) |
get event queue
public
ilECSConnectorException |
Definition at line 216 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
ilECSConnector::getHeader | ( | ) |
Definition at line 85 of file class.ilECSConnector.php.
References $header_strings.
Referenced by addAuth(), addResource(), ilECSCourseUrlConnector\addUrl(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), getResourceList(), and updateResource().
ilECSConnector::getMemberships | ( | $a_mid = 0 | ) |
public
int | membership id |
ilECSConnectorException |
Definition at line 546 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
ilECSConnector::getResource | ( | $a_path, | |
$a_econtent_id, | |||
$a_details_only = false |
|||
) |
Get resources from ECS server.
public
string | resource "path" |
int | e-content id |
ilECSConnectorException |
Definition at line 338 of file class.ilECSConnector.php.
References $ilLog, $res, $result, call(), and prepareConnection().
ilECSConnector::getResourceList | ( | $a_path | ) |
Definition at line 297 of file class.ilECSConnector.php.
References $ilLog, $res, call(), getHeader(), prepareConnection(), and ilECSResult\RESULT_TYPE_URL_LIST.
ilECSConnector::getServer | ( | ) |
Get current server setting.
Definition at line 99 of file class.ilECSConnector.php.
References $settings.
Referenced by prepareConnection().
|
protected |
prepare connection
private
ilCurlConnectionException |
Definition at line 585 of file class.ilECSConnector.php.
References ilECSSetting\AUTH_APACHE, ilECSSetting\AUTH_CERTIFICATE, getServer(), and ilCurlConnection\init().
Referenced by addAuth(), addResource(), ilECSCourseUrlConnector\addUrl(), deleteResource(), getAuth(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), getEventQueues(), getMemberships(), getResource(), getResourceList(), readEventFifo(), and updateResource().
ilECSConnector::readEventFifo | ( | $a_delete = false | ) |
Read event fifo.
bool | set to true for deleting the current element |
ilECSConnectorException |
Definition at line 253 of file class.ilECSConnector.php.
References $ilLog, $res, $result, addHeader(), call(), and prepareConnection().
ilECSConnector::setHeader | ( | $a_header_strings | ) |
Definition at line 90 of file class.ilECSConnector.php.
Referenced by ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), and ilECSDirectoryTreeConnector\getDirectoryTrees().
ilECSConnector::updateResource | ( | $a_path, | |
$a_econtent_id, | |||
$a_post_string | |||
) |
update resource
public
string | resource "path" |
int | econtent id |
string | post content |
ilECSConnectorException |
Definition at line 446 of file class.ilECSConnector.php.
References $ilLog, $res, addHeader(), call(), getHeader(), ilUtil\ilTempnam(), and prepareConnection().
|
protected |
Definition at line 52 of file class.ilECSConnector.php.
Referenced by getHeader().
|
protected |
Definition at line 48 of file class.ilECSConnector.php.
|
protected |
Definition at line 50 of file class.ilECSConnector.php.
Referenced by ilECSCourseUrlConnector\__construct(), ilECSCourseConnector\__construct(), ilECSCourseMemberConnector\__construct(), ilECSDirectoryTreeConnector\__construct(), __construct(), and getServer().
const ilECSConnector::HEADER_COMMUNITIES = 'X-EcsReceiverCommunities' |
Definition at line 45 of file class.ilECSConnector.php.
const ilECSConnector::HEADER_MEMBERSHIPS = 'X-EcsReceiverMemberships' |
Definition at line 44 of file class.ilECSConnector.php.
Referenced by addAuth(), ilECSCourseUrlConnector\addUrl(), ilECSObjectSettings\doAdd(), and ilECSObjectSettings\doUpdate().
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 ilECSEContentDetails\getInstance(), and ilRemoteObjectBase\handleUpdate().
const ilECSConnector::HTTP_CODE_OK = 200 |
Definition at line 41 of file class.ilECSConnector.php.