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


PHP Zend_Gdata_Photos_Extension_Thumbnail类代码示例

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


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

示例1: takeChildFromDOM

 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gphoto') . ':' . 'user':
             $user = new Zend_Gdata_Photos_Extension_User();
             $user->transferFromDOM($child);
             $this->_gphotoUser = $user;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'nickname':
             $nickname = new Zend_Gdata_Photos_Extension_Nickname();
             $nickname->transferFromDOM($child);
             $this->_gphotoNickname = $nickname;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'thumbnail':
             $thumbnail = new Zend_Gdata_Photos_Extension_Thumbnail();
             $thumbnail->transferFromDOM($child);
             $this->_gphotoThumbnail = $thumbnail;
             break;
         case $this->lookupNamespace('atom') . ':' . 'entry':
             $entryClassName = $this->_entryClassName;
             $tmpEntry = new Zend_Gdata_App_Entry($child);
             $categories = $tmpEntry->getCategory();
             foreach ($categories as $category) {
                 if ($category->scheme == Zend_Gdata_Photos::KIND_PATH && $this->_entryKindClassMapping[$category->term] != "") {
                     $entryClassName = $this->_entryKindClassMapping[$category->term];
                     break;
                 } else {
                     require_once 'Zend/Gdata/App/Exception.php';
                     throw new Zend_Gdata_App_Exception('Entry is missing kind declaration.');
                 }
             }
             $newEntry = new $entryClassName($child);
             $newEntry->setHttpClient($this->getHttpClient());
             $this->_entry[] = $newEntry;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:41,代码来源:UserFeed.php

示例2: takeChildFromDOM

 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gphoto') . ':' . 'nickname':
             $nickname = new Zend_Gdata_Photos_Extension_Nickname();
             $nickname->transferFromDOM($child);
             $this->_gphotoNickname = $nickname;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'thumbnail':
             $thumbnail = new Zend_Gdata_Photos_Extension_Thumbnail();
             $thumbnail->transferFromDOM($child);
             $this->_gphotoThumbnail = $thumbnail;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'user':
             $user = new Zend_Gdata_Photos_Extension_User();
             $user->transferFromDOM($child);
             $this->_gphotoUser = $user;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'quotacurrent':
             $quotaCurrent = new Zend_Gdata_Photos_Extension_QuotaCurrent();
             $quotaCurrent->transferFromDOM($child);
             $this->_gphotoQuotaCurrent = $quotaCurrent;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'quotalimit':
             $quotaLimit = new Zend_Gdata_Photos_Extension_QuotaLimit();
             $quotaLimit->transferFromDOM($child);
             $this->_gphotoQuotaLimit = $quotaLimit;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'maxPhotosPerAlbum':
             $maxPhotosPerAlbum = new Zend_Gdata_Photos_Extension_MaxPhotosPerAlbum();
             $maxPhotosPerAlbum->transferFromDOM($child);
             $this->_gphotoMaxPhotosPerAlbum = $maxPhotosPerAlbum;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:hackingman,项目名称:TubeX,代码行数:39,代码来源:UserEntry.php

示例3: getDOM

 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_gphotoUser != null) {
         $element->appendChild($this->_gphotoUser->getDOM($element->ownerDocument));
     }
     if ($this->_gphotoNickname != null) {
         $element->appendChild($this->_gphotoNickname->getDOM($element->ownerDocument));
     }
     if ($this->_gphotoThumbnail != null) {
         $element->appendChild($this->_gphotoThumbnail->getDOM($element->ownerDocument));
     }
     return $element;
 }
开发者ID:netvlies,项目名称:zf,代码行数:14,代码来源:UserFeed.php


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