Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Exif/Entry.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once 'Zend/Gdata/Entry.php';
00028 
00032 require_once 'Zend/Gdata/Exif.php';
00033 
00037 require_once 'Zend/Gdata/Exif/Extension/Tags.php';
00038 
00048 class Zend_Gdata_Exif_Entry extends Zend_Gdata_Entry
00049 {
00055     protected $_entryClassName = 'Zend_Gdata_Exif_Entry';
00056 
00062     protected $_tags = null;
00063 
00070     public function __construct($element = null)
00071     {
00072         $this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces);
00073         parent::__construct($element);
00074     }
00075 
00086     public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
00087     {
00088         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
00089         if ($this->_tags != null) {
00090             $element->appendChild($this->_tags->getDOM($element->ownerDocument));
00091         }
00092         return $element;
00093     }
00094 
00101     protected function takeChildFromDOM($child)
00102     {
00103         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
00104         switch ($absoluteNodeName) {
00105         case $this->lookupNamespace('exif') . ':' . 'tags':
00106             $tags = new Zend_Gdata_Exif_Extension_Tags();
00107             $tags->transferFromDOM($child);
00108             $this->_tags = $tags;
00109             break;
00110         default:
00111             parent::takeChildFromDOM($child);
00112             break;
00113         }
00114     }
00115 
00123     public function getTags()
00124     {
00125         return $this->_tags;
00126     }
00127 
00139     public function setTags($value)
00140     {
00141         $this->_tags = $value;
00142         return $this;
00143     }
00144 
00145 }
 All Data Structures Namespaces Files Functions Variables Enumerations