Overview

Packages

  • None
  • SimplePie

Classes

  • SimplePie
  • SimplePie_Author
  • SimplePie_Autoloader
  • SimplePie_Cache
  • SimplePie_Cache_DB
  • SimplePie_Cache_File
  • SimplePie_Cache_Memcache
  • SimplePie_Cache_MySQL
  • SimplePie_Caption
  • SimplePie_Category
  • SimplePie_Content_Type_Sniffer
  • SimplePie_Copyright
  • SimplePie_Core
  • SimplePie_Credit
  • SimplePie_Decode_HTML_Entities
  • SimplePie_Enclosure
  • SimplePie_File
  • SimplePie_gzdecode
  • SimplePie_HTTP_Parser
  • SimplePie_IRI
  • SimplePie_Item
  • SimplePie_Locator
  • SimplePie_Misc
  • SimplePie_Net_IPv6
  • SimplePie_Parse_Date
  • SimplePie_Parser
  • SimplePie_Rating
  • SimplePie_Registry
  • SimplePie_Restriction
  • SimplePie_Sanitize
  • SimplePie_Source
  • SimplePie_XML_Declaration_Parser

Interfaces

  • SimplePie_Cache_Base
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class SimplePie_Caption

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

Used by SimplePie_Enclosure::get_caption() and SimplePie_Enclosure::get_captions()

This class can be overloaded with SimplePie_Core::set_caption_class()

Package: SimplePie
Located at SimplePie/Caption.php
Methods summary
public
# __construct( $type = null, $lang = null, $startTime = null, $endTime = null, $text = null )

Constructor, used to input the data

Constructor, used to input the data

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

public string
# __toString( )

String-ified version

String-ified version

Returns

string
public string|null
# get_endtime( )

Get the end time

Get the end time

Returns

string|null
Time in the format 'hh:mm:ss.SSS'
public string|null
# get_language( )

Get the language

Get the language

Returns

string|null
Language code as per RFC 3066

Link

http://tools.ietf.org/html/rfc3066
public string|null
# get_starttime( )

Get the start time

Get the start time

Returns

string|null
Time in the format 'hh:mm:ss.SSS'
public string|null
# get_text( )

Get the text of the caption

Get the text of the caption

Returns

string|null
public string|null
# get_type( )

Get the content type (not MIME type)

Get the content type (not MIME type)

Returns

string|null
Either 'text' or 'html'
Properties summary
public string $type
#

Content type

Content type

See

SimplePie_Caption::get_type()
public string $lang
#

Language

Language

See

SimplePie_Caption::get_language()
public string $startTime
#

Start time

Start time

See

SimplePie_Caption::get_starttime()
public string $endTime
#

End time

End time

See

SimplePie_Caption::get_endtime()
public string $text
#

Caption text

Caption text

See

SimplePie_Caption::get_text()
SimplePie Documentation API documentation generated by ApiGen 2.4.0