Zend_Gdata_Exif_Extension_Tags

Represents the exif:tags element used by the Gdata Exif extensions.

Defined (1)

The class is defined in the following location(s).

/inc/VideoUploader/includes/Zend/Gdata/Exif/Extension/Tags.php  
  1. class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension 
  2.  
  3. protected $_rootNamespace = 'exif'; 
  4. protected $_rootElement = 'tags'; 
  5.  
  6. /** 
  7. * exif:distance value 
  8. * @var Zend_Gdata_Exif_Extension_Distance 
  9. */ 
  10. protected $_distance = null; 
  11.  
  12. /** 
  13. * exif:exposure value 
  14. * @var Zend_Gdata_Exif_Extension_Exposure 
  15. */ 
  16. protected $_exposure = null; 
  17.  
  18. /** 
  19. * exif:flash value 
  20. * @var Zend_Gdata_Exif_Extension_Flash 
  21. */ 
  22. protected $_flash = null; 
  23.  
  24. /** 
  25. * exif:focalLength value 
  26. * @var Zend_Gdata_Exif_Extension_FocalLength 
  27. */ 
  28. protected $_focalLength = null; 
  29.  
  30. /** 
  31. * exif:fStop value 
  32. * @var Zend_Gdata_Exif_Extension_FStop 
  33. */ 
  34. protected $_fStop = null; 
  35.  
  36. /** 
  37. * exif:imageUniqueID value 
  38. * @var Zend_Gdata_Exif_Extension_ImageUniqueId 
  39. */ 
  40. protected $_imageUniqueId = null; 
  41.  
  42. /** 
  43. * exif:iso value 
  44. * @var Zend_Gdata_Exif_Extension_Iso 
  45. */ 
  46. protected $_iso = null; 
  47.  
  48. /** 
  49. * exif:make value 
  50. * @var Zend_Gdata_Exif_Extension_Make 
  51. */ 
  52. protected $_make = null; 
  53.  
  54. /** 
  55. * exif:model value 
  56. * @var Zend_Gdata_Exif_Extension_Model 
  57. */ 
  58. protected $_model = null; 
  59.  
  60. /** 
  61. * exif:time value 
  62. * @var Zend_Gdata_Exif_Extension_Time 
  63. */ 
  64. protected $_time = null; 
  65.  
  66. /** 
  67. * Constructs a new Zend_Gdata_Exif_Extension_Tags object. 
  68. * @param Zend_Gdata_Exif_Extension_Distance $distance (optional) The exif:distance 
  69. * value to be set in the constructed object. 
  70. * @param Zend_Gdata_Exif_Extension_Exposure $exposure (optional) The exif:exposure 
  71. * value to be set in the constructed object. 
  72. * @param Zend_Gdata_Exif_Extension_Flash $flash (optional) The exif:flash 
  73. * value to be set in the constructed object. 
  74. * @param Zend_Gdata_Exif_Extension_FocalLength$focalLength (optional) The exif:focallength 
  75. * value to be set in the constructed object. 
  76. * @param Zend_Gdata_Exif_Extension_FStop $fStop (optional) The exif:fstop 
  77. * value to be set in the constructed object. 
  78. * @param Zend_Gdata_Exif_Extension_ImageUniqueId $imageUniqueId (optional) The exif:imageUniqueID 
  79. * value to be set in the constructed object. 
  80. * @param Zend_Gdata_Exif_Extension_Iso $iso (optional) The exif:iso 
  81. * value to be set in the constructed object. 
  82. * @param Zend_Gdata_Exif_Extension_Make $make (optional) The exif:make 
  83. * value to be set in the constructed object. 
  84. * @param Zend_Gdata_Exif_Extension_Model $model (optional) The exif:model 
  85. * value to be set in the constructed object. 
  86. * @param Zend_Gdata_Exif_Extension_Time $time (optional) The exif:time 
  87. * value to be set in the constructed object. 
  88. */ 
  89. public function __construct($distance = null, $exposure = null,  
  90. $flash = null, $focalLength = null, $fStop = null,  
  91. $imageUniqueId = null, $iso = null, $make = null,  
  92. $model = null, $time = null) 
  93. $this->registerAllNamespaces(Zend_Gdata_Exif::$namespaces); 
  94. parent::__construct(); 
  95. $this->setDistance($distance); 
  96. $this->setExposure($exposure); 
  97. $this->setFlash($flash); 
  98. $this->setFocalLength($focalLength); 
  99. $this->setFStop($fStop); 
  100. $this->setImageUniqueId($imageUniqueId); 
  101. $this->setIso($iso); 
  102. $this->setMake($make); 
  103. $this->setModel($model); 
  104. $this->setTime($time); 
  105.  
  106. /** 
  107. * Retrieves a DOMElement which corresponds to this element and all 
  108. * child properties. This is used to build an entry back into a DOM 
  109. * and eventually XML text for application storage/persistence. 
  110. * @param DOMDocument $doc The DOMDocument used to construct DOMElements 
  111. * @return DOMElement The DOMElement representing this element and all 
  112. * child properties. 
  113. */ 
  114. public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) 
  115. $element = parent::getDOM($doc, $majorVersion, $minorVersion); 
  116. if ($this->_distance !== null) { 
  117. $element->appendChild($this->_distance->getDOM($element->ownerDocument)); 
  118. if ($this->_exposure !== null) { 
  119. $element->appendChild($this->_exposure->getDOM($element->ownerDocument)); 
  120. if ($this->_flash !== null) { 
  121. $element->appendChild($this->_flash->getDOM($element->ownerDocument)); 
  122. if ($this->_focalLength !== null) { 
  123. $element->appendChild($this->_focalLength->getDOM($element->ownerDocument)); 
  124. if ($this->_fStop !== null) { 
  125. $element->appendChild($this->_fStop->getDOM($element->ownerDocument)); 
  126. if ($this->_imageUniqueId !== null) { 
  127. $element->appendChild($this->_imageUniqueId->getDOM($element->ownerDocument)); 
  128. if ($this->_iso !== null) { 
  129. $element->appendChild($this->_iso->getDOM($element->ownerDocument)); 
  130. if ($this->_make !== null) { 
  131. $element->appendChild($this->_make->getDOM($element->ownerDocument)); 
  132. if ($this->_model !== null) { 
  133. $element->appendChild($this->_model->getDOM($element->ownerDocument)); 
  134. if ($this->_time !== null) { 
  135. $element->appendChild($this->_time->getDOM($element->ownerDocument)); 
  136. return $element; 
  137.  
  138. /** 
  139. * Creates individual Entry objects of the appropriate type and 
  140. * stores them as members of this entry based upon DOM data. 
  141. * @param DOMNode $child The DOMNode to process 
  142. */ 
  143. protected function takeChildFromDOM($child) 
  144. $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; 
  145. switch ($absoluteNodeName) { 
  146. case $this->lookupNamespace('exif') . ':' . 'distance'; 
  147. $distance = new Zend_Gdata_Exif_Extension_Distance(); 
  148. $distance->transferFromDOM($child); 
  149. $this->_distance = $distance; 
  150. break; 
  151. case $this->lookupNamespace('exif') . ':' . 'exposure'; 
  152. $exposure = new Zend_Gdata_Exif_Extension_Exposure(); 
  153. $exposure->transferFromDOM($child); 
  154. $this->_exposure = $exposure; 
  155. break; 
  156. case $this->lookupNamespace('exif') . ':' . 'flash'; 
  157. $flash = new Zend_Gdata_Exif_Extension_Flash(); 
  158. $flash->transferFromDOM($child); 
  159. $this->_flash = $flash; 
  160. break; 
  161. case $this->lookupNamespace('exif') . ':' . 'focallength'; 
  162. $focalLength = new Zend_Gdata_Exif_Extension_FocalLength(); 
  163. $focalLength->transferFromDOM($child); 
  164. $this->_focalLength = $focalLength; 
  165. break; 
  166. case $this->lookupNamespace('exif') . ':' . 'fstop'; 
  167. $fStop = new Zend_Gdata_Exif_Extension_FStop(); 
  168. $fStop->transferFromDOM($child); 
  169. $this->_fStop = $fStop; 
  170. break; 
  171. case $this->lookupNamespace('exif') . ':' . 'imageUniqueID'; 
  172. $imageUniqueId = new Zend_Gdata_Exif_Extension_ImageUniqueId(); 
  173. $imageUniqueId->transferFromDOM($child); 
  174. $this->_imageUniqueId = $imageUniqueId; 
  175. break; 
  176. case $this->lookupNamespace('exif') . ':' . 'iso'; 
  177. $iso = new Zend_Gdata_Exif_Extension_Iso(); 
  178. $iso->transferFromDOM($child); 
  179. $this->_iso = $iso; 
  180. break; 
  181. case $this->lookupNamespace('exif') . ':' . 'make'; 
  182. $make = new Zend_Gdata_Exif_Extension_Make(); 
  183. $make->transferFromDOM($child); 
  184. $this->_make = $make; 
  185. break; 
  186. case $this->lookupNamespace('exif') . ':' . 'model'; 
  187. $model = new Zend_Gdata_Exif_Extension_Model(); 
  188. $model->transferFromDOM($child); 
  189. $this->_model = $model; 
  190. break; 
  191. case $this->lookupNamespace('exif') . ':' . 'time'; 
  192. $time = new Zend_Gdata_Exif_Extension_Time(); 
  193. $time->transferFromDOM($child); 
  194. $this->_time = $time; 
  195. break; 
  196.  
  197. /** 
  198. * Get the value for this element's distance attribute. 
  199. * @see setDistance 
  200. * @return Zend_Gdata_Exif_Extension_Distance The requested attribute. 
  201. */ 
  202. public function getDistance() 
  203. return $this->_distance; 
  204.  
  205. /** 
  206. * Set the value for this element's distance attribute. 
  207. * @param Zend_Gdata_Exif_Extension_Distance $value The desired value for this attribute. 
  208. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  209. */ 
  210. public function setDistance($value) 
  211. $this->_distance = $value; 
  212. return $this; 
  213.  
  214. /** 
  215. * Get the value for this element's exposure attribute. 
  216. * @see setExposure 
  217. * @return Zend_Gdata_Exif_Extension_Exposure The requested attribute. 
  218. */ 
  219. public function getExposure() 
  220. return $this->_exposure; 
  221.  
  222. /** 
  223. * Set the value for this element's exposure attribute. 
  224. * @param Zend_Gdata_Exif_Extension_Exposure $value The desired value for this attribute. 
  225. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  226. */ 
  227. public function setExposure($value) 
  228. $this->_exposure = $value; 
  229. return $this; 
  230.  
  231. /** 
  232. * Get the value for this element's flash attribute. 
  233. * @see setFlash 
  234. * @return Zend_Gdata_Exif_Extension_Flash The requested attribute. 
  235. */ 
  236. public function getFlash() 
  237. return $this->_flash; 
  238.  
  239. /** 
  240. * Set the value for this element's flash attribute. 
  241. * @param Zend_Gdata_Exif_Extension_Flash $value The desired value for this attribute. 
  242. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  243. */ 
  244. public function setFlash($value) 
  245. $this->_flash = $value; 
  246. return $this; 
  247.  
  248. /** 
  249. * Get the value for this element's name attribute. 
  250. * @see setFocalLength 
  251. * @return Zend_Gdata_Exif_Extension_FocalLength The requested attribute. 
  252. */ 
  253. public function getFocalLength() 
  254. return $this->_focalLength; 
  255.  
  256. /** 
  257. * Set the value for this element's focalLength attribute. 
  258. * @param Zend_Gdata_Exif_Extension_FocalLength $value The desired value for this attribute. 
  259. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  260. */ 
  261. public function setFocalLength($value) 
  262. $this->_focalLength = $value; 
  263. return $this; 
  264.  
  265. /** 
  266. * Get the value for this element's fStop attribute. 
  267. * @see setFStop 
  268. * @return Zend_Gdata_Exif_Extension_FStop The requested attribute. 
  269. */ 
  270. public function getFStop() 
  271. return $this->_fStop; 
  272.  
  273. /** 
  274. * Set the value for this element's fStop attribute. 
  275. * @param Zend_Gdata_Exif_Extension_FStop $value The desired value for this attribute. 
  276. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  277. */ 
  278. public function setFStop($value) 
  279. $this->_fStop = $value; 
  280. return $this; 
  281.  
  282. /** 
  283. * Get the value for this element's imageUniqueId attribute. 
  284. * @see setImageUniqueId 
  285. * @return Zend_Gdata_Exif_Extension_ImageUniqueId The requested attribute. 
  286. */ 
  287. public function getImageUniqueId() 
  288. return $this->_imageUniqueId; 
  289.  
  290. /** 
  291. * Set the value for this element's imageUniqueId attribute. 
  292. * @param Zend_Gdata_Exif_Extension_ImageUniqueId $value The desired value for this attribute. 
  293. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  294. */ 
  295. public function setImageUniqueId($value) 
  296. $this->_imageUniqueId = $value; 
  297. return $this; 
  298.  
  299. /** 
  300. * Get the value for this element's iso attribute. 
  301. * @see setIso 
  302. * @return Zend_Gdata_Exif_Extension_Iso The requested attribute. 
  303. */ 
  304. public function getIso() 
  305. return $this->_iso; 
  306.  
  307. /** 
  308. * Set the value for this element's iso attribute. 
  309. * @param Zend_Gdata_Exif_Extension_Iso $value The desired value for this attribute. 
  310. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  311. */ 
  312. public function setIso($value) 
  313. $this->_iso = $value; 
  314. return $this; 
  315. /** 
  316. * Get the value for this element's make attribute. 
  317. * @see setMake 
  318. * @return Zend_Gdata_Exif_Extension_Make The requested attribute. 
  319. */ 
  320. public function getMake() 
  321. return $this->_make; 
  322.  
  323. /** 
  324. * Set the value for this element's make attribute. 
  325. * @param Zend_Gdata_Exif_Extension_Make $value The desired value for this attribute. 
  326. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  327. */ 
  328. public function setMake($value) 
  329. $this->_make = $value; 
  330. return $this; 
  331.  
  332. /** 
  333. * Get the value for this element's model attribute. 
  334. * @see setModel 
  335. * @return Zend_Gdata_Exif_Extension_Model The requested attribute. 
  336. */ 
  337. public function getModel() 
  338. return $this->_model; 
  339.  
  340. /** 
  341. * Set the value for this element's model attribute. 
  342. * @param Zend_Gdata_Exif_Extension_Model $value The desired value for this attribute. 
  343. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  344. */ 
  345. public function setModel($value) 
  346. $this->_model = $value; 
  347. return $this; 
  348.  
  349. /** 
  350. * Get the value for this element's time attribute. 
  351. * @see setTime 
  352. * @return Zend_Gdata_Exif_Extension_Time The requested attribute. 
  353. */ 
  354. public function getTime() 
  355. return $this->_time; 
  356.  
  357. /** 
  358. * Set the value for this element's time attribute. 
  359. * @param Zend_Gdata_Exif_Extension_Time $value The desired value for this attribute. 
  360. * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface 
  361. */ 
  362. public function setTime($value) 
  363. $this->_time = $value; 
  364. return $this; 
  365.