Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -40,12 +40,12 @@ |
41 | 41 | |
42 | 42 | // These constants allow modules to specify exactly how to treat incomming parameters. |
43 | 43 | |
44 | | - const PARAM_DFLT = 0; |
45 | | - const PARAM_ISMULTI = 1; |
46 | | - const PARAM_TYPE = 2; |
47 | | - const PARAM_MAX = 3; |
48 | | - const PARAM_MAX2 = 4; |
49 | | - const PARAM_MIN = 5; |
| 44 | + const PARAM_DFLT = 0; // Default value of the parameter |
| 45 | + const PARAM_ISMULTI = 1; // Boolean, do we accept more than one item for this parameters (ie: titles) |
| 46 | + const PARAM_TYPE = 2; // Can be either a string type (ie: 'integer') or an array of allowed values |
| 47 | + const PARAM_MAX = 3; // Max value allowed for a parameter |
| 48 | + const PARAM_MAX2 = 4; // Max value allowed for a parameter (similar to the upper limits below) |
| 49 | + const PARAM_MIN = 5; // Lowest value allowed for a parameter |
50 | 50 | const PARAM_ALLOW_DUPLICATES = 6; |
51 | 51 | |
52 | 52 | const LIMIT_BIG1 = 500; // Fast query, std user limit |