예제 #1
0
 /**
  * Performs membership service request using ResourceLink::doMembershipsService() method.
  *
  * @param ResourceLink $resourcelink
  * @return bool|User[] Array of User objects upon successful membership service request. False, otherwise.
  */
 protected function do_resourcelink_membership_request(ResourceLink $resourcelink)
 {
     $members = false;
     $membershipsurl = $resourcelink->getSetting('ext_ims_lis_memberships_url');
     $membershipsid = $resourcelink->getSetting('ext_ims_lis_memberships_id');
     if ($membershipsurl && $membershipsid) {
         mtrace("Performing membership service request from resource link with membership URL: " . $membershipsurl);
         $members = $resourcelink->doMembershipsService(true);
     }
     return $members;
 }