Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 146 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

matrix_room:: (8 methods):
  load_by_processor_id()
  __construct()
  create_room_record()
  update_room_record()
  delete_room_record()
  get_processor_id()
  get_room_id()
  get_topic()


Class: matrix_room  - X-Ref

Class to manage the updates to the room information in db.

load_by_processor_id(int $processorid,)   X-Ref
Load the matrix room record for the supplied processor.

param: int $processorid
return: null|self

__construct(private stdClass $record,)   X-Ref
Matrix rooms constructor to load the matrix room information from matrix_room table.

param: stdClass $record

create_room_record(int $processorid,?string $topic,?string $roomid = null,)   X-Ref
Create matrix room data.

param: int $processorid The id of the communication record
param: string|null $topic The topic of the room for matrix
param: string|null $roomid The id of the room from matrix
return: self

update_room_record(?string $roomid = null,?string $topic = null,)   X-Ref
Update matrix room data.

param: string|null $roomid The id of the room from matrix
param: string|null $topic The topic of the room for matrix

delete_room_record()   X-Ref
Delete matrix room data.


get_processor_id()   X-Ref
Get the processor id.

return: int

get_room_id()   X-Ref
Get the matrix room id.

return: string|null

get_topic()   X-Ref
Get the matrix room topic.

return: string