mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSformRules: configure CLI parameters autocompleters
This commit is contained in:
parent
f635ad609a
commit
a7356f5e67
17 changed files with 100 additions and 0 deletions
|
@ -27,6 +27,11 @@
|
|||
*/
|
||||
class LSformRule_alphanumeric extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'withAccents' => array('LScli', 'autocomplete_bool'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,11 @@
|
|||
*/
|
||||
class LSformRule_callable extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'callable' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
* Check the value using the callable object
|
||||
*
|
||||
|
|
|
@ -27,6 +27,11 @@
|
|||
*/
|
||||
class LSformRule_compare extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'operator' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
* Retourne l'operateur de comparaison.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,12 @@
|
|||
*/
|
||||
class LSformRule_date extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'format' => null,
|
||||
'special_values' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
* Validation de données
|
||||
*
|
||||
|
|
|
@ -27,6 +27,11 @@
|
|||
*/
|
||||
class LSformRule_differentPassword extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'otherPasswordAttributes' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
* Check the value
|
||||
*
|
||||
|
|
|
@ -27,6 +27,12 @@
|
|||
*/
|
||||
class LSformRule_email extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'domain' => null,
|
||||
'checkDomain' => array('LScli', 'autocomplete_bool'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,12 @@
|
|||
*/
|
||||
class LSformRule_filesize extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'minSize' => array('LScli', 'autocomplete_int'),
|
||||
'maxSize' => array('LScli', 'autocomplete_int'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,14 @@
|
|||
*/
|
||||
class LSformRule_imagesize extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'minWidth' => array('LScli', 'autocomplete_int'),
|
||||
'maxWitdh' => array('LScli', 'autocomplete_int'),
|
||||
'minHeight' => array('LScli', 'autocomplete_int'),
|
||||
'maxHeight' => array('LScli', 'autocomplete_int'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,11 @@
|
|||
*/
|
||||
class LSformRule_inarray extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'possible_values' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,14 @@
|
|||
*/
|
||||
class LSformRule_integer extends LSformRule{
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'positive' => array('LScli', 'autocomplete_bool'),
|
||||
'negative' => array('LScli', 'autocomplete_bool'),
|
||||
'minHeight' => array('LScli', 'autocomplete_int'),
|
||||
'maxHeight' => array('LScli', 'autocomplete_int'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Verification value.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,11 @@
|
|||
*/
|
||||
class LSformRule_maxlength extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'limit' => array('LScli', 'autocomplete_int'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,12 @@
|
|||
*/
|
||||
class LSformRule_mimetype extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'mimeType' => null,
|
||||
'mimeTypeRegEx' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,11 @@
|
|||
*/
|
||||
class LSformRule_minlength extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'limit' => array('LScli', 'autocomplete_int'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -30,6 +30,12 @@ class LSformRule_numberOfValues extends LSformRule {
|
|||
// Validate values one by one or all together
|
||||
const validate_one_by_one = False;
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'min' => array('LScli', 'autocomplete_int'),
|
||||
'max' => array('LScli', 'autocomplete_int'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Validate value
|
||||
*
|
||||
|
|
|
@ -27,6 +27,15 @@
|
|||
*/
|
||||
class LSformRule_password extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'minlength' => array('LScli', 'autocomplete_int'),
|
||||
'maxlength' => array('LScli', 'autocomplete_int'),
|
||||
'prohibitedValues' => null,
|
||||
'regex' => null,
|
||||
'minValidRegex' => array('LScli', 'autocomplete_int'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,11 @@
|
|||
*/
|
||||
class LSformRule_rangelength extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'limits' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,11 @@
|
|||
*/
|
||||
class LSformRule_regex extends LSformRule {
|
||||
|
||||
// CLI parameters autocompleters
|
||||
protected static $cli_params_autocompleters = array(
|
||||
'regex' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
* Vérification de la valeur.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue