Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/plugin/zoom/lib/UserMeetingRegistrantList.php

43 lines
1.0 KiB

<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\PluginBundle\Zoom;
use Exception;
/**
* Class UserMeetingRegistrantList. A list of users registered to a meeting.
*
* @see UserMeetingRegistrantListItem
*
* @package Chamilo\PluginBundle\Zoom
*/
class UserMeetingRegistrantList extends API\MeetingRegistrantList
{
/**
* {@inheritdoc}
*/
public function itemClass($propertyName)
{
if ('registrants' === $propertyName) {
return UserMeetingRegistrantListItem::class;
}
return parent::itemClass($propertyName);
}
/**
* Retrieves all registrant for a meeting.
*
* @param API\Client $client
* @param int $meetingId
*
* @throws Exception
*
* @return UserMeetingRegistrantListItem[] all registrants of the meeting
*/
public static function loadUserMeetingRegistrants($client, $meetingId)
{
return static::loadItems('registrants', $client, "meetings/$meetingId/registrants");
}
}