import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -40,6 +40,7 @@ require_once 'Zend/Gdata/Exif/Extension/Tags.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -51,36 +52,34 @@ class Zend_Gdata_Exif_Entry extends Zend_Gdata_Entry
|
||||
* @var string
|
||||
*/
|
||||
protected $_entryClassName = 'Zend_Gdata_Exif_Entry';
|
||||
|
||||
|
||||
/**
|
||||
* The tags that belong to the Exif group.
|
||||
*
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_tags = null;
|
||||
|
||||
|
||||
/**
|
||||
* Create a new instance.
|
||||
*
|
||||
*
|
||||
* @param DOMElement $element (optional) DOMElement from which this
|
||||
* object should be constructed.
|
||||
*/
|
||||
public function __construct($element = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct($element);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a DOMElement which corresponds to this element and all
|
||||
* 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.
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
@ -112,27 +111,27 @@ class Zend_Gdata_Exif_Entry extends Zend_Gdata_Entry
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve the tags for this entry.
|
||||
*
|
||||
* @see setTags
|
||||
* @return Zend_Gdata_Exif_Extension_Tags The requested object
|
||||
* @return Zend_Gdata_Exif_Extension_Tags The requested object
|
||||
* or null if not set.
|
||||
*/
|
||||
public function getTags()
|
||||
{
|
||||
return $this->_tags;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the tags property for this entry. This property contains
|
||||
* Set the tags property for this entry. This property contains
|
||||
* various Exif data.
|
||||
*
|
||||
* This corresponds to the <exif:tags> property in the Google Data
|
||||
*
|
||||
* This corresponds to the <exif:tags> property in the Google Data
|
||||
* protocol.
|
||||
*
|
||||
* @param Zend_Gdata_Exif_Extension_Tags $value The desired value
|
||||
*
|
||||
* @param Zend_Gdata_Exif_Extension_Tags $value The desired value
|
||||
* this element, or null to unset.
|
||||
* @return Zend_Gdata_Exif_Entry Provides a fluent interface
|
||||
*/
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_Distance extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'distance';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_Distance object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_Exposure extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'exposure';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_Exposure object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_FStop extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'fstop';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_FStop object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_Flash extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'flash';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_Flash object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_FocalLength extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'focallength';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_FocalLength object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_ImageUniqueId extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'imageUniqueID';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_ImageUniqueId object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_Iso extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'iso';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_Iso object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_Make extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'make';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_Make object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_Model extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'model';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_Model object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -85,6 +85,7 @@ require_once 'Zend/Gdata/Exif/Extension/Time.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -93,109 +94,107 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'tags';
|
||||
|
||||
|
||||
/**
|
||||
* exif:distance value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_Distance
|
||||
*/
|
||||
*/
|
||||
protected $_distance = null;
|
||||
|
||||
/**
|
||||
* exif:exposure value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_Exposure
|
||||
*/
|
||||
*/
|
||||
protected $_exposure = null;
|
||||
|
||||
/**
|
||||
* exif:flash value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_Flash
|
||||
*/
|
||||
*/
|
||||
protected $_flash = null;
|
||||
|
||||
/**
|
||||
* exif:focalLength value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_FocalLength
|
||||
*/
|
||||
*/
|
||||
protected $_focalLength = null;
|
||||
|
||||
/**
|
||||
* exif:fStop value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_FStop
|
||||
*/
|
||||
*/
|
||||
protected $_fStop = null;
|
||||
|
||||
/**
|
||||
* exif:imageUniqueID value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_ImageUniqueId
|
||||
*/
|
||||
*/
|
||||
protected $_imageUniqueId = null;
|
||||
|
||||
/**
|
||||
* exif:iso value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_Iso
|
||||
*/
|
||||
*/
|
||||
protected $_iso = null;
|
||||
|
||||
/**
|
||||
* exif:make value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_Make
|
||||
*/
|
||||
*/
|
||||
protected $_make = null;
|
||||
|
||||
/**
|
||||
* exif:model value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_Model
|
||||
*/
|
||||
*/
|
||||
protected $_model = null;
|
||||
|
||||
/**
|
||||
* exif:time value
|
||||
*
|
||||
*
|
||||
* @var Zend_Gdata_Exif_Extension_Time
|
||||
*/
|
||||
*/
|
||||
protected $_time = null;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_Tags object.
|
||||
*
|
||||
* @param Zend_Gdata_Exif_Extension_Distance $distance (optional) The exif:distance
|
||||
* @param Zend_Gdata_Exif_Extension_Distance $distance (optional) The exif:distance
|
||||
* value to be set in the constructed object.
|
||||
* @param Zend_Gdata_Exif_Extension_Exposure $exposure (optional) The exif:exposure
|
||||
* @param Zend_Gdata_Exif_Extension_Exposure $exposure (optional) The exif:exposure
|
||||
* value to be set in the constructed object.
|
||||
* @param Zend_Gdata_Exif_Extension_Flash $flash (optional) The exif:flash
|
||||
* value to be set in the constructed object.
|
||||
* @param Zend_Gdata_Exif_Extension_FocalLength$focalLength (optional) The exif:focallength
|
||||
* value to be set in the constructed object.
|
||||
* @param Zend_Gdata_Exif_Extension_FStop $fStop (optional) The exif:fstop
|
||||
* @param Zend_Gdata_Exif_Extension_FStop $fStop (optional) The exif:fstop
|
||||
* value to be set in the constructed object.
|
||||
* @param Zend_Gdata_Exif_Extension_ImageUniqueId $imageUniqueId (optional) The exif:imageUniqueID
|
||||
* @param Zend_Gdata_Exif_Extension_ImageUniqueId $imageUniqueId (optional) The exif:imageUniqueID
|
||||
* value to be set in the constructed object.
|
||||
* @param Zend_Gdata_Exif_Extension_Iso $iso (optional) The exif:iso
|
||||
* @param Zend_Gdata_Exif_Extension_Iso $iso (optional) The exif:iso
|
||||
* value to be set in the constructed object.
|
||||
* @param Zend_Gdata_Exif_Extension_Make $make (optional) The exif:make
|
||||
* @param Zend_Gdata_Exif_Extension_Make $make (optional) The exif:make
|
||||
* value to be set in the constructed object.
|
||||
* @param Zend_Gdata_Exif_Extension_Model $model (optional) The exif:model
|
||||
* @param Zend_Gdata_Exif_Extension_Model $model (optional) The exif:model
|
||||
* value to be set in the constructed object.
|
||||
* @param Zend_Gdata_Exif_Extension_Time $time (optional) The exif:time
|
||||
* @param Zend_Gdata_Exif_Extension_Time $time (optional) The exif:time
|
||||
* value to be set in the constructed object.
|
||||
*/
|
||||
public function __construct($distance = null, $exposure = null,
|
||||
$flash = null, $focalLength = null, $fStop = null,
|
||||
$imageUniqueId = null, $iso = null, $make = null,
|
||||
$model = null, $time = null)
|
||||
$model = null, $time = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setDistance($distance);
|
||||
$this->setExposure($exposure);
|
||||
@ -208,7 +207,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
$this->setModel($model);
|
||||
$this->setTime($time);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves a DOMElement which corresponds to this element and all
|
||||
* child properties. This is used to build an entry back into a DOM
|
||||
@ -264,59 +263,59 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('exif') . ':' . 'distance';
|
||||
case $this->lookupNamespace('exif') . ':' . 'distance';
|
||||
$distance = new Zend_Gdata_Exif_Extension_Distance();
|
||||
$distance->transferFromDOM($child);
|
||||
$this->_distance = $distance;
|
||||
break;
|
||||
case $this->lookupNamespace('exif') . ':' . 'exposure';
|
||||
case $this->lookupNamespace('exif') . ':' . 'exposure';
|
||||
$exposure = new Zend_Gdata_Exif_Extension_Exposure();
|
||||
$exposure->transferFromDOM($child);
|
||||
$this->_exposure = $exposure;
|
||||
break;
|
||||
case $this->lookupNamespace('exif') . ':' . 'flash';
|
||||
case $this->lookupNamespace('exif') . ':' . 'flash';
|
||||
$flash = new Zend_Gdata_Exif_Extension_Flash();
|
||||
$flash->transferFromDOM($child);
|
||||
$this->_flash = $flash;
|
||||
break;
|
||||
case $this->lookupNamespace('exif') . ':' . 'focallength';
|
||||
case $this->lookupNamespace('exif') . ':' . 'focallength';
|
||||
$focalLength = new Zend_Gdata_Exif_Extension_FocalLength();
|
||||
$focalLength->transferFromDOM($child);
|
||||
$this->_focalLength = $focalLength;
|
||||
break;
|
||||
case $this->lookupNamespace('exif') . ':' . 'fstop';
|
||||
case $this->lookupNamespace('exif') . ':' . 'fstop';
|
||||
$fStop = new Zend_Gdata_Exif_Extension_FStop();
|
||||
$fStop->transferFromDOM($child);
|
||||
$this->_fStop = $fStop;
|
||||
break;
|
||||
case $this->lookupNamespace('exif') . ':' . 'imageUniqueID';
|
||||
case $this->lookupNamespace('exif') . ':' . 'imageUniqueID';
|
||||
$imageUniqueId = new Zend_Gdata_Exif_Extension_ImageUniqueId();
|
||||
$imageUniqueId->transferFromDOM($child);
|
||||
$this->_imageUniqueId = $imageUniqueId;
|
||||
break;
|
||||
case $this->lookupNamespace('exif') . ':' . 'iso';
|
||||
case $this->lookupNamespace('exif') . ':' . 'iso';
|
||||
$iso = new Zend_Gdata_Exif_Extension_Iso();
|
||||
$iso->transferFromDOM($child);
|
||||
$this->_iso = $iso;
|
||||
break;
|
||||
case $this->lookupNamespace('exif') . ':' . 'make';
|
||||
case $this->lookupNamespace('exif') . ':' . 'make';
|
||||
$make = new Zend_Gdata_Exif_Extension_Make();
|
||||
$make->transferFromDOM($child);
|
||||
$this->_make = $make;
|
||||
break;
|
||||
case $this->lookupNamespace('exif') . ':' . 'model';
|
||||
case $this->lookupNamespace('exif') . ':' . 'model';
|
||||
$model = new Zend_Gdata_Exif_Extension_Model();
|
||||
$model->transferFromDOM($child);
|
||||
$this->_model = $model;
|
||||
break;
|
||||
case $this->lookupNamespace('exif') . ':' . 'time';
|
||||
case $this->lookupNamespace('exif') . ':' . 'time';
|
||||
$time = new Zend_Gdata_Exif_Extension_Time();
|
||||
$time->transferFromDOM($child);
|
||||
$this->_time = $time;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's distance attribute.
|
||||
*
|
||||
@ -327,7 +326,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
{
|
||||
return $this->_distance;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the value for this element's distance attribute.
|
||||
*
|
||||
@ -339,7 +338,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
$this->_distance = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's exposure attribute.
|
||||
*
|
||||
@ -350,7 +349,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
{
|
||||
return $this->_exposure;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the value for this element's exposure attribute.
|
||||
*
|
||||
@ -362,7 +361,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
$this->_exposure = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's flash attribute.
|
||||
*
|
||||
@ -373,7 +372,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
{
|
||||
return $this->_flash;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the value for this element's flash attribute.
|
||||
*
|
||||
@ -385,7 +384,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
$this->_flash = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's name attribute.
|
||||
*
|
||||
@ -396,7 +395,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
{
|
||||
return $this->_focalLength;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the value for this element's focalLength attribute.
|
||||
*
|
||||
@ -408,7 +407,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
$this->_focalLength = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's fStop attribute.
|
||||
*
|
||||
@ -419,7 +418,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
{
|
||||
return $this->_fStop;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the value for this element's fStop attribute.
|
||||
*
|
||||
@ -431,7 +430,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
$this->_fStop = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's imageUniqueId attribute.
|
||||
*
|
||||
@ -454,7 +453,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
$this->_imageUniqueId = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's iso attribute.
|
||||
*
|
||||
@ -499,7 +498,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
$this->_make = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's model attribute.
|
||||
*
|
||||
@ -522,7 +521,7 @@ class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
|
||||
$this->_model = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's time attribute.
|
||||
*
|
||||
|
@ -35,6 +35,7 @@ require_once 'Zend/Gdata/Exif.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -43,17 +44,15 @@ class Zend_Gdata_Exif_Extension_Time extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'exif';
|
||||
protected $_rootElement = 'time';
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Exif_Extension_Time object.
|
||||
*
|
||||
*
|
||||
* @param string $text (optional) The value to use for this element.
|
||||
*/
|
||||
public function __construct($text = null)
|
||||
public function __construct($text = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct();
|
||||
$this->setText($text);
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ require_once 'Zend/Gdata/Exif/Entry.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Exif
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -52,18 +53,16 @@ class Zend_Gdata_Exif_Feed extends Zend_Gdata_Feed
|
||||
* @var string
|
||||
*/
|
||||
protected $_entryClassName = 'Zend_Gdata_Exif_Entry';
|
||||
|
||||
|
||||
/**
|
||||
* Create a new instance.
|
||||
*
|
||||
*
|
||||
* @param DOMElement $element (optional) DOMElement from which this
|
||||
* object should be constructed.
|
||||
*/
|
||||
public function __construct($element = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
|
||||
parent::__construct($element);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user