This class represents the media:group element of Media RSS.
It allows the grouping of media:content elements that are different representations of the same content. When it exists, it is a child of an Entry (Atom) or Item (RSS).
category | Zend |
---|---|
package | Zend_Gdata |
subpackage | Media |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Gdata_Extension |
__construct($element = null
)
inherited_from | \Zend_Gdata_Extension::__construct() |
---|
__construct()
__get(string $name)
TODO Remove ability to bypass getFoo() methods??
string
The variable name sought
__isset(string $name)
string
__set(string $name, $val)
Alternatively, if no setFoo() is defined, but a $_foo protected variable is defined, this is returned.
TODO Remove ability to bypass getFoo() methods??
string
__toString() : string
string
The text representation of this object__unset(string $name)
string
encode() : string
Can be overridden by children to provide more complex representations of entries.
string
Encoded string contentflushNamespaceLookupCache()
Empties the namespace lookup cache. Call this function if you have added data to the namespace lookup table that contradicts values that may have been cached during a previous call to lookupNamespace().
getCategory() : array
array
getContent() : array
array
getCopyright() : \Zend_Gdata_Media_Extension_MediaCopyright
\Zend_Gdata_Media_Extension_MediaCopyright
getCredit() : array
array
getDOM(\DOMDocument $doc= null
, $majorVersion= 1
, $minorVersion= null
) : \DOMElement
\DOMDocument
The DOMDocument used to construct DOMElements
\DOMElement
The DOMElement representing this element and all
child properties.getDOM(\DOMDocument $doc= null
, $majorVersion= 1
, $minorVersion= null
) : \DOMElement
\DOMDocument
The DOMDocument used to construct DOMElements
\DOMElement
The DOMElement representing this element and all
child properties.getDescription() : \Zend_Gdata_Media_Extension_MediaDescription
\Zend_Gdata_Media_Extension_MediaDescription
getExtensionAttributes() : array
array
All extension attributesgetExtensionElements() : array
array
All elements not matched to data model classes during parsinggetHash() : array
array
getKeywords() : \Zend_Gdata_Media_Extension_MediaKeywords
\Zend_Gdata_Media_Extension_MediaKeywords
getMediaText() : array
array
getPlayer() : array
array
getRating() : array
array
getRestriction() : array
array
getText($trim = true
) : string
string
Child text nodegetThumbnail() : array
array
getTitle() : \Zend_Gdata_Media_Extension_MediaTitle
\Zend_Gdata_Media_Extension_MediaTitle
getXML() : string
string
XML contentlookupNamespace(string $prefix, integer $majorVersion= 1
, integer $minorVersion= null
) : string
Looks up a prefix (atom:, etc.) in the list of registered namespaces and returns the full namespace URI if available. Returns the prefix, unmodified, if it's not registered.
string
The namespace prefix to lookup.
integer
The major protocol version in effect. Defaults to '1'.
integer
The minor protocol version in effect. Defaults to null (use latest).
string
registerAllNamespaces(array $namespaceArray) : void
Takes an array in the format of: namespace prefix, namespace URI, major protocol version, minor protocol version and adds them with calls to ->registerNamespace()
array
An array of namespaces.
registerNamespace(string $prefix, string $namespaceUri, integer $majorVersion= 1
, integer $minorVersion= 0
) : void
Takes a prefix and a full namespace URI and adds them to the list of registered namespaces for use by $this->lookupNamespace().
WARNING: Currently, registering a namespace will NOT invalidate any memoized data stored in $_namespaceLookupCache. Under normal use, this behavior is acceptable. If you are adding contradictory data to the namespace lookup table, you must call flushNamespaceLookupCache().
string
The namespace prefix
string
The full namespace URI
integer
The major protocol version in effect. Defaults to '1'.
integer
The minor protocol version in effect. Defaults to null (use latest).
saveXML() : string
string
XML contentsetCategory(array $value) : \Zend_Gdata_Media_Extension_MediaGroup
array
\Zend_Gdata_Media_Extension_MediaGroup
setContent(array $value) : \Zend_Gdata_Media_MediaGroup
array
\Zend_Gdata_Media_MediaGroup
Provides a fluent interfacesetCopyright(\Zend_Gdata_Media_Extension_MediaCopyright $value) : \Zend_Gdata_Media_Extension_MediaGroup
\Zend_Gdata_Media_Extension_MediaCopyright
\Zend_Gdata_Media_Extension_MediaGroup
setCredit(array $value) : \Zend_Gdata_Media_Extension_MediaGroup
array
\Zend_Gdata_Media_Extension_MediaGroup
setDescription(\Zend_Gdata_Media_Extension_MediaDescription $value) : \Zend_Gdata_Media_Extension_MediaGroup
\Zend_Gdata_Media_Extension_MediaDescription
\Zend_Gdata_Media_Extension_MediaGroup
setExtensionAttributes(array $value) : \Zend_Gdata_App_Base
array
All extension attributes
\Zend_Gdata_App_Base
Returns an object of the same type as 'this' to provide a fluent interface.setExtensionElements(array $value) : \Zend_Gdata_App_Base
array
All extension elements
\Zend_Gdata_App_Base
Returns an object of the same type as 'this' to provide a fluent interface.setHash(array $value) : \Zend_Gdata_Media_Extension_MediaGroup
array
\Zend_Gdata_Media_Extension_MediaGroup
setKeywords(array $value) : \Zend_Gdata_Media_Extension_MediaGroup
array
\Zend_Gdata_Media_Extension_MediaGroup
Provides a fluent interfacesetMediaText($value) : \Zend_Gdata_Media_Extension_MediaGroup
\Zend_Gdata_Media_Extension_MediaGroup
setPlayer($value) : \Zend_Gdata_Media_Extension_MediaGroup
\Zend_Gdata_Media_Extension_MediaGroup
setRating($value) : \Zend_Gdata_Media_Extension_MediaGroup
\Zend_Gdata_Media_Extension_MediaGroup
setRestriction($value) : \Zend_Gdata_Media_Extension_MediaGroup
\Zend_Gdata_Media_Extension_MediaGroup
setText(string $value) : \Zend_Gdata_App_Base
string
Child text node
\Zend_Gdata_App_Base
Returns an object of the same type as 'this' to provide a fluent interface.setThumbnail($value) : \Zend_Gdata_Media_Extension_MediaGroup
\Zend_Gdata_Media_Extension_MediaGroup
setTitle(\Zend_Gdata_Media_Extension_MediaTitle $value) : \Zend_Gdata_Media_Extension_MediaGroup
\Zend_Gdata_Media_Extension_MediaTitle
\Zend_Gdata_Media_Extension_MediaGroup
transferFromDOM(\DOMNode $node)
This is called when XML is received over the wire and the data model needs to be built to represent this XML.
\DOMNode
The DOMNode that represents this object's data
transferFromXML(string $xml)
string
The XML text to parse
takeAttributeFromDOM(\DOMNode $attribute)
\DOMNode
The DOMNode attribute needed to be handled
takeChildFromDOM(\DOMNode $child)
\DOMNode
The DOMNode to process
takeChildFromDOM(\DOMNode $child)
\DOMNode
The DOMNode needed to be handled
$_category : array
array()
$_content : array
array()
$_copyright : \Zend_Gdata_Media_Extension_MediaCopyright
null
$_credit : array
array()
$_description : \Zend_Gdata_Media_Extension_MediaDescription
null
$_extensionAttributes : array
array()
$_extensionElements : array
array()
$_hash : array
array()
$_keywords : \Zend_Gdata_Media_Extension_MediaKeywords
null
$_mediaText : array
array()
$_namespaceLookupCache : array
array()
$_namespaces : array
array('atom' => array(1 => array(0 => 'http://www.w3.org/2005/Atom')), 'app' => array(1 => array(0 => 'http://purl.org/atom/app#'), 2 => array(0 => 'http://www.w3.org/2007/app')))
$_player : array
array()
$_restriction : array
array()
$_rootElement
'group'
$_rootElement : string
null
$_rootNamespace
'media'
inherited_from | \Zend_Gdata_Extension::_rootNamespace |
---|
$_rootNamespace : string
'atom'
$_rootNamespaceURI : string
null
$_text : string
null
$_thumbnail : array
array()
$_title : string
null