[pLog-svn] r3156 - plog/trunk/class/gallery/dao

mark at devel.lifetype.net mark at devel.lifetype.net
Wed Mar 29 17:25:55 GMT 2006


Author: mark
Date: 2006-03-29 17:25:55 +0000 (Wed, 29 Mar 2006)
New Revision: 3156

Modified:
   plog/trunk/class/gallery/dao/galleryresource.class.php
Log:
Add a new method getBlogInfo() to gallery resource. It will eaiser for us to get blogInfo if you only has resource object.

Modified: plog/trunk/class/gallery/dao/galleryresource.class.php
===================================================================
--- plog/trunk/class/gallery/dao/galleryresource.class.php	2006-03-29 17:21:42 UTC (rev 3155)
+++ plog/trunk/class/gallery/dao/galleryresource.class.php	2006-03-29 17:25:55 UTC (rev 3156)
@@ -111,6 +111,17 @@
         }
 
 		/**
+		 * @return the bloginfo of the owner of this resource
+		 */        
+        function getBlogInfo()
+        {
+    		include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
+    		$blogs = new Blogs();
+    		$blogInfo = $blogs->getBlogInfo( $this->_ownerId );
+        	return $blogInfo;
+        }
+
+		/**
 		 * @return returns the identifier of the GalleryAlbum object to which this resource belongs
 		 */
         function getAlbumId()



More information about the pLog-svn mailing list