Gdata/YouTube/Extension/MediaGroup.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Gdata
- Subpackage
- YouTube
- Version
- $Id: MediaGroup.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Gdata_YouTube_Extension_MediaGroup
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).
- Parent(s)
- \Zend_Gdata_Media_Extension_MediaGroup < \Zend_Gdata_Extension < \Zend_Gdata_App_Extension < \Zend_Gdata_App_Base
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


array $_category = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_category


array $_content = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_content


\Zend_Gdata_Media_Extension_MediaCopyright $_copyright = null
null
Details


array $_credit = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_credit


\Zend_Gdata_Media_Extension_MediaDescription $_description = null
null
Details


array $_extensionAttributes = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_App_Base::$$_extensionAttributes
- Inherited_from
- \Zend_Gdata_App_Extension::$$_extensionAttributes
- Inherited_from
- \Zend_Gdata_Extension::$$_extensionAttributes
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_extensionAttributes


array $_extensionElements = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_App_Base::$$_extensionElements
- Inherited_from
- \Zend_Gdata_App_Extension::$$_extensionElements
- Inherited_from
- \Zend_Gdata_Extension::$$_extensionElements
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_extensionElements


array $_hash = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_hash


\Zend_Gdata_Media_Extension_MediaKeywords $_keywords = null
null
Details


array $_mediaText = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_mediaText


array $_namespaceLookupCache = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_App_Base::$$_namespaceLookupCache
- Inherited_from
- \Zend_Gdata_App_Extension::$$_namespaceLookupCache
- Inherited_from
- \Zend_Gdata_Extension::$$_namespaceLookupCache
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_namespaceLookupCache


array $_namespaces = 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')))
List of namespaces, as a three-dimensional array.
Inherited from: \Zend_Gdata_App_Base::$$_namespaces\Zend_Gdata_App_Extension::$$_namespaces\Zend_Gdata_Extension::$$_namespaces\Zend_Gdata_Media_Extension_MediaGroup::$$_namespacesThe first dimension represents the namespace prefix, the second dimension represents the minimum major protocol version, and the third dimension is the minimum minor protocol version. Null keys are NOT allowed.
When looking up a namespace for a given prefix, the greatest version number (both major and minor) which is less than the effective version should be used.
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')))
Details- Type
- array
- Inherited_from
- \Zend_Gdata_App_Base::$$_namespaces
- Inherited_from
- \Zend_Gdata_App_Extension::$$_namespaces
- Inherited_from
- \Zend_Gdata_Extension::$$_namespaces
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_namespaces
- See
- \global\lookupNamespace()
- See
- \global\registerNamespace()
- See
- \global\registerAllNamespaces()


array $_player = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_player


array $_rating = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_rating


array $_restriction = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_restriction


string $_rootElement = 'group'
'group'
Details- Type
- string


string $_rootNamespace = 'media'
'media'
Details- Type
- string


string $_rootNamespaceURI = null
null
Details- Type
- string
- Inherited_from
- \Zend_Gdata_App_Base::$$_rootNamespaceURI
- Inherited_from
- \Zend_Gdata_App_Extension::$$_rootNamespaceURI
- Inherited_from
- \Zend_Gdata_Extension::$$_rootNamespaceURI
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_rootNamespaceURI


string $_text = null
null
Details- Type
- string
- Inherited_from
- \Zend_Gdata_App_Base::$$_text
- Inherited_from
- \Zend_Gdata_App_Extension::$$_text
- Inherited_from
- \Zend_Gdata_Extension::$$_text
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_text


array $_thumbnail = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_thumbnail


string $_title = null
null
Details- Type
- string
- Inherited_from
- \Zend_Gdata_Media_Extension_MediaGroup::$$_title
Methods


__construct( $element = null) : void
Creates an individual MediaGroup object.
Name | Type | Description |
---|---|---|
$element |


