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 license@zend.com so we can send you a copy immediately.
Represents the exif:tags element used by the Gdata Exif extensions.

string
$_rootElement= 'tags'
tags
Details
__construct(
\Zend_Gdata_Exif_Extension_Distance $distance
=
null, \Zend_Gdata_Exif_Extension_Exposure $exposure
=
null, \Zend_Gdata_Exif_Extension_Flash $flash
=
null, \Zend_Gdata_Exif_Extension_FocalLength$focalLength $focalLength
=
null, \Zend_Gdata_Exif_Extension_FStop $fStop
=
null, \Zend_Gdata_Exif_Extension_ImageUniqueId $imageUniqueId
=
null, \Zend_Gdata_Exif_Extension_Iso $iso
=
null, \Zend_Gdata_Exif_Extension_Make $make
=
null, \Zend_Gdata_Exif_Extension_Model $model
=
null, \Zend_Gdata_Exif_Extension_Time $time
=
null
)
:
void
Constructs a new Zend_Gdata_Exif_Extension_Tags object.
Name | Type | Description |
---|---|---|
$distance | \Zend_Gdata_Exif_Extension_Distance | (optional) The exif:distance value to be set in the constructed object. |
$exposure | \Zend_Gdata_Exif_Extension_Exposure | (optional) The exif:exposure value to be set in the constructed object. |
$flash | \Zend_Gdata_Exif_Extension_Flash | (optional) The exif:flash value to be set in the constructed object. |
$focalLength | \Zend_Gdata_Exif_Extension_FocalLength$focalLength | (optional) The exif:focallength value to be set in the constructed object. |
$fStop | \Zend_Gdata_Exif_Extension_FStop | (optional) The exif:fstop value to be set in the constructed object. |
$imageUniqueId | \Zend_Gdata_Exif_Extension_ImageUniqueId | (optional) The exif:imageUniqueID value to be set in the constructed object. |
$iso | \Zend_Gdata_Exif_Extension_Iso | (optional) The exif:iso value to be set in the constructed object. |
$make | \Zend_Gdata_Exif_Extension_Make | (optional) The exif:make value to be set in the constructed object. |
$model | \Zend_Gdata_Exif_Extension_Model | (optional) The exif:model value to be set in the constructed object. |
$time | \Zend_Gdata_Exif_Extension_Time | (optional) The exif:time value to be set in the constructed object. |

__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()TODO Remove ability to bypass getFoo() methods??
Name | Type | Description |
---|---|---|
$name | string | The variable name sought |

encode(
)
:
string
Alias for saveXML()
Inherited from: \Zend_Gdata_App_Base::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()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().

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 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. |

getDistance(
)
:
\Zend_Gdata_Exif_Extension_Distance
Get the value for this element's distance attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Distance | The requested attribute. |

getExposure(
)
:
\Zend_Gdata_Exif_Extension_Exposure
Get the value for this element's exposure attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Exposure | The requested attribute. |

getExtensionAttributes(
)
:
array
Returns an array of all extension attributes not transformed into data model properties during parsing of the XML. Each element of the array is a hashed array of the format: array('namespaceUri' => string, 'name' => string, 'value' => string);
Inherited from: \Zend_Gdata_App_Base::getExtensionAttributes()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()Type | Description |
---|---|
array | All elements not matched to data model classes during parsing |

getFStop(
)
:
\Zend_Gdata_Exif_Extension_FStop
Get the value for this element's fStop attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_FStop | The requested attribute. |

getFlash(
)
:
\Zend_Gdata_Exif_Extension_Flash
Get the value for this element's flash attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Flash | The requested attribute. |

getFocalLength(
)
:
\Zend_Gdata_Exif_Extension_FocalLength
Get the value for this element's name attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_FocalLength | The requested attribute. |

getImageUniqueId(
)
:
\Zend_Gdata_Exif_Extension_ImageUniqueId
Get the value for this element's imageUniqueId attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_ImageUniqueId | The requested attribute. |

getIso(
)
:
\Zend_Gdata_Exif_Extension_Iso
Get the value for this element's iso attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Iso | The requested attribute. |

getMake(
)
:
\Zend_Gdata_Exif_Extension_Make
Get the value for this element's make attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Make | The requested attribute. |

getModel(
)
:
\Zend_Gdata_Exif_Extension_Model
Get the value for this element's model attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Model | The requested attribute. |

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()Name | Type | Description |
---|---|---|
$trim |
Type | Description |
---|---|
string | Child text node |

getTime(
)
:
\Zend_Gdata_Exif_Extension_Time
Get the value for this element's time attribute.
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Time | The requested attribute. |

getXML(
)
:
string
Alias for saveXML() returns XML content for this element and all children
Inherited from: \Zend_Gdata_App_Base::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()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()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()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()Type | Description |
---|---|
string | XML content |

setDistance(
\Zend_Gdata_Exif_Extension_Distance $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's distance attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_Distance | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | Provides a fluent interface |

setExposure(
\Zend_Gdata_Exif_Extension_Exposure $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's exposure attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_Exposure | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | 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. 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
Inherited from: \Zend_Gdata_App_Base::setExtensionAttributes()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. This method can be used to add arbitrary child XML elements to any data model class.
Inherited from: \Zend_Gdata_App_Base::setExtensionElements()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. |

setFStop(
\Zend_Gdata_Exif_Extension_FStop $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's fStop attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_FStop | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | Provides a fluent interface |

setFlash(
\Zend_Gdata_Exif_Extension_Flash $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's flash attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_Flash | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | Provides a fluent interface |

setFocalLength(
\Zend_Gdata_Exif_Extension_FocalLength $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's focalLength attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_FocalLength | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | Provides a fluent interface |

setImageUniqueId(
\Zend_Gdata_Exif_Extension_ImageUniqueId $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's imageUniqueId attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_ImageUniqueId | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | Provides a fluent interface |

setIso(
\Zend_Gdata_Exif_Extension_Iso $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's iso attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_Iso | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | Provides a fluent interface |

setMake(
\Zend_Gdata_Exif_Extension_Make $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's make attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_Make | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | Provides a fluent interface |

setModel(
\Zend_Gdata_Exif_Extension_Model $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's model attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_Model | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | Provides a fluent interface |

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()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. |

setTime(
\Zend_Gdata_Exif_Extension_Time $value
)
:
\Zend_Gdata_Exif_Extension_Tags
Set the value for this element's time attribute.
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Exif_Extension_Time | The desired value for this attribute. |
Type | Description |
---|---|
\Zend_Gdata_Exif_Extension_Tags | Provides a fluent interface |

takeAttributeFromDOM(
\DOMNode $attribute
)
:
void
Given a DOMNode representing an attribute, tries to map the data into instance members. If no mapping is defined, the name and value are stored in an array.
Inherited from: \Zend_Gdata_App_Base::takeAttributeFromDOM()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 as members of this entry based upon DOM data.
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()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). The first data model element with the same name as $this->_rootElement is used and the child elements are recursively parsed.
Inherited from: \Zend_Gdata_App_Base::transferFromXML()Name | Type | Description |
---|---|---|
$xml | string | The XML text to parse |