예제 #1
0
파일: Tags.php 프로젝트: niallmccrudden/zf2
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('exif') . ':' . 'distance';
             $distance = new Distance();
             $distance->transferFromDOM($child);
             $this->_distance = $distance;
             break;
         case $this->lookupNamespace('exif') . ':' . 'exposure';
             $exposure = new Exposure();
             $exposure->transferFromDOM($child);
             $this->_exposure = $exposure;
             break;
         case $this->lookupNamespace('exif') . ':' . 'flash';
             $flash = new Flash();
             $flash->transferFromDOM($child);
             $this->_flash = $flash;
             break;
         case $this->lookupNamespace('exif') . ':' . 'focallength';
             $focalLength = new FocalLength();
             $focalLength->transferFromDOM($child);
             $this->_focalLength = $focalLength;
             break;
         case $this->lookupNamespace('exif') . ':' . 'fstop';
             $fStop = new FStop();
             $fStop->transferFromDOM($child);
             $this->_fStop = $fStop;
             break;
         case $this->lookupNamespace('exif') . ':' . 'imageUniqueID';
             $imageUniqueId = new ImageUniqueId();
             $imageUniqueId->transferFromDOM($child);
             $this->_imageUniqueId = $imageUniqueId;
             break;
         case $this->lookupNamespace('exif') . ':' . 'iso';
             $iso = new ISO();
             $iso->transferFromDOM($child);
             $this->_iso = $iso;
             break;
         case $this->lookupNamespace('exif') . ':' . 'make';
             $make = new Make();
             $make->transferFromDOM($child);
             $this->_make = $make;
             break;
         case $this->lookupNamespace('exif') . ':' . 'model';
             $model = new Model();
             $model->transferFromDOM($child);
             $this->_model = $model;
             break;
         case $this->lookupNamespace('exif') . ':' . 'time';
             $time = new Time();
             $time->transferFromDOM($child);
             $this->_time = $time;
             break;
     }
 }