| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 Inheritance diagram for ilECSConnector:
 Collaboration diagram for ilECSConnector:Public Member Functions | |
| __construct (ilECSSetting $settings=null) | |
| addHeader (string $a_name, string $a_value) | |
| Add Header.  More... | |
| getHeader () | |
| setHeader (array $a_header_strings) | |
| getServer () | |
| Get current server setting.  More... | |
| addAuth (string $a_post, int $a_target_mid) | |
| Add auth resource.  More... | |
| getAuth (string $a_hash, bool $a_details_only=false) | |
| get auth resource  More... | |
| readEventFifo (bool $a_delete=false) | |
| Read event fifo.  More... | |
| getResourceList (string $a_path) | |
| getResource (string $a_path, int $a_econtent_id, bool $a_details_only=false) | |
| Get resources from ECS server.  More... | |
| addResource (string $a_path, $a_post) | |
| Add resource.  More... | |
| updateResource (string $a_path, int $a_econtent_id, string $a_post_string) | |
| update resource  More... | |
| deleteResource (string $a_path, int $a_econtent_id) | |
| Delete resource.  More... | |
| getMemberships (int $a_mid=0) | |
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... | |
Protected Attributes | |
| string | $path_postfix = '' | 
| ilECSSetting | $settings = null | 
| ilCurlConnection | $curl = null | 
| array | $header_strings = [] | 
| ilLogger | $logger | 
Private Member Functions | |
| _fetchEContentIdFromHeader (array $a_header) | |
| fetch new econtent id from location header  More... | |
Definition at line 24 of file class.ilECSConnector.php.
| ilECSConnector::__construct | ( | ilECSSetting | $settings = null | ) | 
Definition at line 43 of file class.ilECSConnector.php.
References $DIC, $settings, ILIAS\Repository\logger(), ILIAS\Repository\settings(), and ilLogLevel\WARNING.
 Here is the call graph for this function:
      
  | 
  private | 
fetch new econtent id from location header
| array | header array | 
Definition at line 533 of file class.ilECSConnector.php.
References ILIAS\Repository\logger().
Referenced by addResource().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilECSConnector::addAuth | ( | string | $a_post, | 
| int | $a_target_mid | ||
| ) | 
Add auth resource.
| string | $a_post | post data | 
| int | $a_target_mid | the membership id of target server | 
| ilECSConnectorException | 
Definition at line 99 of file class.ilECSConnector.php.
References addHeader(), call(), getHeader(), ILIAS\Repository\logger(), and prepareConnection().
 Here is the call graph for this function:| ilECSConnector::addHeader | ( | string | $a_name, | 
| string | $a_value | ||
| ) | 
Add Header.
| string | $a_name | |
| string | $a_value | 
Definition at line 62 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 | ( | string | $a_path, | 
| $a_post | |||
| ) | 
Add resource.
public
| string | $a_path | resource "path" | 
| array | string | $a_post | post data | 
| ilECSConnectorException | 
Definition at line 308 of file class.ilECSConnector.php.
References _fetchEContentIdFromHeader(), addHeader(), call(), getHeader(), ILIAS\Repository\logger(), and prepareConnection().
 Here is the call graph for this function:
      
  | 
  protected | 
call peer
| ilCurlConnectionException | 
Definition at line 518 of file class.ilECSConnector.php.
References ILIAS\Repository\logger().
Referenced by addAuth(), ilECSEnrolmentStatusConnector\addEnrolmentStatus(), addResource(), ilECSCourseUrlConnector\addUrl(), deleteResource(), getAuth(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), ilECSEnrolmentStatusConnector\getEnrolmentStatus(), getMemberships(), getResource(), getResourceList(), readEventFifo(), and updateResource().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilECSConnector::deleteResource | ( | string | $a_path, | 
| int | $a_econtent_id | ||
| ) | 
Delete resource.
| string | $a_path | resource "path" | 
| int | $a_econtent_id | econtent id | 
| ilECSConnectorException | 
Definition at line 403 of file class.ilECSConnector.php.
References $res, call(), ILIAS\Repository\logger(), and prepareConnection().
 Here is the call graph for this function:| ilECSConnector::getAuth | ( | string | $a_hash, | 
| bool | $a_details_only = false  | 
        ||
| ) | 
get auth resource
| ilECSConnectorException | 
Definition at line 146 of file class.ilECSConnector.php.
References $res, call(), ILIAS\Repository\logger(), and prepareConnection().
 Here is the call graph for this function:| ilECSConnector::getHeader | ( | ) | 
