|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Inheritance diagram for ilECSConnector:
Collaboration diagram for ilECSConnector:Public Member Functions | |
| __construct (ilECSSetting $settings=null) | |
| Constructor. More... | |
| addHeader ($a_name, $a_value) | |
| Add Header. More... | |
| getHeader () | |
| setHeader ($a_header_strings) | |
| getServer () | |
| Get current server setting. More... | |
| addAuth ($a_post, $a_target_mid) | |
| Add auth resource. More... | |
| getAuth ($a_hash, $a_details_only=false) | |
| get auth resource More... | |
| getEventQueues () | |
| get event queue More... | |
| readEventFifo ($a_delete=false) | |
| Read event fifo. More... | |
| getResourceList ($a_path) | |
| getResource ($a_path, $a_econtent_id, $a_details_only=false) | |
| Get resources from ECS server. More... | |
| addResource ($a_path, $a_post) | |
| Add resource. More... | |
| updateResource ($a_path, $a_econtent_id, $a_post_string) | |
| update resource More... | |
| deleteResource ($a_path, $a_econtent_id) | |
| Delete resource. More... | |
| getMemberships ($a_mid=0) | |
| @access public More... | |
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 More... | |
| call () | |
| call peer More... | |
Static Protected Member Functions | |
| static | _fetchEContentIdFromHeader ($a_header) |
| fetch new econtent id from location header More... | |
Protected Attributes | |
| $path_postfix = '' | |
| $settings | |
| $header_strings = array() | |
| $logger | |
| ilECSConnector::__construct | ( | ilECSSetting | $settings = null | ) |
Constructor.
@access public
Reimplemented in ilECSEnrolmentStatusConnector, ilECSCourseConnector, ilECSCourseMemberConnector, ilECSCourseUrlConnector, and ilECSDirectoryTreeConnector.
Definition at line 66 of file class.ilECSConnector.php.
References $DIC, $settings, settings(), and ilLogLevel\WARNING.
Here is the call graph for this function:
|
staticprotected |
fetch new econtent id from location header
@access public
| array | header array |
Definition at line 643 of file class.ilECSConnector.php.
References $DIC.
Referenced by addResource().
Here is the caller graph for this function:| ilECSConnector::addAuth | ( | $a_post, | |
| $a_target_mid | |||
| ) |
Add auth resource.
@access public
| string | post data |
| ilECSConnectorException |
Definition at line 123 of file class.ilECSConnector.php.
References $auth, $DIC, $result, $ret, addHeader(), call(), getHeader(), HEADER_MEMBERSHIPS, and prepareConnection().
Here is the call graph for this function:| ilECSConnector::addHeader | ( | $a_name, | |
| $a_value | |||
| ) |
Add Header.
| string | $a_name | |
| string | $a_value |
Definition at line 85 of file class.ilECSConnector.php.
Referenced by addAuth(), ilECSEnrolmentStatusConnector\addEnrolmentStatus(), addResource(), ilECSCourseUrlConnector\addUrl(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), ilECSEnrolmentStatusConnector\getEnrolmentStatus(), readEventFifo(), and updateResource().
Here is the caller graph for this function:| ilECSConnector::addResource | ( | $a_path, | |
| $a_post | |||
| ) |
Add resource.
@access public
| string | resource "path" |
| string | post data |
| ilECSConnectorException |
Definition at line 403 of file class.ilECSConnector.php.
References $DIC, $res, _fetchEContentIdFromHeader(), addHeader(), call(), getHeader(), and prepareConnection().
Here is the call graph for this function:
|
protected |
call peer
@access private
| ilCurlConnectionException |
Definition at line 624 of file class.ilECSConnector.php.
References $res.
Referenced by addAuth(), ilECSEnrolmentStatusConnector\addEnrolmentStatus(), addResource(), ilECSCourseUrlConnector\addUrl(), deleteResource(), getAuth(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), ilECSEnrolmentStatusConnector\getEnrolmentStatus(), getEventQueues(), getMemberships(), getResource(), getResourceList(), readEventFifo(), and updateResource().
Here is the caller graph for this function:| ilECSConnector::deleteResource | ( | $a_path, | |
| $a_econtent_id | |||
| ) |
Delete resource.
@access public
| string | resource "path" |
| string | econtent id |
| ilECSConnectorException |
Definition at line 503 of file class.ilECSConnector.php.
References $DIC, $res, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getAuth | ( | $a_hash, | |
$a_details_only = false |
|||
| ) |
get auth resource
@access public
| auth | hash (transfered via GET) |
| ilECSConnectorException |
Definition at line 176 of file class.ilECSConnector.php.
References $DIC, $res, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getEventQueues | ( | ) |
get event queue
@access public
| ilECSConnectorException |
Definition at line 231 of file class.ilECSConnector.php.
References $DIC, $res, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getHeader | ( | ) |
Definition at line 90 of file class.ilECSConnector.php.
References $header_strings.
Referenced by addAuth(), ilECSEnrolmentStatusConnector\addEnrolmentStatus(), addResource(), ilECSCourseUrlConnector\addUrl(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), ilECSEnrolmentStatusConnector\getEnrolmentStatus(), getResourceList(), and updateResource().
Here is the caller graph for this function:| ilECSConnector::getMemberships | ( | $a_mid = 0 | ) |
@access public
| int | membership id |
| ilECSConnectorException |
Definition at line 540 of file class.ilECSConnector.php.
References $DIC, $res, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getResource | ( | $a_path, | |
| $a_econtent_id, | |||
$a_details_only = false |
|||
| ) |
Get resources from ECS server.
@access public
| string | resource "path" |
| int | e-content id |
| ilECSConnectorException |
Definition at line 350 of file class.ilECSConnector.php.
References $DIC, $res, $result, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getResourceList | ( | $a_path | ) |
Definition at line 310 of file class.ilECSConnector.php.
References $DIC, $res, call(), getHeader(), prepareConnection(), and ilECSResult\RESULT_TYPE_URL_LIST.
Here is the call graph for this function:| ilECSConnector::getServer | ( | ) |
Get current server setting.
Definition at line 104 of file class.ilECSConnector.php.
References $settings.
Referenced by prepareConnection().
Here is the caller graph for this function:
|
protected |
prepare connection
@access private
| ilCurlConnectionException |
Definition at line 578 of file class.ilECSConnector.php.
References ilECSSetting\AUTH_APACHE, ilECSSetting\AUTH_CERTIFICATE, ilLogLevel\DEBUG, getServer(), and settings().
Referenced by addAuth(), ilECSEnrolmentStatusConnector\addEnrolmentStatus(), addResource(), ilECSCourseUrlConnector\addUrl(), deleteResource(), getAuth(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), ilECSEnrolmentStatusConnector\getEnrolmentStatus(), getEventQueues(), getMemberships(), getResource(), getResourceList(), readEventFifo(), and updateResource().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSConnector::readEventFifo | ( | $a_delete = false | ) |
Read event fifo.
| bool | set to true for deleting the current element |
| ilECSConnectorException |
Definition at line 266 of file class.ilECSConnector.php.
References $DIC, $res, $result, addHeader(), call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::setHeader | ( | $a_header_strings | ) |
Definition at line 95 of file class.ilECSConnector.php.
Referenced by ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), and ilECSEnrolmentStatusConnector\getEnrolmentStatus().
Here is the caller graph for this function:| ilECSConnector::updateResource | ( | $a_path, | |
| $a_econtent_id, | |||
| $a_post_string | |||
| ) |
update resource
@access public
| string | resource "path" |
| int | econtent id |
| string | post content |
| ilECSConnectorException |
Definition at line 449 of file class.ilECSConnector.php.
References $DIC, $res, addHeader(), call(), getHeader(), ilUtil\ilTempnam(), and prepareConnection().
Here is the call graph for this function:
|
protected |
Definition at line 52 of file class.ilECSConnector.php.
Referenced by getHeader().
|
protected |
Definition at line 57 of file class.ilECSConnector.php.
|
protected |
Definition at line 48 of file class.ilECSConnector.php.
|
protected |
Definition at line 50 of file class.ilECSConnector.php.
Referenced by __construct(), ilECSEnrolmentStatusConnector\__construct(), ilECSCourseConnector\__construct(), ilECSCourseMemberConnector\__construct(), ilECSCourseUrlConnector\__construct(), ilECSDirectoryTreeConnector\__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(), ilECSEnrolmentStatusConnector\addEnrolmentStatus(), 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.