[pLog-svn] r6622 - plog/branches/lifetype-1.2/class/action/admin
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat Jun 21 14:43:24 EDT 2008
Author: jondaley
Date: 2008-06-21 14:43:24 -0400 (Sat, 21 Jun 2008)
New Revision: 6622
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminaddarticlecategoryaction.class.php
plog/branches/lifetype-1.2/class/action/admin/adminaddblogcategoryaction.class.php
plog/branches/lifetype-1.2/class/action/admin/adminaddglobalarticlecategoryaction.class.php
plog/branches/lifetype-1.2/class/action/admin/adminupdatearticlecategoryaction.class.php
plog/branches/lifetype-1.2/class/action/admin/adminupdateblogcategoryaction.class.php
plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalarticlecategoryaction.class.php
Log:
description is optional
Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddarticlecategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddarticlecategoryaction.class.php 2008-06-21 18:41:40 UTC (rev 6621)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddarticlecategoryaction.class.php 2008-06-21 18:43:24 UTC (rev 6622)
@@ -31,7 +31,7 @@
// register two validators
$this->registerFieldValidator( "categoryName", new StringValidator());
- $this->registerFieldValidator( "categoryDescription", new StringValidator());
+ $this->registerFieldValidator( "categoryDescription", new StringValidator(), true );
$this->registerFieldValidator( "categoryInMainPage", new IntegerValidator(), true );
// and the view we should show in case there is a validation error
Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddblogcategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddblogcategoryaction.class.php 2008-06-21 18:41:40 UTC (rev 6621)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddblogcategoryaction.class.php 2008-06-21 18:43:24 UTC (rev 6622)
@@ -27,7 +27,7 @@
// register two validators
$this->registerFieldValidator( "categoryName", new StringValidator());
- $this->registerFieldValidator( "categoryDescription", new StringValidator());
+ $this->registerFieldValidator( "categoryDescription", new StringValidator(), true );
// and the view we should show in case there is a validation error
$errorView = new AdminTemplatedView( $this->_blogInfo, "newblogcategory" );
$errorView->setErrorMessage( $this->_locale->tr("error_adding_blog_category" ));
Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddglobalarticlecategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddglobalarticlecategoryaction.class.php 2008-06-21 18:41:40 UTC (rev 6621)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddglobalarticlecategoryaction.class.php 2008-06-21 18:43:24 UTC (rev 6622)
@@ -33,7 +33,7 @@
// register two validators
$this->registerFieldValidator( "categoryName", new StringValidator());
- $this->registerFieldValidator( "categoryDescription", new StringValidator());
+ $this->registerFieldValidator( "categoryDescription", new StringValidator(), true );
// and the view we should show in case there is a validation error
$errorView = new AdminTemplatedView( $this->_blogInfo, "newglobalarticlecategory" );
$errorView->setErrorMessage( $this->_locale->tr("error_adding_global_article_category" ));
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdatearticlecategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdatearticlecategoryaction.class.php 2008-06-21 18:41:40 UTC (rev 6621)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdatearticlecategoryaction.class.php 2008-06-21 18:43:24 UTC (rev 6622)
@@ -35,7 +35,7 @@
// data validation settings
$this->registerFieldValidator( "categoryName", new StringValidator());
$this->registerFieldValidator( "categoryId", new IntegerValidator());
- $this->registerFieldValidator( "categoryDescription", new StringValidator());
+ $this->registerFieldValidator( "categoryDescription", new StringValidator(), true );
$this->registerFieldValidator( "categoryInMainPage", new IntegerValidator(), true );
$errorView = new AdminTemplatedView( $this->_blogInfo, "editarticlecategory" );
$errorView->setErrorMessage( $this->_locale->tr("error_updating_article_category" ));
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdateblogcategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdateblogcategoryaction.class.php 2008-06-21 18:41:40 UTC (rev 6621)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdateblogcategoryaction.class.php 2008-06-21 18:43:24 UTC (rev 6622)
@@ -34,7 +34,7 @@
// data validation settings
$this->registerFieldValidator( "categoryName", new StringValidator());
$this->registerFieldValidator( "categoryId", new IntegerValidator());
- $this->registerFieldValidator( "categoryDescription", new StringValidator());
+ $this->registerFieldValidator( "categoryDescription", new StringValidator(), true );
$errorView = new AdminTemplatedView( $this->_blogInfo, "editblogcategory" );
$errorView->setErrorMessage( $this->_locale->tr("error_updating_article_category" ));
$this->setValidationErrorView( $errorView );
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalarticlecategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalarticlecategoryaction.class.php 2008-06-21 18:41:40 UTC (rev 6621)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalarticlecategoryaction.class.php 2008-06-21 18:43:24 UTC (rev 6622)
@@ -38,7 +38,7 @@
// data validation settings
$this->registerFieldValidator( "categoryName", new StringValidator());
$this->registerFieldValidator( "categoryId", new IntegerValidator());
- $this->registerFieldValidator( "categoryDescription", new StringValidator());
+ $this->registerFieldValidator( "categoryDescription", new StringValidator(), true );
$errorView = new AdminTemplatedView( $this->_blogInfo, "editglobalarticlecategory" );
$errorView->setErrorMessage( $this->_locale->tr("error_updating_article_category" ));
$this->setValidationErrorView( $errorView );
More information about the pLog-svn
mailing list