Files
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

89 lines
2.2 KiB
PHP

<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\PluginBundle\Zoom\API;
use Exception;
/**
* Class Meeting, minimal meeting definition required to create one from scratch or update an existing one
* Also referred to as MeetingUpdate in the API documentation
* Does not represent an actual created meeting.
*/
class Meeting
{
use BaseMeetingTrait;
use JsonDeserializableTrait;
public const TYPE_INSTANT = 1;
public const TYPE_SCHEDULED = 2;
public const TYPE_RECURRING_WITH_NO_FIXED_TIME = 3;
public const TYPE_RECURRING_WITH_FIXED_TIME = 8;
/** @var string password to join. [a-z A-Z 0-9 @ - _ *]. Max of 10 characters. */
public $password;
/** @var TrackingField[] Tracking fields */
public $tracking_fields;
/** @var object, only for a recurring meeting with fixed time (type 8) */
public $recurrence;
/** @var MeetingSettings */
public $settings;
/**
* Meeting constructor.
*/
protected function __construct()
{
$this->tracking_fields = [];
$this->settings = new MeetingSettings();
}
/**
* {@inheritdoc}
*/
public function itemClass($propertyName)
{
if ('tracking_fields' === $propertyName) {
return TrackingField::class;
}
throw new Exception("no such array property $propertyName");
}
/**
* Creates a meeting on the server and returns the resulting MeetingInfoGet.
*
* @throws Exception describing the error (message and code)
*
* @return MeetingInfoGet meeting
*/
public function create($userId = null)
{
$userId = empty($userId) ? 'me' : $userId;
return MeetingInfoGet::fromJson(
Client::getInstance()->send('POST', "users/$userId/meetings", [], $this)
);
}
/**
* Creates a Meeting instance from a topic.
*
* @param string $topic
* @param int $type
*
* @return static
*/
public static function fromTopicAndType($topic, $type = self::TYPE_SCHEDULED)
{
$instance = new static();
$instance->topic = $topic;
$instance->type = $type;
return $instance;
}
}