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:
@@ -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 ///
|
||||
|
||||
Reference in New Issue
Block a user