[pLog-svn] r6252 - plog/branches/lifetype-1.2/class/gallery/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri Mar 21 14:30:44 EDT 2008
Author: jondaley
Date: 2008-03-21 14:30:44 -0400 (Fri, 21 Mar 2008)
New Revision: 6252
Modified:
plog/branches/lifetype-1.2/class/gallery/dao/galleryresource.class.php
Log:
only include stuff when we need it
Modified: plog/branches/lifetype-1.2/class/gallery/dao/galleryresource.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/gallery/dao/galleryresource.class.php 2008-03-21 18:30:22 UTC (rev 6251)
+++ plog/branches/lifetype-1.2/class/gallery/dao/galleryresource.class.php 2008-03-21 18:30:44 UTC (rev 6252)
@@ -348,25 +348,26 @@
*/
function getMetadataReader()
{
- lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourceimagemetadatareader.class.php" );
- lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcesoundmetadatareader.class.php" );
- lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcevideometadatareader.class.php" );
- lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcezipmetadatareader.class.php" );
switch( $this->getResourceType()) {
case GALLERY_RESOURCE_IMAGE:
+ lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourceimagemetadatareader.class.php" );
$reader = new GalleryResourceImageMetadataReader( $this );
break;
case GALLERY_RESOURCE_SOUND:
+ lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcesoundmetadatareader.class.php" );
$reader = new GalleryResourceSoundMetadataReader( $this );
break;
case GALLERY_RESOURCE_VIDEO:
+ lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcevideometadatareader.class.php" );
$reader = new GalleryResourceVideoMetadataReader( $this );
break;
case GALLERY_RESOURCE_ZIP:
+ lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcezipmetadatareader.class.php" );
$reader = new GalleryResourceZipMetadataReader( $this );
break;
default:
+ lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcebasemetadatareader.class.php" );
$reader = new GalleryResourceBaseMetadataReader( $this );
break;
}
More information about the pLog-svn
mailing list