__get(string $name) : void
Magic getter to allow access like $entry->foo to call $entry->getFoo() Alternatively, if no getFoo() is defined, but a $_foo protected variable is defined, this is returned.
Inherited from: \Zend_Gdata_App_Base::__get()\Zend_Gdata_App_Extension::__get()\Zend_Gdata_Extension::__get()\Zend_Gdata_Media_Extension_MediaGroup::__get()TODO Remove ability to bypass getFoo() methods??
Name | Type | Description |
---|---|---|
$name | string | The variable name sought |


__isset(string $name) : void
Magic __isset method
Inherited from: \Zend_Gdata_App_Base::__isset()\Zend_Gdata_App_Extension::__isset()\Zend_Gdata_Extension::__isset()\Zend_Gdata_Media_Extension_MediaGroup::__isset()Name | Type | Description |
---|---|---|
$name | string |


__set(string $name, $val) : void
Magic setter to allow acces like $entry->foo='bar' to call $entry->setFoo('bar') automatically.
Inherited from: \Zend_Gdata_App_Base::__set()\Zend_Gdata_App_Extension::__set()\Zend_Gdata_Extension::__set()\Zend_Gdata_Media_Extension_MediaGroup::__set()Alternatively, if no setFoo() is defined, but a $_foo protected variable is defined, this is returned.
TODO Remove ability to bypass getFoo() methods??
Name | Type | Description |
---|---|---|
$name | string | |
$val |


__toString() : string
Magic toString method allows using this directly via echo Works best in PHP >= 4.2.0
Inherited from: \Zend_Gdata_App_Base::__toString()\Zend_Gdata_App_Extension::__toString()\Zend_Gdata_Extension::__toString()\Zend_Gdata_Media_Extension_MediaGroup::__toString()Type | Description |
---|---|
string | The text representation of this object |


__unset(string $name) : void
Magic __unset method
Inherited from: \Zend_Gdata_App_Base::__unset()\Zend_Gdata_App_Extension::__unset()\Zend_Gdata_Extension::__unset()\Zend_Gdata_Media_Extension_MediaGroup::__unset()Name | Type | Description |
---|---|---|
$name | string |


encode() : string
Alias for saveXML()
Inherited from: \Zend_Gdata_App_Base::encode()\Zend_Gdata_App_Extension::encode()\Zend_Gdata_Extension::encode()\Zend_Gdata_Media_Extension_MediaGroup::encode()Can be overridden by children to provide more complex representations of entries.
Type | Description |
---|---|
string | Encoded string content |


flushNamespaceLookupCache() : void
Flush namespace lookup cache.
Inherited from: \Zend_Gdata_App_Base::flushNamespaceLookupCache()\Zend_Gdata_App_Extension::flushNamespaceLookupCache()\Zend_Gdata_Extension::flushNamespaceLookupCache()\Zend_Gdata_Media_Extension_MediaGroup::flushNamespaceLookupCache()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
Type | Description |
---|---|
array |


getContent() : array
Type | Description |
---|---|
array |


getCopyright() : \Zend_Gdata_Media_Extension_MediaCopyright
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaCopyright |


getCredit() : array
Type | Description |
---|---|
array |


getDOM(\DOMDocument $doc = null, $majorVersion = 1, $minorVersion = null) : \DOMElement
Retrieves a DOMElement which corresponds to this element and all child properties.
This is used to build an entry back into a DOM and eventually XML text for sending to the server upon updates, or for application storage/persistence.
Name | Type | Description |
---|---|---|
$doc | \DOMDocument | The DOMDocument used to construct DOMElements |
$majorVersion | ||
$minorVersion |
Type | Description |
---|---|
\DOMElement | The DOMElement representing this element and all child properties. |


getDescription() : \Zend_Gdata_Media_Extension_MediaDescription
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaDescription |


getDuration() : \Zend_Gdata_YouTube_Extension_Duration
Returns the duration value of this element
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_Duration |


