http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73928
Revision: 73928
Author: jeroendedauw
Date: 2010-09-28 22:19:20 +0000 (Tue, 28 Sep 2010)
Log Message:
-----------
Changes for 0.4 - Added method that allows for manipulation of parameter
defaults
Modified Paths:
--------------
trunk/extensions/Validator/includes/Parameter.php
Modified: trunk/extensions/Validator/includes/Parameter.php
===================================================================
--- trunk/extensions/Validator/includes/Parameter.php 2010-09-28 22:18:28 UTC
(rev 73927)
+++ trunk/extensions/Validator/includes/Parameter.php 2010-09-28 22:19:20 UTC
(rev 73928)
@@ -157,11 +157,20 @@
*
* @since 0.4
*
- * @param array of ValidationError
+ * @var array of ValidationError
*/
protected $errors = array();
/**
+ * Indicates if the parameter manipualations should be applied to the
default value.
+ *
+ * @since 0.4
+ *
+ * @var boolean
+ */
+ protected $applyManipulationsToDefault = false;
+
+ /**
* Returns a new instance of Parameter by converting a Validator
3.x-style parameter array definition.
* Note: this method is for backward compatibility and should not be
used in new code.
*
@@ -701,4 +710,15 @@
$this->default = $default;
}
+ /**
+ * Set if the parameter manipualations should be applied to the default
value.
+ *
+ * @since 0.4
+ *
+ * @param boolean $doOrDoNot
+ */
+ public function setDoManipulationOfDefault( $doOrDoNot ) {
+ $this->applyManipulationsToDefault = $doOrDoNot;
+ }
+
}
\ No newline at end of file
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs