webservice MDL-21510 added three defines for the description of ws optional value:

VALUE_REQUIRED - if the parameter is not supplied, there is an error
VALUE_OPTIONAL - if the parameter is not supplied, then the param has no value
VALUE_DEFAULT - if the parameter is not supplied, then the default value is used
This commit is contained in:
jerome mouneyrac
2010-02-05 02:58:24 +00:00
parent 2e08c9822b
commit 382b9ceab3
4 changed files with 59 additions and 9 deletions
+15
View File
@@ -264,7 +264,22 @@ define('PARAM_MULTILANG', 'text');
*/
define('PARAM_CLEANFILE', 'file');
/// Web Services ///
/**
* VALUE_REQUIRED - if the parameter is not supplied, there is an error
*/
define('VALUE_REQUIRED', 1);
/**
* VALUE_OPTIONAL - if the parameter is not supplied, then the param has no value
*/
define('VALUE_OPTIONAL', 2);
/**
* VALUE_DEFAULT - if the parameter is not supplied, then the default value is used
*/
define('VALUE_DEFAULT', 0);
/// Page types ///