getExtensionAttributes() : array
Returns an array of all extension attributes not transformed into data model properties during parsing of the XML.
Inherited from: \Zend_Gdata_App_Base::getExtensionAttributes()\Zend_Gdata_App_Extension::getExtensionAttributes()\Zend_Gdata_Extension::getExtensionAttributes()\Zend_Gdata_Media_Extension_MediaGroup::getExtensionAttributes()Each element of the array is a hashed array of the format: array('namespaceUri' => string, 'name' => string, 'value' => string);
Type | Description |
---|---|
array | All extension attributes |


getExtensionElements() : array
Returns an array of all elements not matched to data model classes during the parsing of the XML
Inherited from: \Zend_Gdata_App_Base::getExtensionElements()\Zend_Gdata_App_Extension::getExtensionElements()\Zend_Gdata_Extension::getExtensionElements()\Zend_Gdata_Media_Extension_MediaGroup::getExtensionElements()Type | Description |
---|---|
array | All elements not matched to data model classes during parsing |


getHash() : array
Type | Description |
---|---|
array |


getKeywords() : \Zend_Gdata_Media_Extension_MediaKeywords
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaKeywords |


getMediaCredit() : \Zend_Gdata_YouTube_Extension_MediaCredit
Returns the media:credit value of this element
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_MediaCredit |


getMediaRating() : \Zend_Gdata_YouTube_Extension_MediaRating
Returns the rating value of this element
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_MediaRating |


getMediaText() : array
Type | Description |
---|---|
array |


getPlayer() : array
Type | Description |
---|---|
array |


getPrivate() : \Zend_Gdata_YouTube_Extension_Private
Returns the private value of this element
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_Private |


getRating() : array
Type | Description |
---|---|
array |


getRestriction() : array
Type | Description |
---|---|
array |


getText( $trim = true) : string
Returns the child text node of this element This represents any raw text contained within the XML element
Inherited from: \Zend_Gdata_App_Base::getText()\Zend_Gdata_App_Extension::getText()\Zend_Gdata_Extension::getText()\Zend_Gdata_Media_Extension_MediaGroup::getText()Name | Type | Description |
---|---|---|
$trim |
Type | Description |
---|---|
string | Child text node |


getThumbnail() : array
Type | Description |
---|---|
array |


getTitle() : \Zend_Gdata_Media_Extension_MediaTitle
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaTitle |


getUploaded() : \Zend_Gdata_YouTube_Extension_Uploaded
Returns the yt:uploaded element
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_Uploaded |


getVideoId() : \Zend_Gdata_YouTube_Extension_VideoId
Returns the videoid value of this element
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_VideoId |


getXML() : string
Alias for saveXML() returns XML content for this element and all children
Inherited from: \Zend_Gdata_App_Base::getXML()\Zend_Gdata_App_Extension::getXML()\Zend_Gdata_Extension::getXML()\Zend_Gdata_Media_Extension_MediaGroup::getXML()Type | Description |
---|---|
string | XML content |


lookupNamespace(string $prefix, integer $majorVersion = 1, integer $minorVersion = null) : string
Get the full version of a namespace prefix
Inherited from: \Zend_Gdata_App_Base::lookupNamespace()\Zend_Gdata_App_Extension::lookupNamespace()\Zend_Gdata_Extension::lookupNamespace()\Zend_Gdata_Media_Extension_MediaGroup::lookupNamespace()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.
Name | Type | Description |
---|---|---|
$prefix | string | The namespace prefix to lookup. |
$majorVersion | integer | The major protocol version in effect. Defaults to '1'. |
$minorVersion | integer | The minor protocol version in effect. Defaults to null (use latest). |
Type | Description |
---|---|
string |


