http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97996
Revision: 97996
Author: jeroendedauw
Date: 2011-09-24 12:24:05 +0000 (Sat, 24 Sep 2011)
Log Message:
-----------
clarified docs
Modified Paths:
--------------
trunk/extensions/Validator/includes/Validator.php
trunk/extensions/Validator/includes/criteria/CriterionInRange.php
Modified: trunk/extensions/Validator/includes/Validator.php
===================================================================
--- trunk/extensions/Validator/includes/Validator.php 2011-09-24 12:23:30 UTC
(rev 97995)
+++ trunk/extensions/Validator/includes/Validator.php 2011-09-24 12:24:05 UTC
(rev 97996)
@@ -250,11 +250,12 @@
break;
}
else {
+
$parameter->validate( $this->parameters );
foreach ( $parameter->getErrors() as $error ) {
$this->registerError( $error );
- }
+ }
if ( $parameter->hasFatalError() ) {
// If there was a fatal error, and the
parameter is required, stop processing.
@@ -299,7 +300,7 @@
// Loop over the parameters to handle to create a dependency
list.
foreach ( $this->paramsTohandle as $paramName ) {
$dependencies = array();
-
+
// Only include dependencies that are in the list of
parameters to handle.
foreach (
$this->parameters[$paramName]->getDependencies() as $dependency ) {
if ( in_array( $dependency,
$this->paramsTohandle ) ) {
Modified: trunk/extensions/Validator/includes/criteria/CriterionInRange.php
===================================================================
--- trunk/extensions/Validator/includes/criteria/CriterionInRange.php
2011-09-24 12:23:30 UTC (rev 97995)
+++ trunk/extensions/Validator/includes/criteria/CriterionInRange.php
2011-09-24 12:24:05 UTC (rev 97996)
@@ -14,7 +14,7 @@
class CriterionInRange extends ItemParameterCriterion {
/**
- * Lower bound of the range. Either a number or false, for no lower
limit.
+ * Lower bound of the range (included). Either a number or false, for
no lower limit.
*
* @since 0.4
*
@@ -23,7 +23,7 @@
protected $lowerBound;
/**
- * Upper bound of the range. Either a number or false, for no upper
limit.
+ * Upper bound of the range (included). Either a number or false, for
no upper limit.
*
* @since 0.4
*
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs