|
ILIAS
Release_4_2_x_branch Revision 61807
|
Collaboration diagram for ilECSConnector:Public Member Functions | |
| __construct (ilECSSetting $settings=null) | |
| Constructor. | |
| addHeader ($a_name, $a_value) | |
| Add Header. | |
| getHeader () | |
| 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 () | |
| getResource ($a_econtent_id, $a_details_only=false) | |
| 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 |
| const | HEADER_MEMBERSHIPS = 'X-EcsReceiverMemberships' |
| const | HEADER_COMMUNITIES = 'X-EcsReceiverCommunities' |
Protected Attributes | |
| $path_postfix = '' | |
| $settings | |
| $header_strings = array() | |
Private Member Functions | |
| prepareConnection () | |
| prepare connection | |
| call () | |
| call peer | |
Definition at line 38 of file class.ilECSConnector.php.
| ilECSConnector::__construct | ( | ilECSSetting | $settings = null | ) |
| ilECSConnector::addAuth | ( | $a_post, | |
| $a_target_mid | |||
| ) |
Add auth resource.
public
| string | post data |
| ilECSConnectorException |
Definition at line 113 of file class.ilECSConnector.php.
References $auth, $ilLog, $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 80 of file class.ilECSConnector.php.
Referenced by addAuth(), addResource(), readEventFifo(), and updateResource().
Here is the caller graph for this function:| ilECSConnector::addResource | ( | $a_post | ) |
Add resource.
public
| string | post data |
| ilECSConnectorException |
Definition at line 388 of file class.ilECSConnector.php.
References $ilLog, $res, ilECSUtils\_fetchEContentIdFromHeader(), addHeader(), call(), getHeader(), and prepareConnection().
Here is the call graph for this function:
|
private |
call peer
private
| ilCurlConnectionException |
Definition at line 615 of file class.ilECSConnector.php.
References $res.
Referenced by addAuth(), addResource(), deleteResource(), getAuth(), getEventQueues(), getMemberships(), getResource(), getResourceList(), readEventFifo(), and updateResource().
Here is the caller graph for this function:| ilECSConnector::deleteResource | ( | $a_econtent_id | ) |
Delete resource.
public
| string | econtent id |
| ilECSConnectorException |
Definition at line 490 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getAuth | ( | $a_hash | ) |
get auth resource
public
| auth | hash (transfered via GET) |
| ilECSConnectorException |
Definition at line 167 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getEventQueues | ( | ) |
get event queue
public
| ilECSConnectorException |
Definition at line 211 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getHeader | ( | ) |
Definition at line 85 of file class.ilECSConnector.php.
References $header_strings.
Referenced by addAuth(), addResource(), getResourceList(), and updateResource().
Here is the caller graph for this function:| ilECSConnector::getMemberships | ( | $a_mid = 0 | ) |
public
| int | membership id |
| ilECSConnectorException |
Definition at line 532 of file class.ilECSConnector.php.
References $ilLog, $res, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getResource | ( | $a_econtent_id, | |
$a_details_only = false |
|||
| ) |
Get resources from ECS server.
public
| int | e-content id |
| ilECSConnectorException |
Definition at line 329 of file class.ilECSConnector.php.
References $ilLog, $res, $result, call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::getResourceList | ( | ) |
Definition at line 289 of file class.ilECSConnector.php.
References $ilLog, $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 94 of file class.ilECSConnector.php.
References $settings.
Referenced by prepareConnection().
Here is the caller graph for this function:
|
private |
prepare connection
private
| ilCurlConnectionException |
Definition at line 571 of file class.ilECSConnector.php.
References ilECSSetting\AUTH_APACHE, ilECSSetting\AUTH_CERTIFICATE, getServer(), and ilCurlConnection\init().
Referenced by addAuth(), addResource(), deleteResource(), getAuth(), 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 248 of file class.ilECSConnector.php.
References $ilLog, $res, $result, addHeader(), call(), and prepareConnection().
Here is the call graph for this function:| ilECSConnector::updateResource | ( | $a_econtent_id, | |
| $a_post_string | |||
| ) |
update resource
public
| int | econtent id |
| string | post content |
| ilECSConnectorException |
Definition at line 436 of file class.ilECSConnector.php.
References $ilLog, $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 48 of file class.ilECSConnector.php.
|
protected |
Definition at line 50 of file class.ilECSConnector.php.
Referenced by __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(), ilECSContentWriter\addECSContent(), and ilECSContentWriter\updateECSContent().
| 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.