registerAllNamespaces(array $namespaceArray) : void
Add an array of namespaces to the registered list.
Inherited from: \Zend_Gdata_App_Base::registerAllNamespaces()\Zend_Gdata_App_Extension::registerAllNamespaces()\Zend_Gdata_Extension::registerAllNamespaces()\Zend_Gdata_Media_Extension_MediaGroup::registerAllNamespaces()Takes an array in the format of: namespace prefix, namespace URI, major protocol version, minor protocol version and adds them with calls to ->registerNamespace()
Name | Type | Description |
---|---|---|
$namespaceArray | array | An array of namespaces. |


registerNamespace(string $prefix, string $namespaceUri, integer $majorVersion = 1, integer $minorVersion = 0) : void
Add a namespace and prefix to the registered list
Inherited from: \Zend_Gdata_App_Base::registerNamespace()\Zend_Gdata_App_Extension::registerNamespace()\Zend_Gdata_Extension::registerNamespace()\Zend_Gdata_Media_Extension_MediaGroup::registerNamespace()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().
Name | Type | Description |
---|---|---|
$prefix | string | The namespace prefix |
$namespaceUri | string | The full namespace URI |
$majorVersion | integer | The major protocol version in effect. Defaults to '1'. |
$minorVersion | integer | The minor protocol version in effect. Defaults to null (use latest). |


saveXML() : string
Converts this element and all children into XML text using getDOM()
Inherited from: \Zend_Gdata_App_Base::saveXML()\Zend_Gdata_App_Extension::saveXML()\Zend_Gdata_Extension::saveXML()\Zend_Gdata_Media_Extension_MediaGroup::saveXML()Type | Description |
---|---|
string | XML content |


