当前位置: 首页>>代码示例>>PHP>>正文


PHP Flash::transferFromDOM方法代码示例

本文整理汇总了PHP中Flash::transferFromDOM方法的典型用法代码示例。如果您正苦于以下问题:PHP Flash::transferFromDOM方法的具体用法?PHP Flash::transferFromDOM怎么用?PHP Flash::transferFromDOM使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Flash的用法示例。


在下文中一共展示了Flash::transferFromDOM方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: takeChildFromDOM

 /**
  * 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;
     }
 }
开发者ID:niallmccrudden,项目名称:zf2,代码行数:62,代码来源:Tags.php


注:本文中的Flash::transferFromDOM方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。