Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Photos/PhotoEntry.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once 'Zend/Gdata/Media/Entry.php';
00028 
00032 require_once 'Zend/Gdata/Photos/Extension/PhotoId.php';
00033 
00037 require_once 'Zend/Gdata/Photos/Extension/Version.php';
00038 
00042 require_once 'Zend/Gdata/Photos/Extension/AlbumId.php';
00043 
00047 require_once 'Zend/Gdata/Photos/Extension/Id.php';
00048 
00052 require_once 'Zend/Gdata/Photos/Extension/Width.php';
00053 
00057 require_once 'Zend/Gdata/Photos/Extension/Height.php';
00058 
00062 require_once 'Zend/Gdata/Photos/Extension/Size.php';
00063 
00067 require_once 'Zend/Gdata/Photos/Extension/Client.php';
00068 
00072 require_once 'Zend/Gdata/Photos/Extension/Checksum.php';
00073 
00077 require_once 'Zend/Gdata/Photos/Extension/Timestamp.php';
00078 
00082 require_once 'Zend/Gdata/Photos/Extension/CommentingEnabled.php';
00083 
00087 require_once 'Zend/Gdata/Photos/Extension/CommentCount.php';
00088 
00092 require_once 'Zend/Gdata/Exif/Extension/Tags.php';
00093 
00097 require_once 'Zend/Gdata/Geo/Extension/GeoRssWhere.php';
00098 
00102 require_once 'Zend/Gdata/App/Extension/Category.php';
00103 
00119 class Zend_Gdata_Photos_PhotoEntry extends Zend_Gdata_Media_Entry
00120 {
00121 
00122     protected $_entryClassName = 'Zend_Gdata_Photos_PhotoEntry';
00123 
00129     protected $_gphotoId = null;
00130 
00136     protected $_gphotoAlbumId = null;
00137 
00143     protected $_gphotoVersion = null;
00144 
00150     protected $_gphotoWidth = null;
00151 
00157     protected $_gphotoHeight = null;
00158 
00164     protected $_gphotoSize = null;
00165 
00171     protected $_gphotoClient = null;
00172 
00178     protected $_gphotoChecksum = null;
00179 
00185     protected $_gphotoTimestamp = null;
00186 
00192     protected $_gphotoCommentCount = null;
00193 
00199     protected $_gphotoCommentingEnabled = null;
00200 
00206     protected $_exifTags = null;
00207 
00213     protected $_geoRssWhere = null;
00214 
00221     public function __construct($element = null)
00222     {
00223         $this->registerAllNamespaces(Zend_Gdata_Photos::$namespaces);
00224         parent::__construct($element);
00225 
00226         $category = new Zend_Gdata_App_Extension_Category(
00227             'http://schemas.google.com/photos/2007#photo',
00228             'http://schemas.google.com/g/2005#kind');
00229         $this->setCategory(array($category));
00230     }
00231 
00241     public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
00242     {
00243         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
00244         if ($this->_gphotoAlbumId !== null) {
00245             $element->appendChild($this->_gphotoAlbumId->getDOM($element->ownerDocument));
00246         }
00247         if ($this->_gphotoId !== null) {
00248             $element->appendChild($this->_gphotoId->getDOM($element->ownerDocument));
00249         }
00250         if ($this->_gphotoVersion !== null) {
00251             $element->appendChild($this->_gphotoVersion->getDOM($element->ownerDocument));
00252         }
00253         if ($this->_gphotoWidth !== null) {
00254             $element->appendChild($this->_gphotoWidth->getDOM($element->ownerDocument));
00255         }
00256         if ($this->_gphotoHeight !== null) {
00257             $element->appendChild($this->_gphotoHeight->getDOM($element->ownerDocument));
00258         }
00259         if ($this->_gphotoSize !== null) {
00260             $element->appendChild($this->_gphotoSize->getDOM($element->ownerDocument));
00261         }
00262         if ($this->_gphotoClient !== null) {
00263             $element->appendChild($this->_gphotoClient->getDOM($element->ownerDocument));
00264         }
00265         if ($this->_gphotoChecksum !== null) {
00266             $element->appendChild($this->_gphotoChecksum->getDOM($element->ownerDocument));
00267         }
00268         if ($this->_gphotoTimestamp !== null) {
00269             $element->appendChild($this->_gphotoTimestamp->getDOM($element->ownerDocument));
00270         }
00271         if ($this->_gphotoCommentingEnabled !== null) {
00272             $element->appendChild($this->_gphotoCommentingEnabled->getDOM($element->ownerDocument));
00273         }
00274         if ($this->_gphotoCommentCount !== null) {
00275             $element->appendChild($this->_gphotoCommentCount->getDOM($element->ownerDocument));
00276         }
00277         if ($this->_exifTags !== null) {
00278             $element->appendChild($this->_exifTags->getDOM($element->ownerDocument));
00279         }
00280         if ($this->_geoRssWhere !== null) {
00281             $element->appendChild($this->_geoRssWhere->getDOM($element->ownerDocument));
00282         }
00283         return $element;
00284     }
00285 
00292     protected function takeChildFromDOM($child)
00293     {
00294         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
00295 
00296         switch ($absoluteNodeName) {
00297             case $this->lookupNamespace('gphoto') . ':' . 'albumid';
00298                 $albumId = new Zend_Gdata_Photos_Extension_AlbumId();
00299                 $albumId->transferFromDOM($child);
00300                 $this->_gphotoAlbumId = $albumId;
00301                 break;
00302             case $this->lookupNamespace('gphoto') . ':' . 'id';
00303                 $id = new Zend_Gdata_Photos_Extension_Id();
00304                 $id->transferFromDOM($child);
00305                 $this->_gphotoId = $id;
00306                 break;
00307             case $this->lookupNamespace('gphoto') . ':' . 'version';
00308                 $version = new Zend_Gdata_Photos_Extension_Version();
00309                 $version->transferFromDOM($child);
00310                 $this->_gphotoVersion = $version;
00311                 break;
00312             case $this->lookupNamespace('gphoto') . ':' . 'width';
00313                 $width = new Zend_Gdata_Photos_Extension_Width();
00314                 $width->transferFromDOM($child);
00315                 $this->_gphotoWidth = $width;
00316                 break;
00317             case $this->lookupNamespace('gphoto') . ':' . 'height';
00318                 $height = new Zend_Gdata_Photos_Extension_Height();
00319                 $height->transferFromDOM($child);
00320                 $this->_gphotoHeight = $height;
00321                 break;
00322             case $this->lookupNamespace('gphoto') . ':' . 'size';
00323                 $size = new Zend_Gdata_Photos_Extension_Size();
00324                 $size->transferFromDOM($child);
00325                 $this->_gphotoSize = $size;
00326                 break;
00327             case $this->lookupNamespace('gphoto') . ':' . 'client';
00328                 $client = new Zend_Gdata_Photos_Extension_Client();
00329                 $client->transferFromDOM($child);
00330                 $this->_gphotoClient = $client;
00331                 break;
00332             case $this->lookupNamespace('gphoto') . ':' . 'checksum';
00333                 $checksum = new Zend_Gdata_Photos_Extension_Checksum();
00334                 $checksum->transferFromDOM($child);
00335                 $this->_gphotoChecksum = $checksum;
00336                 break;
00337             case $this->lookupNamespace('gphoto') . ':' . 'timestamp';
00338                 $timestamp = new Zend_Gdata_Photos_Extension_Timestamp();
00339                 $timestamp->transferFromDOM($child);
00340                 $this->_gphotoTimestamp = $timestamp;
00341                 break;
00342             case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled';
00343                 $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled();
00344                 $commentingEnabled->transferFromDOM($child);
00345                 $this->_gphotoCommentingEnabled = $commentingEnabled;
00346                 break;
00347             case $this->lookupNamespace('gphoto') . ':' . 'commentCount';
00348                 $commentCount = new Zend_Gdata_Photos_Extension_CommentCount();
00349                 $commentCount->transferFromDOM($child);
00350                 $this->_gphotoCommentCount = $commentCount;
00351                 break;
00352             case $this->lookupNamespace('exif') . ':' . 'tags';
00353                 $exifTags = new Zend_Gdata_Exif_Extension_Tags();
00354                 $exifTags->transferFromDOM($child);
00355                 $this->_exifTags = $exifTags;
00356                 break;
00357             case $this->lookupNamespace('georss') . ':' . 'where';
00358                 $geoRssWhere = new Zend_Gdata_Geo_Extension_GeoRssWhere();
00359                 $geoRssWhere->transferFromDOM($child);
00360                 $this->_geoRssWhere = $geoRssWhere;
00361                 break;
00362             default:
00363                 parent::takeChildFromDOM($child);
00364                 break;
00365 
00366         }
00367     }
00368 
00375     public function getGphotoAlbumId()
00376     {
00377         return $this->_gphotoAlbumId;
00378     }
00379 
00386     public function setGphotoAlbumId($value)
00387     {
00388         $this->_gphotoAlbumId = $value;
00389         return $this;
00390     }
00391 
00398     public function getGphotoId()
00399     {
00400         return $this->_gphotoId;
00401     }
00402 
00409     public function setGphotoId($value)
00410     {
00411         $this->_gphotoId = $value;
00412         return $this;
00413     }
00414 
00421     public function getGphotoVersion()
00422     {
00423         return $this->_gphotoVersion;
00424     }
00425 
00432     public function setGphotoVersion($value)
00433     {
00434         $this->_gphotoVersion = $value;
00435         return $this;
00436     }
00437 
00444     public function getGphotoWidth()
00445     {
00446         return $this->_gphotoWidth;
00447     }
00448 
00455     public function setGphotoWidth($value)
00456     {
00457         $this->_gphotoWidth = $value;
00458         return $this;
00459     }
00460 
00467     public function getGphotoHeight()
00468     {
00469         return $this->_gphotoHeight;
00470     }
00471 
00478     public function setGphotoHeight($value)
00479     {
00480         $this->_gphotoHeight = $value;
00481         return $this;
00482     }
00483 
00490     public function getGphotoSize()
00491     {
00492         return $this->_gphotoSize;
00493     }
00494 
00501     public function setGphotoSize($value)
00502     {
00503         $this->_gphotoSize = $value;
00504         return $this;
00505     }
00506 
00513     public function getGphotoClient()
00514     {
00515         return $this->_gphotoClient;
00516     }
00517 
00524     public function setGphotoClient($value)
00525     {
00526         $this->_gphotoClient = $value;
00527         return $this;
00528     }
00529 
00536     public function getGphotoChecksum()
00537     {
00538         return $this->_gphotoChecksum;
00539     }
00540 
00547     public function setGphotoChecksum($value)
00548     {
00549         $this->_gphotoChecksum = $value;
00550         return $this;
00551     }
00552 
00559     public function getGphotoTimestamp()
00560     {
00561         return $this->_gphotoTimestamp;
00562     }
00563 
00570     public function setGphotoTimestamp($value)
00571     {
00572         $this->_gphotoTimestamp = $value;
00573         return $this;
00574     }
00575 
00582     public function getGphotoCommentCount()
00583     {
00584         return $this->_gphotoCommentCount;
00585     }
00586 
00593     public function setGphotoCommentCount($value)
00594     {
00595         $this->_gphotoCommentCount = $value;
00596         return $this;
00597     }
00598 
00605     public function getGphotoCommentingEnabled()
00606     {
00607         return $this->_gphotoCommentingEnabled;
00608     }
00609 
00616     public function setGphotoCommentingEnabled($value)
00617     {
00618         $this->_gphotoCommentingEnabled = $value;
00619         return $this;
00620     }
00621 
00628     public function getExifTags()
00629     {
00630         return $this->_exifTags;
00631     }
00632 
00639     public function setExifTags($value)
00640     {
00641         $this->_exifTags = $value;
00642         return $this;
00643     }
00644 
00651     public function getGeoRssWhere()
00652     {
00653         return $this->_geoRssWhere;
00654     }
00655 
00662     public function setGeoRssWhere($value)
00663     {
00664         $this->_geoRssWhere = $value;
00665         return $this;
00666     }
00667 
00674     public function getMediaGroup()
00675     {
00676         return $this->_mediaGroup;
00677     }
00678 
00685     public function setMediaGroup($value)
00686     {
00687         $this->_mediaGroup = $value;
00688         return $this;
00689     }
00690 
00691 }
 All Data Structures Namespaces Files Functions Variables Enumerations