[pLog-svn] r6621 - plog/branches/lifetype-1.2/class/action/admin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Jun 21 14:41:40 EDT 2008


Author: jondaley
Date: 2008-06-21 14:41:40 -0400 (Sat, 21 Jun 2008)
New Revision: 6621

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminaddarticlecategoryajaxaction.class.php
   plog/branches/lifetype-1.2/class/action/admin/adminpostmanagementcommonaction.class.php
Log:
removed unused variables

Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddarticlecategoryajaxaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddarticlecategoryajaxaction.class.php	2008-06-21 16:33:31 UTC (rev 6620)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddarticlecategoryajaxaction.class.php	2008-06-21 18:41:40 UTC (rev 6621)
@@ -17,8 +17,6 @@
 	{
 
     	var $_categoryName;
-		var $_categoryDescription;
-		var $_categoryInMainPage;
 
     	/**
          * Constructor. If nothing else, it also has to call the constructor of the parent
@@ -26,13 +24,11 @@
          */
         function AdminAddArticleCategoryAjaxAction( $actionInfo, $request )
         {
-        	$this->AdminAction( $actionInfo, $request );
+        	$this->AdminAction( $actionInfo, $request );
+
+                // register two validators
+            $this->registerFieldValidator( "categoryName", new StringValidator());
 
-        	// register two validators
-			$this->registerFieldValidator( "categoryName", new StringValidator());
-			$this->registerFieldValidator( "categoryDescription", new StringValidator());
-			$this->registerFieldValidator( "categoryInMainPage", new IntegerValidator(), true );
-
 	        $view = new AdminXmlView( $this->_blogInfo, "response" );				
 	        $view->setValue( "method", "addCategoryAjax" );
             $view->setValue( "success", "0" );
@@ -48,18 +44,16 @@
          */
         function perform()
         {
-            // fetch the input values
-        	$this->_categoryName     = Textfilter::filterAllHTML($this->_request->getValue( "categoryName" ));
-            $this->_categoryInMainPage = 1;
-			$this->_categoryDescription = $this->_categoryName;
-        	
-        	// create the object...
+            // fetch the input values
+        	$this->_categoryName     = Textfilter::filterAllHTML($this->_request->getValue( "categoryName" ));
+
+                // create the object...
             $categories = new ArticleCategories();
             $category   = new ArticleCategory( $this->_categoryName,
                                                "",
                                                $this->_blogInfo->getId(),
-                                               $this->_categoryInMainPage,
-											   $this->_categoryDescription,
+                                               1,
+											   $this->_categoryName,
 											   0,
 											   Array() );
 											   

Modified: plog/branches/lifetype-1.2/class/action/admin/adminpostmanagementcommonaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminpostmanagementcommonaction.class.php	2008-06-21 16:33:31 UTC (rev 6620)
+++ plog/branches/lifetype-1.2/class/action/admin/adminpostmanagementcommonaction.class.php	2008-06-21 18:41:40 UTC (rev 6621)
@@ -57,8 +57,6 @@
         	$this->registerFieldValidator( "postId", new IntegerValidator(), true );
         	$this->registerFieldValidator( "globalArticleCategoryId", new IntegerValidator(), true );
         	$this->registerFieldValidator( "postDateTime", new DateTimeValidator( '%j/%m/%Y %G:%i' ) );
-        	
-        	// these fields do not need to be validated but should be there when we show the view once again
         	$this->registerFieldValidator( "postSlug", new StringValidator(), true );
         	$this->registerFieldValidator( "postStatus", new IntegerValidator(), true );
         	$this->registerFieldValidator( "sendNotification", new IntegerValidator(), true );
@@ -153,7 +151,6 @@
 			}	
         	$this->_postText = trim(Textfilter::xhtmlize( $this->_postText ));
             $this->_postTopic    = trim(Textfilter::xhtmlize(Textfilter::filterAllHTML($this->_request->getValue( "postTopic" ))));
-			$this->_posterId = $this->_request->getValue( "posterId" );
             $this->_postCategories = $this->_request->getValue( "postCategories" );
 			$this->_postSlug = Textfilter::filterAllHTML($this->_request->getValue( "postSlug" ));
             $this->_postStatus   = $this->_request->getValue( "postStatus" );



More information about the pLog-svn mailing list