[pLog-svn] r3524 - in plugins/trunk/mobile/class: action view

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sat Jun 3 22:38:20 GMT 2006


Author: oscar
Date: 2006-06-03 22:38:20 +0000 (Sat, 03 Jun 2006)
New Revision: 3524

Modified:
   plugins/trunk/mobile/class/action/mobileaction.class.php
   plugins/trunk/mobile/class/view/mobiledefaultview.class.php
   plugins/trunk/mobile/class/view/mobileview.class.php
Log:
updated plugin for 1.1


Modified: plugins/trunk/mobile/class/action/mobileaction.class.php
===================================================================
--- plugins/trunk/mobile/class/action/mobileaction.class.php	2006-06-03 22:28:50 UTC (rev 3523)
+++ plugins/trunk/mobile/class/action/mobileaction.class.php	2006-06-03 22:38:20 UTC (rev 3524)
@@ -35,6 +35,7 @@
          */
         function _getBlogInfo()
         {
+			include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
             $blogId = $this->_request->getValue( "blogId" );
             $val = new IntegerValidator();
             if( !$val->validate( $blogId )) {

Modified: plugins/trunk/mobile/class/view/mobiledefaultview.class.php
===================================================================
--- plugins/trunk/mobile/class/view/mobiledefaultview.class.php	2006-06-03 22:28:50 UTC (rev 3523)
+++ plugins/trunk/mobile/class/view/mobiledefaultview.class.php	2006-06-03 22:38:20 UTC (rev 3524)
@@ -30,16 +30,14 @@
                                                         "",
                                                         $this->_page );
             // number of articles
-            $numPosts = $articles->getNumBlogArticles( $this->_blogInfo->getId(),
-                                                        -1,
-                                                        $this->_tInfo->getNumItemsPerPage(),
-                                                        -1,
-                                                        POST_STATUS_PUBLISHED,
-                                                        0,
-                                                        0,
-                                                        "",
-                                                        $this->_page );       
-            
+            $numPosts = $articles->getNumBlogArticles( $this->_blogInfo->getId(), // blog id
+                                                        -1, // date
+                                                        0, // category id
+                                                        POST_STATUS_PUBLISHED, // status
+                                                        0, // user id
+                                                        0, // max date
+                                                        "" ); // search terms
+
             // pass them to the template
             $this->setValue( "posts", $blogArticles );
             

Modified: plugins/trunk/mobile/class/view/mobileview.class.php
===================================================================
--- plugins/trunk/mobile/class/view/mobileview.class.php	2006-06-03 22:28:50 UTC (rev 3523)
+++ plugins/trunk/mobile/class/view/mobileview.class.php	2006-06-03 22:38:20 UTC (rev 3524)
@@ -2,6 +2,7 @@
 
     include_once( PLOG_CLASS_PATH."class/view/plugintemplatedview.class.php" );
     include_once( MOBILE_PLOG_CLASS_PATH."class/net/terminalidentifier.class.php" );
+	include_once( PLOG_CLASS_PATH."class/data/timestamp.class.php" );
     
     class MobileView extends PluginTemplatedView
     {
@@ -17,7 +18,7 @@
             $this->PluginTemplatedView( $blogInfo, 
                                         "mobile",
                                         $terminalTemplate, 
-                                        SMARTY_VIEW_CACHED_DISABLED );
+                                        SMARTY_VIEW_CACHE_DISABLED );
                                         
             // set the response type
             $this->setContentType( $this->_tInfo->getContentType());



More information about the pLog-svn mailing list