⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tags.php

📁 zend的加强包 zend的加强包
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php/** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@zend.com so we can send you a copy immediately. * * @category   Zend * @package    Zend_Gdata * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) * @license    http://framework.zend.com/license/new-bsd     New BSD License *//** * @see Zend_Gdata_Extension */require_once 'Zend/Gdata/Extension.php';/** * @see Zend_Gdata_Exif */require_once 'Zend/Gdata/Exif.php';/** * @see Zend_Gdata_Exif_Extension_Distance */require_once 'Zend/Gdata/Exif/Extension/Distance.php';/** * @see Zend_Gdata_Exif_Extension_Exposure */require_once 'Zend/Gdata/Exif/Extension/Exposure.php';/** * @see Zend_Gdata_Exif_Extension_Flash */require_once 'Zend/Gdata/Exif/Extension/Flash.php';/** * @see Zend_Gdata_Exif_Extension_FocalLength */require_once 'Zend/Gdata/Exif/Extension/FocalLength.php';/** * @see Zend_Gdata_Exif_Extension_FStop */require_once 'Zend/Gdata/Exif/Extension/FStop.php';/** * @see Zend_Gdata_Exif_Extension_ImageUniqueId */require_once 'Zend/Gdata/Exif/Extension/ImageUniqueId.php';/** * @see Zend_Gdata_Exif_Extension_Iso */require_once 'Zend/Gdata/Exif/Extension/Iso.php';/** * @see Zend_Gdata_Exif_Extension_Make */require_once 'Zend/Gdata/Exif/Extension/Make.php';/** * @see Zend_Gdata_Exif_Extension_Model */require_once 'Zend/Gdata/Exif/Extension/Model.php';/** * @see Zend_Gdata_Exif_Extension_Time */require_once 'Zend/Gdata/Exif/Extension/Time.php';/** * Represents the exif:tags element used by the Gdata Exif extensions. * * @category   Zend * @package    Zend_Gdata * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) * @license    http://framework.zend.com/license/new-bsd     New BSD License */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      *          value to be set in the constructed object.     * @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      *          value to be set in the constructed object.     * @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      *          value to be set in the constructed object.     * @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      *          value to be set in the constructed object.     * @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)     {        foreach (Zend_Gdata_Exif::$namespaces as $nsPrefix => $nsUri) {            $this->registerNamespace($nsPrefix, $nsUri);        }        parent::__construct();        $this->setDistance($distance);        $this->setExposure($exposure);        $this->setFlash($flash);        $this->setFocalLength($focalLength);        $this->setFStop($fStop);        $this->setImageUniqueId($imageUniqueId);        $this->setIso($iso);        $this->setMake($make);        $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     * and eventually XML text for application storage/persistence.     *     * @param DOMDocument $doc The DOMDocument used to construct DOMElements     * @return DOMElement The DOMElement representing this element and all     *          child properties.     */    public function getDOM($doc = null)    {        $element = parent::getDOM($doc);        if ($this->_distance !== null) {            $element->appendChild($this->_distance->getDOM($element->ownerDocument));        }        if ($this->_exposure !== null) {            $element->appendChild($this->_exposure->getDOM($element->ownerDocument));        }        if ($this->_flash !== null) {            $element->appendChild($this->_flash->getDOM($element->ownerDocument));        }        if ($this->_focalLength !== null) {            $element->appendChild($this->_focalLength->getDOM($element->ownerDocument));        }        if ($this->_fStop !== null) {            $element->appendChild($this->_fStop->getDOM($element->ownerDocument));        }        if ($this->_imageUniqueId !== null) {            $element->appendChild($this->_imageUniqueId->getDOM($element->ownerDocument));        }        if ($this->_iso !== null) {            $element->appendChild($this->_iso->getDOM($element->ownerDocument));        }        if ($this->_make !== null) {            $element->appendChild($this->_make->getDOM($element->ownerDocument));        }        if ($this->_model !== null) {            $element->appendChild($this->_model->getDOM($element->ownerDocument));        }        if ($this->_time !== null) {            $element->appendChild($this->_time->getDOM($element->ownerDocument));        }        return $element;    }    /**     * 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 Zend_Gdata_Exif_Extension_Distance();                $distance->transferFromDOM($child);                $this->_distance = $distance;                break;            case $this->lookupNamespace('exif') . ':' . 'exposure';                 $exposure = new Zend_Gdata_Exif_Extension_Exposure();                $exposure->transferFromDOM($child);                $this->_exposure = $exposure;                break;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -