|
Moodle PHP Documentation 4.4
Moodle 4.4.9+ (Build: 20250711) (4ea86454947)
|
Handles <media:text> captions as defined in Media RSS.
More...
Public Member Functions | |
| __construct ($type=null, $lang=null, $startTime=null, $endTime=null, $text=null) | |
| Constructor, used to input the data. | |
| __toString () | |
| String-ified version. | |
| get_endtime () | |
| Get the end time. | |
| get_language () | |
| Get the language. | |
| get_starttime () | |
| Get the start time. | |
| get_text () | |
| Get the text of the caption. | |
| get_type () | |
| Get the content type (not MIME type) | |
Public Attributes | |
| string | $endTime |
| End time. | |
| string | $lang |
| Language. | |
| string | $startTime |
| Start time. | |
| string | $text |
| Caption text. | |
| string | $type |
| Content type. | |
Handles <media:text> captions as defined in Media RSS.
Used by {
This class can be overloaded with {
@subpackage API
| Caption::__construct | ( | $type = null, | |
| $lang = null, | |||
| $startTime = null, | |||
| $endTime = null, | |||
| $text = null ) |
Constructor, used to input the data.
For documentation on all the parameters, see the corresponding properties and their accessors
| Caption::__toString | ( | ) |
String-ified version.
| string |
| Caption::get_endtime | ( | ) |
Get the end time.
| string|null | Time in the format 'hh:mm:ss.SSS' |
| Caption::get_language | ( | ) |
Get the language.
@externalurl http://tools.ietf.org/html/rfc3066
| string|null | Language code as per RFC 3066 |
| Caption::get_starttime | ( | ) |
Get the start time.
| string|null | Time in the format 'hh:mm:ss.SSS' |
| Caption::get_text | ( | ) |
Get the text of the caption.
| string|null |
| Caption::get_type | ( | ) |
Get the content type (not MIME type)
| string|null | Either 'text' or 'html' |
| string Caption::$endTime |
End time.
| string Caption::$lang |
Language.
| string Caption::$startTime |
Start time.
| string Caption::$text |
Caption text.
| string Caption::$type |
Content type.