[pLog-svn] r4938 - plog/branches/lifetype-1.2/class/summary/view

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Mar 2 18:40:20 EST 2007


Author: jondaley
Date: 2007-03-02 18:40:20 -0500 (Fri, 02 Mar 2007)
New Revision: 4938

Modified:
   plog/branches/lifetype-1.2/class/summary/view/summarybloglistview.class.php
   plog/branches/lifetype-1.2/class/summary/view/summarycachedview.class.php
   plog/branches/lifetype-1.2/class/summary/view/summarypostlistview.class.php
   plog/branches/lifetype-1.2/class/summary/view/summaryview.class.php
Log:
I think the $url object should be available to all pages, instead of just some

Modified: plog/branches/lifetype-1.2/class/summary/view/summarybloglistview.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/summary/view/summarybloglistview.class.php	2007-03-02 23:39:43 UTC (rev 4937)
+++ plog/branches/lifetype-1.2/class/summary/view/summarybloglistview.class.php	2007-03-02 23:40:20 UTC (rev 4938)
@@ -6,7 +6,6 @@
     lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/summary/dao/summarystats.class.php" );
     lt_include( PLOG_CLASS_PATH."class/dao/blogcategories.class.php" ); 	
-	include_once( PLOG_CLASS_PATH."class/summary/net/summaryrequestgenerator.class.php" );    
 	
 	/**
 	 * shows a paged list of blogs
@@ -86,9 +85,6 @@
 			$this->setValue( "min", $min );
 			$this->setValue( "step", $step );
 
-			// summary request generator
-			$this->setValue( "url", new SummaryRequestGenerator());			
-		
 			// let the parent view do its job
 			parent::render();
 		}

Modified: plog/branches/lifetype-1.2/class/summary/view/summarycachedview.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/summary/view/summarycachedview.class.php	2007-03-02 23:39:43 UTC (rev 4937)
+++ plog/branches/lifetype-1.2/class/summary/view/summarycachedview.class.php	2007-03-02 23:40:20 UTC (rev 4938)
@@ -96,7 +96,11 @@
 			$this->_params->setValue( "locale", $this->_locale);
 			$this->_params->setValue( "rss", new RssParser());
 			$this->_params->setValue( "baseurl", $baseurl);
-			$this->_template->assign( $this->_params->getAsArray());
+
+            lt_include( PLOG_CLASS_PATH."class/summary/net/summaryrequestgenerator.class.php" );
+            $this->_params->setValue( "url", new SummaryRequestGenerator());
+
+            $this->_template->assign( $this->_params->getAsArray());
 			print $this->_template->fetch( $this->_viewId );
 		}
 

Modified: plog/branches/lifetype-1.2/class/summary/view/summarypostlistview.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/summary/view/summarypostlistview.class.php	2007-03-02 23:39:43 UTC (rev 4937)
+++ plog/branches/lifetype-1.2/class/summary/view/summarypostlistview.class.php	2007-03-02 23:40:20 UTC (rev 4938)
@@ -6,7 +6,6 @@
     lt_include( PLOG_CLASS_PATH."class/data/pager/pager.class.php" );
     lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/summary/dao/summarystats.class.php" );
-	include_once( PLOG_CLASS_PATH."class/summary/net/summaryrequestgenerator.class.php" );	
 	
 	/**
 	 * shows a paged list of blogs
@@ -88,8 +87,6 @@
 			$this->setValue( "min", $min );
 			$this->setValue( "step", $step );
 					
-			$this->setValue( "url", new SummaryRequestGenerator());
-			
 			// let the parent view do its job
 			parent::render();
 		}

Modified: plog/branches/lifetype-1.2/class/summary/view/summaryview.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/summary/view/summaryview.class.php	2007-03-02 23:39:43 UTC (rev 4937)
+++ plog/branches/lifetype-1.2/class/summary/view/summaryview.class.php	2007-03-02 23:40:20 UTC (rev 4938)
@@ -53,6 +53,9 @@
             $this->_params->setValue( "locale", $this->_locale );
 			$this->_params->setValue( "baseurl", $baseurl);
 			$this->_params->setValue( "serviceName", $config->getValue( "summary_service_name" ));			
+            lt_include( PLOG_CLASS_PATH."class/summary/net/summaryrequestgenerator.class.php" );
+            $this->_params->setValue( "url", new SummaryRequestGenerator());
+
             $template->assign( $this->_params->getAsArray());
             print $template->fetch();
         }



More information about the pLog-svn mailing list