setCategory(array $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setContent(array $value) : \Zend_Gdata_Media_MediaGroup
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_MediaGroup | Provides a fluent interface |


setCopyright(\Zend_Gdata_Media_Extension_MediaCopyright $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Media_Extension_MediaCopyright |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setCredit(array $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setDescription(\Zend_Gdata_Media_Extension_MediaDescription $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Media_Extension_MediaDescription |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setDuration(\Zend_Gdata_YouTube_Extension_Duration $value) : \Zend_Gdata_YouTube_Extension_MediaGroup
Sets the duration value of this element
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_YouTube_Extension_Duration | The duration value |
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_MediaGroup | Provides a fluent interface |


setExtensionAttributes(array $value) : \Zend_Gdata_App_Base
Sets an array of all extension attributes not transformed into data model properties during parsing of the XML.
Inherited from: \Zend_Gdata_App_Base::setExtensionAttributes()\Zend_Gdata_App_Extension::setExtensionAttributes()\Zend_Gdata_Extension::setExtensionAttributes()\Zend_Gdata_Media_Extension_MediaGroup::setExtensionAttributes()Each element of the array is a hashed array of the format: array('namespaceUri' => string, 'name' => string, 'value' => string); This can be used to add arbitrary attributes to any data model element
Name | Type | Description |
---|---|---|
$value | array | All extension attributes |
Type | Description |
---|---|
\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
Sets an array of all elements not matched to data model classes during the parsing of the XML.
Inherited from: \Zend_Gdata_App_Base::setExtensionElements()\Zend_Gdata_App_Extension::setExtensionElements()\Zend_Gdata_Extension::setExtensionElements()\Zend_Gdata_Media_Extension_MediaGroup::setExtensionElements()This method can be used to add arbitrary child XML elements to any data model class.
Name | Type | Description |
---|---|---|
$value | array | All extension elements |
Type | Description |
---|---|
\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
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setKeywords(array $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup | Provides a fluent interface |


setMediaCredit(\Zend_Gdata_YouTube_Extension_MediaCredit $value) : \Zend_Gdata_YouTube_Extension_MediaGroup
Sets the media:credit value of this element
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_YouTube_Extension_MediaCredit | The credit element |
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_MediaGroup | Provides a fluent interface |


setMediaRating(\Zend_Gdata_YouTube_Extension_MediaRating $value) : \Zend_Gdata_YouTube_Extension_MediaGroup
Sets the media:rating value of this element
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_YouTube_Extension_MediaRating | The rating element |
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_MediaGroup | Provides a fluent interface |


setMediaText( $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setPlayer( $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setPrivate(\Zend_Gdata_YouTube_Extension_Private $value) : \Zend_Gdata_YouTube_Extension_MediaGroup
Sets the private value of this element
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_YouTube_Extension_Private | The private value |
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_MediaGroup | Provides a fluent interface |


setRating( $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setRestriction( $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setText(string $value) : \Zend_Gdata_App_Base
Sets the child text node of this element This represents any raw text contained within the XML element
Inherited from: \Zend_Gdata_App_Base::setText()\Zend_Gdata_App_Extension::setText()\Zend_Gdata_Extension::setText()\Zend_Gdata_Media_Extension_MediaGroup::setText()Name | Type | Description |
---|---|---|
$value | string | Child text node |
Type | Description |
---|---|
\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
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setTitle(\Zend_Gdata_Media_Extension_MediaTitle $value) : \Zend_Gdata_Media_Extension_MediaGroup
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Media_Extension_MediaTitle |
Type | Description |
---|---|
\Zend_Gdata_Media_Extension_MediaGroup |


setUploaded(\Zend_Gdata_YouTube_Extension_Uploaded $value) : \Zend_Gdata_YouTube_Extension_MediaGroup
Sets the yt:uploaded element
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_YouTube_Extension_Uploaded | The uploaded value |
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_MediaGroup | Provides a fluent interface |


setVideoId(\Zend_Gdata_YouTube_Extension_VideoId $value) : \Zend_Gdata_YouTube_Extension_MediaGroup
Sets the videoid value of this element
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_YouTube_Extension_VideoId | The video id value |
Type | Description |
---|---|
\Zend_Gdata_YouTube_Extension_MediaGroup | Provides a fluent interface |


takeAttributeFromDOM(\DOMNode $attribute) : void
Given a DOMNode representing an attribute, tries to map the data into instance members.
Inherited from: \Zend_Gdata_App_Base::takeAttributeFromDOM()\Zend_Gdata_App_Extension::takeAttributeFromDOM()\Zend_Gdata_Extension::takeAttributeFromDOM()\Zend_Gdata_Media_Extension_MediaGroup::takeAttributeFromDOM()If no mapping is defined, the name and value are stored in an array.
Name | Type | Description |
---|---|---|
$attribute | \DOMNode | The DOMNode attribute needed to be handled |


takeChildFromDOM(\DOMNode $child) : void
Creates individual Entry objects of the appropriate type and stores them in the $_entry array based upon DOM data.
If no mapping is defined, Extension_Element objects are created and stored in an array.
Name | Type | Description |
---|---|---|
$child | \DOMNode | The DOMNode to process |


transferFromDOM(\DOMNode $node) : void
Transfers each child and attribute into member variables.
Inherited from: \Zend_Gdata_App_Base::transferFromDOM()\Zend_Gdata_App_Extension::transferFromDOM()\Zend_Gdata_Extension::transferFromDOM()\Zend_Gdata_Media_Extension_MediaGroup::transferFromDOM()This is called when XML is received over the wire and the data model needs to be built to represent this XML.
Name | Type | Description |
---|---|---|
$node | \DOMNode | The DOMNode that represents this object's data |


transferFromXML(string $xml) : void
Parses the provided XML text and generates data model classes for each know element by turning the XML text into a DOM tree and calling transferFromDOM($element).
Inherited from: \Zend_Gdata_App_Base::transferFromXML()\Zend_Gdata_App_Extension::transferFromXML()\Zend_Gdata_Extension::transferFromXML()\Zend_Gdata_Media_Extension_MediaGroup::transferFromXML()The first data model element with the same name as $this->_rootElement is used and the child elements are recursively parsed.
Name | Type | Description |
---|---|---|
$xml | string | The XML text to parse |