[pLog-svn] r5131 - in plugins/branches/lifetype-1.2: akismet hiddeninput recentcomments tagcloud

Oscar Renalias oscar at renalias.net
Mon Mar 19 03:13:15 EDT 2007


It's just so that the "global plugin settings" does not report  
validation errors when submitting it, in case the administrator did  
not fill in all fields.

On 19 Mar 2007, at 02:10, Jon Daley wrote:

>  	I don't understand what it means to be empty in some of these
> cases.  The plugin will then use its default value if the person  
> erases
> the value from the field?  Or will it stay empty?
>
> On Sun, 18 Mar 2007, oscar at devel.lifetype.net wrote:
>
>> Author: oscar
>> Date: 2007-03-18 14:22:23 -0400 (Sun, 18 Mar 2007)
>> New Revision: 5131
>>
>> Modified:
>>   plugins/branches/lifetype-1.2/akismet/pluginakismet.class.php
>>   plugins/branches/lifetype-1.2/hiddeninput/ 
>> pluginhiddeninput.class.php
>>   plugins/branches/lifetype-1.2/recentcomments/ 
>> pluginrecentcomments.class.php
>>   plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php
>> Log:
>> added allowEmpty to some plugins
>>
>>
>> Modified: plugins/branches/lifetype-1.2/akismet/ 
>> pluginakismet.class.php
>> ===================================================================
>> --- plugins/branches/lifetype-1.2/akismet/pluginakismet.class.php	 
>> 2007-03-18 18:18:48 UTC (rev 5130)
>> +++ plugins/branches/lifetype-1.2/akismet/pluginakismet.class.php	 
>> 2007-03-18 18:22:23 UTC (rev 5131)
>> @@ -77,7 +77,7 @@
>>
>> 			return( Array(
>> 				Array( "name" => "plugin_akismet_enabled", "type" => "boolean" ),
>> -				Array( "name" => "plugin_akismet_api_key", "validator" => new  
>> StringValidator(), "type" => "string" ),
>> +				Array( "name" => "plugin_akismet_api_key", "validator" => new  
>> StringValidator(), "type" => "string", "allowEmpty" => true ),
>> 			));
>> 		}
>>
>>
>> Modified: plugins/branches/lifetype-1.2/hiddeninput/ 
>> pluginhiddeninput.class.php
>> ===================================================================
>> --- plugins/branches/lifetype-1.2/hiddeninput/ 
>> pluginhiddeninput.class.php	2007-03-18 18:18:48 UTC (rev 5130)
>> +++ plugins/branches/lifetype-1.2/hiddeninput/ 
>> pluginhiddeninput.class.php	2007-03-18 18:22:23 UTC (rev 5131)
>> @@ -92,10 +92,10 @@
>>                               "type" => "boolean"),
>>                         Array("name" =>  
>> "plugin_hiddeninput_hiddenfields",
>>                               "validator" => new StringValidator(),
>> -                              "type" => "string"),
>> +                              "type" => "string", "allowEmpty" =>  
>> true ),
>>                         Array("name" =>  
>> "plugin_hiddeninput_emptyfields",
>>                               "validator" => new StringValidator(),
>> -                              "type" => "string"),
>> +                              "type" => "string", "allowEmpty" =>  
>> true ),
>>                         ));
>>         }
>>     }
>>
>> Modified: plugins/branches/lifetype-1.2/recentcomments/ 
>> pluginrecentcomments.class.php
>> ===================================================================
>> --- plugins/branches/lifetype-1.2/recentcomments/ 
>> pluginrecentcomments.class.php	2007-03-18 18:18:48 UTC (rev 5130)
>> +++ plugins/branches/lifetype-1.2/recentcomments/ 
>> pluginrecentcomments.class.php	2007-03-18 18:22:23 UTC (rev 5131)
>> @@ -126,7 +126,7 @@
>>                               "type" => "boolean"),
>>                         Array("name" =>  
>> "plugin_recentcomments_maxcomments",
>>                               "validator" => new IntegerValidator(),
>> -                              "type" => "integer"),
>> +                              "type" => "integer", "allowEmpty"  
>> => true ),
>>                         ));
>>         }
>>
>>
>> Modified: plugins/branches/lifetype-1.2/tagcloud/ 
>> plugintagcloud.class.php
>> ===================================================================
>> --- plugins/branches/lifetype-1.2/tagcloud/ 
>> plugintagcloud.class.php	2007-03-18 18:18:48 UTC (rev 5130)
>> +++ plugins/branches/lifetype-1.2/tagcloud/ 
>> plugintagcloud.class.php	2007-03-18 18:22:23 UTC (rev 5131)
>> @@ -245,21 +245,21 @@
>>         return( Array(
>>                     Array( "name" => "plugin_tagcloud_enabled",  
>> "type" => "boolean" ),
>>                     Array( "name" => "plugin_tagcloud_max_articles",
>> -                           "validator" => new IntegerValidator(),  
>> "type" => "integer" ),
>> +                           "validator" => new IntegerValidator(),  
>> "type" => "integer", "allowEmpty" => true ),
>>                     Array( "name" => "plugin_tagcloud_max_keywords",
>> -                           "validator" => new IntegerValidator(),  
>> "type" => "integer" ),
>> +                           "validator" => new IntegerValidator(),  
>> "type" => "integer", "allowEmpty" => true ),
>>                     Array( "name" => "plugin_tagcloud_min_size",
>> -                           "validator" => new FloatValidator(),  
>> "type" => "integer" ),
>> +                           "validator" => new FloatValidator(),  
>> "type" => "integer", "allowEmpty" => true ),
>>                     Array( "name" => "plugin_tagcloud_max_size",
>> -                           "validator" => new FloatValidator(),  
>> "type" => "integer" ),
>> +                           "validator" => new FloatValidator(),  
>> "type" => "integer", "allowEmpty" => true ),
>>                     Array( "name" => "plugin_tagcloud_min_weight",
>> -                           "validator" => new IntegerValidator(),  
>> "type" => "integer" ),
>> +                           "validator" => new IntegerValidator(),  
>> "type" => "integer", "allowEmpty" => true ),
>>                     Array( "name" => "plugin_tagcloud_max_weight",
>> -                           "validator" => new IntegerValidator(),  
>> "type" => "integer" ),
>> +                           "validator" => new IntegerValidator(),  
>> "type" => "integer", "allowEmpty" => true ),
>>                     Array( "name" =>  
>> "plugin_tagcloud_min_word_length",
>> -                           "validator" => new IntegerValidator(),  
>> "type" => "integer" ),
>> +                           "validator" => new IntegerValidator(),  
>> "type" => "integer", "allowEmpty" => true ),
>>                     Array( "name" =>  
>> "plugin_tagcloud_banned_keywords",
>> -                           "validator" => new StringValidator(),  
>> "type" => "string" ),
>> +                           "validator" => new StringValidator(),  
>> "type" => "string", "allowEmpty" => true ),
>>                     ));
>>     }
>>
>>
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://limedaley.com/mailman/listinfo/plog-svn
>>
>
> -- 
> Jon Daley
> http://jon.limedaley.com/
>
> Our software is not 'released'.
> It *escapes*, leaving a trail of mangled QA engineers in its path.
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>



More information about the pLog-svn mailing list