Skip to content

SimplePie_Caption

Handles <media:text> captions as defined in Media RSS.

  • Full name: \SimplePie_Caption
  • Parent class: \SimplePie\Caption
  • Warning: this class is deprecated. This means that this class will likely be removed in a future version.

Inherited methods

__construct

Constructor, used to input the data

public __construct(mixed $type = null, mixed $lang = null, mixed $startTime = null, mixed $endTime = null, mixed $text = null): mixed

For documentation on all the parameters, see the corresponding properties and their accessors

Parameters:

Parameter Type Description
$type mixed
$lang mixed
$startTime mixed
$endTime mixed
$text mixed

__toString

String-ified version

public __toString(): string

get_endtime

Get the end time

public get_endtime(): string|null

Return Value:

Time in the format 'hh:mm:ss.SSS'


get_language

Get the language

public get_language(): string|null

Return Value:

Language code as per RFC 3066

See Also:

  • http://tools.ietf.org/html/rfc3066 -

get_starttime

Get the start time

public get_starttime(): string|null

Return Value:

Time in the format 'hh:mm:ss.SSS'


get_text

Get the text of the caption

public get_text(): string|null

get_type

Get the content type (not MIME type)

public get_type(): string|null

Return Value:

Either 'text' or 'html'



Automatically generated on 2025-03-18