Definition at line 67 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 | ( | int | $a_mid = 0 | ) | 
| int | $a_mid | membership id | 
| ilECSConnectorException | 
Definition at line 437 of file class.ilECSConnector.php.
References $res, call(), ILIAS\Repository\logger(), and prepareConnection().
 Here is the call graph for this function:| ilECSConnector::getResource | ( | string | $a_path, | 
| int | $a_econtent_id, | ||
| bool | $a_details_only = false  | 
        ||
| ) | 
Get resources from ECS server.
| ilECSConnectorException | 
Definition at line 258 of file class.ilECSConnector.php.
References $res, call(), ILIAS\Repository\int(), ILIAS\Repository\logger(), and prepareConnection().
 Here is the call graph for this function:| ilECSConnector::getResourceList | ( | string | $a_path | ) | 
Definition at line 228 of file class.ilECSConnector.php.
References $res, call(), getHeader(), ILIAS\Repository\logger(), prepareConnection(), and ilECSResult\RESULT_TYPE_URL_LIST.
 Here is the call graph for this function:| ilECSConnector::getServer | ( | ) | 
Get current server setting.
Definition at line 80 of file class.ilECSConnector.php.
References $settings.
Referenced by prepareConnection().
 Here is the caller graph for this function:
      
  | 
  protected | 
prepare connection
| ilCurlConnectionException | 
Definition at line 470 of file class.ilECSConnector.php.
References $path_postfix, ilECSSetting\AUTH_APACHE, ilECSSetting\AUTH_CERTIFICATE, ilLogLevel\DEBUG, getServer(), ilCurlConnection\init(), ILIAS\Repository\logger(), and ILIAS\Repository\settings().
Referenced by addAuth(), ilECSEnrolmentStatusConnector\addEnrolmentStatus(), addResource(), ilECSCourseUrlConnector\addUrl(), deleteResource(), getAuth(), ilECSCourseConnector\getCourse(), ilECSCourseMemberConnector\getCourseMember(), ilECSDirectoryTreeConnector\getDirectoryTree(), ilECSDirectoryTreeConnector\getDirectoryTrees(), ilECSEnrolmentStatusConnector\getEnrolmentStatus(), getMemberships(), getResource(), getResourceList(), readEventFifo(), and updateResource().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilECSConnector::readEventFifo | ( | bool | $a_delete = false | ) | 
Read event fifo.
| bool | $a_delete | set to true for deleting the current element | 
| ilECSConnectorException | 
Definition at line 194 of file class.ilECSConnector.php.
References $res, addHeader(), call(), ILIAS\Repository\logger(), and prepareConnection().
 Here is the call graph for this function:| ilECSConnector::setHeader | ( | array | $a_header_strings | ) | 
Definition at line 72 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 | ( | string | $a_path, | 
| int | $a_econtent_id, | ||
| string | $a_post_string | ||
| ) | 
update resource
| string | $a_path | resource "path" | 
| int | $a_econtent_id | econtent id | 
| string | $a_post_string | post content | 
| ilECSConnectorException | 
Definition at line 348 of file class.ilECSConnector.php.
References $res, addHeader(), call(), getHeader(), ilFileUtils\ilTempnam(), ILIAS\Repository\logger(), and prepareConnection().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 37 of file class.ilECSConnector.php.
      
  | 
  protected | 
Definition at line 39 of file class.ilECSConnector.php.
Referenced by getHeader().
      
  | 
  protected | 
Definition at line 41 of file class.ilECSConnector.php.
      
  | 
  protected | 
Definition at line 34 of file class.ilECSConnector.php.
Referenced by prepareConnection().
      
  | 
  protected | 
Definition at line 36 of file class.ilECSConnector.php.
Referenced by __construct(), and getServer().
| const ilECSConnector::HEADER_COMMUNITIES = 'X-EcsReceiverCommunities' | 
Definition at line 31 of file class.ilECSConnector.php.
| const ilECSConnector::HEADER_MEMBERSHIPS = 'X-EcsReceiverMemberships' | 
Definition at line 30 of file class.ilECSConnector.php.
Referenced by ilECSEnrolmentStatusConnector\addEnrolmentStatus(), ilECSCourseUrlConnector\addUrl(), ilECSObjectSettings\doAdd(), and ilECSObjectSettings\doUpdate().
| const ilECSConnector::HTTP_CODE_CREATED = 201 | 
Definition at line 26 of file class.ilECSConnector.php.
| const ilECSConnector::HTTP_CODE_NOT_FOUND = 404 | 
Definition at line 28 of file class.ilECSConnector.php.
Referenced by ilRemoteObjectBase\handleUpdate(), and ilECSEContentDetails\loadFromServer().
| const ilECSConnector::HTTP_CODE_OK = 200 | 
Definition at line 27 of file class.ilECSConnector.php.