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: 319 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

recording_data:: (6 methods):
  get_recording_table()
  row()
  preview_enabled()
  row_duration()
  type_text()
  include_recording_table_row()


Class: recording_data  - X-Ref

The recordings_data.

get_recording_table(array $recordings, array $tools, instance $instance = null,int $courseid = 0)   X-Ref
Get the full recording table

param: array $recordings
param: array $tools
param: instance|null $instance
param: int $courseid
return: array

row(?instance $instance, recording $rec, ?array $tools = null, ?int $courseid = 0)   X-Ref
Helper function builds a row for the data used by the recording table.

TODO: replace this with templates whenever possible so we just
return the data via the API.

param: instance|null $instance $instance
param: recording $rec a recording row
param: array|null $tools
param: int|null $courseid
return: stdClass|null

preview_enabled(instance $instance)   X-Ref
Helper function evaluates if recording preview should be included.

param: instance $instance
return: bool

row_duration(recording $recording)   X-Ref
Helper function converts recording duration used in row for the data used by the recording table.

param: recording $recording
return: int

type_text(string $playbacktype)   X-Ref
Helper function to handle yet unknown recording types

param: string $playbacktype : for now presentation, video, statistics, capture, notes, podcast
return: string the matching language string or a capitalised version of the provided string

include_recording_table_row(?instance $instance, recording $rec)   X-Ref
Helper function evaluates if recording row should be included in the table.

param: instance|null $instance
param: recording $rec a bigbluebuttonbn_recordings row
return: bool