[pLog-svn] r6593 - plog/branches/lifetype-1.2/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Thu Jun 19 12:08:37 EDT 2008
Author: mark
Date: 2008-06-19 12:08:36 -0400 (Thu, 19 Jun 2008)
New Revision: 6593
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminblogcategoriesaction.class.php
Log:
Add validator for searchTerms.
Modified: plog/branches/lifetype-1.2/class/action/admin/adminblogcategoriesaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminblogcategoriesaction.class.php 2008-06-19 15:39:16 UTC (rev 6592)
+++ plog/branches/lifetype-1.2/class/action/admin/adminblogcategoriesaction.class.php 2008-06-19 16:08:36 UTC (rev 6593)
@@ -1,7 +1,8 @@
<?php
lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
- lt_include( PLOG_CLASS_PATH."class/view/admin/adminblogcategorieslistview.class.php" );
+ lt_include( PLOG_CLASS_PATH."class/view/admin/adminblogcategorieslistview.class.php" );
+ lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
lt_include( PLOG_CLASS_PATH."class/data/filter/htmlfilter.class.php" );
class AdminBlogCategoriesAction extends AdminAction
@@ -9,7 +10,10 @@
function AdminBlogCategoriesAction( $actionInfo, $request )
{
- $this->AdminAction( $actionInfo, $request );
+ $this->AdminAction( $actionInfo, $request );
+
+ $this->registerFieldValidator( "searchTerms", new StringValidator(), true);
+ $this->setValidationErrorView( new AdminBlogCategoriesListView( $this->_blogInfo ) );
$this->requireAdminPermission( "view_blog_categories" );
}
More information about the pLog-svn
mailing list