1
0
Fork 0
mirror of https://gitlab.easter-eggs.com/ee/ldapsaisie.git synced 2024-12-23 17:03:47 +01:00

Rollback class properties typing to restore PHP < 7.4 support

This commit is contained in:
Benjamin Renard 2023-01-03 12:51:45 +01:00
parent 56e17a40f6
commit d7ba794839
117 changed files with 223 additions and 223 deletions
src/includes/class
class.LSattr_html.phpclass.LSattr_html_boolean.phpclass.LSattr_html_date.phpclass.LSattr_html_image.phpclass.LSattr_html_jsonCompositeAttribute.phpclass.LSattr_html_labeledValue.phpclass.LSattr_html_mail.phpclass.LSattr_html_mailQuota.phpclass.LSattr_html_maildir.phpclass.LSattr_html_password.phpclass.LSattr_html_postaladdress.phpclass.LSattr_html_pre.phpclass.LSattr_html_quota.phpclass.LSattr_html_rss.phpclass.LSattr_html_sambaAcctFlags.phpclass.LSattr_html_select_box.phpclass.LSattr_html_select_list.phpclass.LSattr_html_select_object.phpclass.LSattr_html_ssh_key.phpclass.LSattr_html_supannActivite.phpclass.LSattr_html_supannAdressePostalePrivee.phpclass.LSattr_html_supannCodePopulation.phpclass.LSattr_html_supannEmpCorps.phpclass.LSattr_html_supannEmpProfil.phpclass.LSattr_html_supannEtablissement.phpclass.LSattr_html_supannEtuDiplome.phpclass.LSattr_html_supannEtuElementPedagogique.phpclass.LSattr_html_supannEtuEtape.phpclass.LSattr_html_supannEtuInscription.phpclass.LSattr_html_supannEtuRegimeInscription.phpclass.LSattr_html_supannEtuSecteurDisciplinaire.phpclass.LSattr_html_supannEtuTypeDiplome.phpclass.LSattr_html_supannExtProfil.phpclass.LSattr_html_supannLabeledValue.phpclass.LSattr_html_supannMailPrive.phpclass.LSattr_html_supannRessourceEtat.phpclass.LSattr_html_supannRessourceEtatDate.phpclass.LSattr_html_supannRoleEntite.phpclass.LSattr_html_supannRoleGenerique.phpclass.LSattr_html_supannTelephonePrive.phpclass.LSattr_html_supannTypeEntite.phpclass.LSattr_html_tel.phpclass.LSattr_html_text.phpclass.LSattr_html_textarea.phpclass.LSattr_html_url.phpclass.LSattr_html_valueWithUnit.phpclass.LSattr_html_wysiwyg.phpclass.LSattr_html_xmpp.phpclass.LSattr_ldap.phpclass.LSattr_ldap_password.phpclass.LSattribute.phpclass.LScli.phpclass.LSform.phpclass.LSformElement.phpclass.LSformElement_boolean.phpclass.LSformElement_date.phpclass.LSformElement_image.phpclass.LSformElement_jsonCompositeAttribute.phpclass.LSformElement_labeledValue.phpclass.LSformElement_mail.phpclass.LSformElement_mailQuota.phpclass.LSformElement_maildir.phpclass.LSformElement_password.phpclass.LSformElement_postaladdress.phpclass.LSformElement_pre.phpclass.LSformElement_quota.phpclass.LSformElement_rss.phpclass.LSformElement_select.phpclass.LSformElement_select_box.phpclass.LSformElement_select_object.phpclass.LSformElement_ssh_key.phpclass.LSformElement_supannCompositeAttribute.phpclass.LSformElement_supannLabeledValue.phpclass.LSformElement_tel.phpclass.LSformElement_text.phpclass.LSformElement_textarea.phpclass.LSformElement_url.phpclass.LSformElement_valueWithUnit.phpclass.LSformElement_wysiwyg.phpclass.LSformElement_xmpp.phpclass.LSformRule.phpclass.LSformRule_alphanumeric.phpclass.LSformRule_callable.phpclass.LSformRule_compare.phpclass.LSformRule_date.phpclass.LSformRule_differentPassword.phpclass.LSformRule_email.phpclass.LSformRule_filesize.phpclass.LSformRule_imagesize.phpclass.LSformRule_inarray.phpclass.LSformRule_integer.phpclass.LSformRule_ldapSearchURI.phpclass.LSformRule_maxlength.phpclass.LSformRule_mimetype.phpclass.LSformRule_minlength.phpclass.LSformRule_numberOfValues.phpclass.LSformRule_password.phpclass.LSformRule_rangelength.phpclass.LSformRule_regex.phpclass.LSformRule_zxcvbn.php

View file

@ -33,26 +33,26 @@ class LSattr_html extends LSlog_staticLoggerClass {
* The attribute name * The attribute name
* @var string * @var string
*/ */
var string $name; var $name;
/** /**
* Attribute configuration (LSobjects.<type>.attrs.<attr_name>) * Attribute configuration (LSobjects.<type>.attrs.<attr_name>)
* @var array<string,mixed> * @var array<string,mixed>
*/ */
var array $config; var $config;
/** /**
* The reference of the parent LSattribute object * The reference of the parent LSattribute object
* @var LSattribute * @var LSattribute
*/ */
var LSattribute $attribute; var $attribute;
/** /**
* The corresponding LSformElement object type * The corresponding LSformElement object type
* Note: Must be set in implemented classes * Note: Must be set in implemented classes
* @var string * @var string
*/ */
var string $LSformElement_type = ''; var $LSformElement_type = '';
/** /**
* If true, this LSattr_html type is considered as able to only support * If true, this LSattr_html type is considered as able to only support
@ -61,7 +61,7 @@ class LSattr_html extends LSlog_staticLoggerClass {
* triggered. * triggered.
* @var bool * @var bool
*/ */
protected bool $singleValue = false; protected $singleValue = false;
/** /**
* Constructeur * Constructeur

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_boolean extends LSattr_html { class LSattr_html_boolean extends LSattr_html {
var string $LSformElement_type = 'boolean'; var $LSformElement_type = 'boolean';
} }

View file

@ -27,7 +27,7 @@
*/ */
class LSattr_html_date extends LSattr_html { class LSattr_html_date extends LSattr_html {
var string $LSformElement_type = 'date'; var $LSformElement_type = 'date';
/** /**
* Ajoute l'attribut au formualaire passer en paramètre * Ajoute l'attribut au formualaire passer en paramètre

View file

@ -27,7 +27,7 @@
*/ */
class LSattr_html_image extends LSattr_html { class LSattr_html_image extends LSattr_html {
var string $LSformElement_type = 'image'; var $LSformElement_type = 'image';
protected bool $singleValue = true; protected $singleValue = true;
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_jsonCompositeAttribute extends LSattr_html { class LSattr_html_jsonCompositeAttribute extends LSattr_html {
var string $LSformElement_type = 'jsonCompositeAttribute'; var $LSformElement_type = 'jsonCompositeAttribute';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_labeledValue extends LSattr_html { class LSattr_html_labeledValue extends LSattr_html {
var string $LSformElement_type = 'labeledValue'; var $LSformElement_type = 'labeledValue';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_mail extends LSattr_html { class LSattr_html_mail extends LSattr_html {
var string $LSformElement_type = 'mail'; var $LSformElement_type = 'mail';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_mailQuota extends LSattr_html { class LSattr_html_mailQuota extends LSattr_html {
var string $LSformElement_type = 'mailQuota'; var $LSformElement_type = 'mailQuota';
} }

View file

@ -29,7 +29,7 @@ LSsession :: loadLSaddon('maildir');
*/ */
class LSattr_html_maildir extends LSattr_html { class LSattr_html_maildir extends LSattr_html {
var string $LSformElement_type = 'maildir'; var $LSformElement_type = 'maildir';
/** /**
* Registered actions to do on object events * Registered actions to do on object events

View file

@ -27,7 +27,7 @@
*/ */
class LSattr_html_password extends LSattr_html { class LSattr_html_password extends LSattr_html {
var string $LSformElement_type = 'password'; var $LSformElement_type = 'password';
protected bool $singleValue = true; protected $singleValue = true;
} }

View file

@ -29,6 +29,6 @@ LSsession :: loadLSclass('LSattr_html_textarea');
*/ */
class LSattr_html_postaladdress extends LSattr_html_textarea { class LSattr_html_postaladdress extends LSattr_html_textarea {
var string $LSformElement_type = 'postaladdress'; var $LSformElement_type = 'postaladdress';
} }

View file

@ -29,6 +29,6 @@ LSsession :: loadLSclass('LSattr_html_textarea');
*/ */
class LSattr_html_pre extends LSattr_html_textarea { class LSattr_html_pre extends LSattr_html_textarea {
var string $LSformElement_type = 'pre'; var $LSformElement_type = 'pre';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_quota extends LSattr_html { class LSattr_html_quota extends LSattr_html {
var string $LSformElement_type = 'quota'; var $LSformElement_type = 'quota';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_rss extends LSattr_html { class LSattr_html_rss extends LSattr_html {
var string $LSformElement_type = 'rss'; var $LSformElement_type = 'rss';
} }

View file

@ -27,7 +27,7 @@ LSsession :: loadLSclass('LSattr_html_select_box');
*/ */
class LSattr_html_sambaAcctFlags extends LSattr_html_select_box { class LSattr_html_sambaAcctFlags extends LSattr_html_select_box {
var string $LSformElement_type = 'sambaAcctFlags'; var $LSformElement_type = 'sambaAcctFlags';
/** /**
* Retourne un tableau des valeurs possibles de la liste * Retourne un tableau des valeurs possibles de la liste

View file

@ -33,6 +33,6 @@ LSsession :: loadLSclass('LSattr_html_select_list');
*/ */
class LSattr_html_select_box extends LSattr_html_select_list { class LSattr_html_select_box extends LSattr_html_select_list {
var string $LSformElement_type = 'select_box'; var $LSformElement_type = 'select_box';
} }

View file

@ -42,7 +42,7 @@
*/ */
class LSattr_html_select_list extends LSattr_html{ class LSattr_html_select_list extends LSattr_html{
var string $LSformElement_type = 'select'; var $LSformElement_type = 'select';
/** /**
* Ajoute l'attribut au formualaire passer en paramètre * Ajoute l'attribut au formualaire passer en paramètre

View file

@ -27,14 +27,14 @@
*/ */
class LSattr_html_select_object extends LSattr_html{ class LSattr_html_select_object extends LSattr_html{
var string $LSformElement_type = 'select_object'; var $LSformElement_type = 'select_object';
/** /**
* Array of unrecognized values * Array of unrecognized values
* @see LSattr_html_select_object::getFormValues() * @see LSattr_html_select_object::getFormValues()
* @var array<int,string> * @var array<int,string>
*/ */
var array $unrecognizedValues = array(); var $unrecognizedValues = array();
/** /**
* Ajoute l'attribut au formualaire passer en paramètre * Ajoute l'attribut au formualaire passer en paramètre

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_ssh_key extends LSattr_html { class LSattr_html_ssh_key extends LSattr_html {
var string $LSformElement_type = 'ssh_key'; var $LSformElement_type = 'ssh_key';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannActivite extends LSattr_html { class LSattr_html_supannActivite extends LSattr_html {
var string $LSformElement_type = 'supannActivite'; var $LSformElement_type = 'supannActivite';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannAdressePostalePrivee extends LSattr_html { class LSattr_html_supannAdressePostalePrivee extends LSattr_html {
var string $LSformElement_type = 'supannAdressePostalePrivee'; var $LSformElement_type = 'supannAdressePostalePrivee';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannCodePopulation extends LSattr_html { class LSattr_html_supannCodePopulation extends LSattr_html {
var string $LSformElement_type = 'supannCodePopulation'; var $LSformElement_type = 'supannCodePopulation';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEmpCorps extends LSattr_html { class LSattr_html_supannEmpCorps extends LSattr_html {
var string $LSformElement_type = 'supannEmpCorps'; var $LSformElement_type = 'supannEmpCorps';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEmpProfil extends LSattr_html { class LSattr_html_supannEmpProfil extends LSattr_html {
var string $LSformElement_type = 'supannEmpProfil'; var $LSformElement_type = 'supannEmpProfil';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEtablissement extends LSattr_html { class LSattr_html_supannEtablissement extends LSattr_html {
var string $LSformElement_type = 'supannEtablissement'; var $LSformElement_type = 'supannEtablissement';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEtuDiplome extends LSattr_html { class LSattr_html_supannEtuDiplome extends LSattr_html {
var string $LSformElement_type = 'supannEtuDiplome'; var $LSformElement_type = 'supannEtuDiplome';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEtuElementPedagogique extends LSattr_html { class LSattr_html_supannEtuElementPedagogique extends LSattr_html {
var string $LSformElement_type = 'supannEtuElementPedagogique'; var $LSformElement_type = 'supannEtuElementPedagogique';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEtuEtape extends LSattr_html { class LSattr_html_supannEtuEtape extends LSattr_html {
var string $LSformElement_type = 'supannEtuEtape'; var $LSformElement_type = 'supannEtuEtape';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEtuInscription extends LSattr_html { class LSattr_html_supannEtuInscription extends LSattr_html {
var string $LSformElement_type = 'supannEtuInscription'; var $LSformElement_type = 'supannEtuInscription';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEtuRegimeInscription extends LSattr_html { class LSattr_html_supannEtuRegimeInscription extends LSattr_html {
var string $LSformElement_type = 'supannEtuRegimeInscription'; var $LSformElement_type = 'supannEtuRegimeInscription';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEtuSecteurDisciplinaire extends LSattr_html { class LSattr_html_supannEtuSecteurDisciplinaire extends LSattr_html {
var string $LSformElement_type = 'supannEtuSecteurDisciplinaire'; var $LSformElement_type = 'supannEtuSecteurDisciplinaire';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannEtuTypeDiplome extends LSattr_html { class LSattr_html_supannEtuTypeDiplome extends LSattr_html {
var string $LSformElement_type = 'supannEtuTypeDiplome'; var $LSformElement_type = 'supannEtuTypeDiplome';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannExtProfil extends LSattr_html { class LSattr_html_supannExtProfil extends LSattr_html {
var string $LSformElement_type = 'supannExtProfil'; var $LSformElement_type = 'supannExtProfil';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannLabeledValue extends LSattr_html { class LSattr_html_supannLabeledValue extends LSattr_html {
var string $LSformElement_type = 'supannLabeledValue'; var $LSformElement_type = 'supannLabeledValue';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannMailPrive extends LSattr_html { class LSattr_html_supannMailPrive extends LSattr_html {
var string $LSformElement_type = 'supannMailPrive'; var $LSformElement_type = 'supannMailPrive';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannRessourceEtat extends LSattr_html { class LSattr_html_supannRessourceEtat extends LSattr_html {
var string $LSformElement_type = 'supannRessourceEtat'; var $LSformElement_type = 'supannRessourceEtat';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannRessourceEtatDate extends LSattr_html { class LSattr_html_supannRessourceEtatDate extends LSattr_html {
var string $LSformElement_type = 'supannRessourceEtatDate'; var $LSformElement_type = 'supannRessourceEtatDate';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannRoleEntite extends LSattr_html { class LSattr_html_supannRoleEntite extends LSattr_html {
var string $LSformElement_type = 'supannRoleEntite'; var $LSformElement_type = 'supannRoleEntite';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannRoleGenerique extends LSattr_html { class LSattr_html_supannRoleGenerique extends LSattr_html {
var string $LSformElement_type = 'supannRoleGenerique'; var $LSformElement_type = 'supannRoleGenerique';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannTelephonePrive extends LSattr_html { class LSattr_html_supannTelephonePrive extends LSattr_html {
var string $LSformElement_type = 'supannTelephonePrive'; var $LSformElement_type = 'supannTelephonePrive';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_supannTypeEntite extends LSattr_html { class LSattr_html_supannTypeEntite extends LSattr_html {
var string $LSformElement_type = 'supannTypeEntite'; var $LSformElement_type = 'supannTypeEntite';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_tel extends LSattr_html { class LSattr_html_tel extends LSattr_html {
var string $LSformElement_type = 'tel'; var $LSformElement_type = 'tel';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_text extends LSattr_html { class LSattr_html_text extends LSattr_html {
var string $LSformElement_type = 'text'; var $LSformElement_type = 'text';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_textarea extends LSattr_html { class LSattr_html_textarea extends LSattr_html {
var string $LSformElement_type = 'textarea'; var $LSformElement_type = 'textarea';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_url extends LSattr_html { class LSattr_html_url extends LSattr_html {
var string $LSformElement_type = 'url'; var $LSformElement_type = 'url';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_valueWithUnit extends LSattr_html { class LSattr_html_valueWithUnit extends LSattr_html {
var string $LSformElement_type = 'valueWithUnit'; var $LSformElement_type = 'valueWithUnit';
} }

View file

@ -29,6 +29,6 @@ LSsession :: loadLSclass('LSattr_html_textarea');
*/ */
class LSattr_html_wysiwyg extends LSattr_html_textarea { class LSattr_html_wysiwyg extends LSattr_html_textarea {
var string $LSformElement_type = 'wysiwyg'; var $LSformElement_type = 'wysiwyg';
} }

View file

@ -27,6 +27,6 @@
*/ */
class LSattr_html_xmpp extends LSattr_html { class LSattr_html_xmpp extends LSattr_html {
var string $LSformElement_type = 'xmpp'; var $LSformElement_type = 'xmpp';
} }

View file

@ -33,19 +33,19 @@ class LSattr_ldap extends LSlog_staticLoggerClass {
* LDAP attribute name * LDAP attribute name
* @var string * @var string
*/ */
var string $name; var $name;
/** /**
* Attribute configuration (LSobjects.<type>.attrs.<attr_name>) * Attribute configuration (LSobjects.<type>.attrs.<attr_name>)
* @var array<string,mixed> * @var array<string,mixed>
*/ */
var array $config; var $config;
/** /**
* The reference of the parent LSattribute object * The reference of the parent LSattribute object
* @var LSattribute * @var LSattribute
*/ */
var LSattribute $attribute; var $attribute;
/** /**
* Constructeur * Constructeur

View file

@ -32,7 +32,7 @@ class LSattr_ldap_password extends LSattr_ldap {
* @see LSattr_ldap_password::getClearPassword() * @see LSattr_ldap_password::getClearPassword()
* @var string * @var string
*/ */
private string $clearPassword = ''; private $clearPassword = '';
/** /**
* Return the display value of this attribute * Return the display value of this attribute

View file

@ -37,39 +37,39 @@ class LSattribute extends LSlog_staticLoggerClass {
* Attribute name * Attribute name
* @var string * @var string
*/ */
var string $name; var $name;
/** /**
* Attribute configuration (LSobjects.<type>.attrs.<attr_name>) * Attribute configuration (LSobjects.<type>.attrs.<attr_name>)
* @var array<string,mixed> * @var array<string,mixed>
*/ */
var array $config; var $config;
/** /**
* The reference of the parent LSldapObject object * The reference of the parent LSldapObject object
* @var LSldapObject * @var LSldapObject
*/ */
var LSldapObject $ldapObject; var $ldapObject;
/** /**
* The implemented LSattr_ldap object * The implemented LSattr_ldap object
* @see LSattribute::__construct() * @see LSattribute::__construct()
* @var LSattr_ldap * @var LSattr_ldap
*/ */
var LSattr_ldap $ldap; var $ldap;
/** /**
* The implemented LSattr_ldap object * The implemented LSattr_ldap object
* @see LSattribute::__construct() * @see LSattribute::__construct()
* @var LSattr_html * @var LSattr_html
*/ */
var LSattr_html $html; var $html;
/** /**
* Attribute data * Attribute data
* @var array * @var array
*/ */
var array $data = array(); var $data = array();
/** /**
* Attribute updated data * Attribute updated data
@ -89,14 +89,14 @@ class LSattribute extends LSlog_staticLoggerClass {
* @see LSattribute::reloadData() * @see LSattribute::reloadData()
* @var bool * @var bool
*/ */
var bool $is_validate=false; var $is_validate=false;
/** /**
* Cache of the validated new attribute data * Cache of the validated new attribute data
* @see LSattribute::getUpdateData() * @see LSattribute::getUpdateData()
* @var array<string> * @var array<string>
*/ */
var array $_finalUpdateData=array(); var $_finalUpdateData=array();
/** /**
* Cache of the current connected user right on this attribute * Cache of the current connected user right on this attribute
@ -111,7 +111,7 @@ class LSattribute extends LSlog_staticLoggerClass {
* @see LSattribute::fireEvent() * @see LSattribute::fireEvent()
* @var array<string,array> * @var array<string,array>
*/ */
var array $_events=array(); var $_events=array();
/** /**
* Object registered hooks on event trigger object methods * Object registered hooks on event trigger object methods
@ -119,7 +119,7 @@ class LSattribute extends LSlog_staticLoggerClass {
* @see LSattribute::fireEvent() * @see LSattribute::fireEvent()
* @var array<string,array> * @var array<string,array>
*/ */
var array $_objectEvents=array(); var $_objectEvents=array();
/** /**
* Constructeur * Constructeur

View file

@ -34,7 +34,7 @@ class LScli extends LSlog_staticLoggerClass {
* @see LScli::add_command() * @see LScli::add_command()
* @var array * @var array
*/ */
private static array $commands = array(); private static $commands = array();
/** /**
* Store current executed command * Store current executed command

View file

@ -49,7 +49,7 @@ class LSform extends LSlog_staticLoggerClass {
* @see LSform::__construct() * @see LSform::__construct()
* @var array * @var array
*/ */
var array $config; var $config;
/** /**
* Validation ability telltale * Validation ability telltale
@ -57,7 +57,7 @@ class LSform extends LSlog_staticLoggerClass {
* @see LSform::setElementError() * @see LSform::setElementError()
* @var boolean * @var boolean
*/ */
var bool $can_validate = true; var $can_validate = true;
/** /**
* Form elements with attribute name as key and an implemented LSformElement as value * Form elements with attribute name as key and an implemented LSformElement as value
@ -65,20 +65,20 @@ class LSform extends LSlog_staticLoggerClass {
* @see LSattr_html::addToForm() * @see LSattr_html::addToForm()
* @var array<string,LSformElement> * @var array<string,LSformElement>
*/ */
var array $elements = array(); var $elements = array();
/** /**
* Registred elements's rules * Registred elements's rules
* @var array<string,array> * @var array<string,array>
*/ */
var array $_rules = array(); var $_rules = array();
/** /**
* Post data of the form * Post data of the form
* @see LSform::getPostData() * @see LSform::getPostData()
* @var array<string,array> * @var array<string,array>
*/ */
var array $_postData = array(); var $_postData = array();
/** /**
* Registered elements's errors * Registered elements's errors
@ -87,7 +87,7 @@ class LSform extends LSlog_staticLoggerClass {
* @see LSform::getErrors() * @see LSform::getErrors()
* @var array<string,array> * @var array<string,array>
*/ */
var array $_elementsErrors = array(); var $_elementsErrors = array();
/** /**
* Validation telltale * Validation telltale
@ -130,14 +130,14 @@ class LSform extends LSlog_staticLoggerClass {
* @see LSform::addWarning() * @see LSform::addWarning()
* @var array<int,string> * @var array<int,string>
*/ */
var array $warnings = array(); var $warnings = array();
/** /**
* Telltale of the API mode * Telltale of the API mode
* @see LSform::__construct() * @see LSform::__construct()
* @var bool * @var bool
*/ */
var bool $api_mode = false; var $api_mode = false;
/** /**
* Submited telltale * Submited telltale
@ -145,7 +145,7 @@ class LSform extends LSlog_staticLoggerClass {
* @see LSform::isSubmit() * @see LSform::isSubmit()
* @var bool * @var bool
*/ */
private bool $submited = false; private $submited = false;
/** /**
* The submit button value * The submit button value

View file

@ -36,7 +36,7 @@ class LSformElement extends LSlog_staticLoggerClass {
* The attribute name * The attribute name
* @var string * @var string
*/ */
var string $name; var $name;
/** /**
* The attribute label * The attribute label
@ -44,20 +44,20 @@ class LSformElement extends LSlog_staticLoggerClass {
* @see LSformElement::getLabel() * @see LSformElement::getLabel()
* @var string * @var string
*/ */
var string $label; var $label;
/** /**
* Attribute configuration (LSobjects.<type>.attrs.<attr_name>) * Attribute configuration (LSobjects.<type>.attrs.<attr_name>)
* @see LSformElement::getParam() * @see LSformElement::getParam()
* @var array<string,mixed> * @var array<string,mixed>
*/ */
var array $params; var $params;
/** /**
* Values of the element * Values of the element
* @var array<mixed> * @var array<mixed>
*/ */
var array $values = array(); var $values = array();
/** /**
* Reference of the related LSform object * Reference of the related LSform object
@ -71,7 +71,7 @@ class LSformElement extends LSlog_staticLoggerClass {
* @see LSformElement::isRequired() * @see LSformElement::isRequired()
* @var bool * @var bool
*/ */
var bool $_required = false; var $_required = false;
/** /**
* Freeze telltale (=read-only element) * Freeze telltale (=read-only element)
@ -79,7 +79,7 @@ class LSformElement extends LSlog_staticLoggerClass {
* @see LSformElement::isFreeze() * @see LSformElement::isFreeze()
* @var bool * @var bool
*/ */
var bool $_freeze = false; var $_freeze = false;
/** /**
* Reference to the related LSattr_html object * Reference to the related LSattr_html object
@ -92,21 +92,21 @@ class LSformElement extends LSlog_staticLoggerClass {
* Note: commonly overwrite in implementated classes * Note: commonly overwrite in implementated classes
* @var string * @var string
*/ */
var string $fieldTemplate = 'LSformElement_field.tpl'; var $fieldTemplate = 'LSformElement_field.tpl';
/** /**
* The template filename (of the form complement element) * The template filename (of the form complement element)
* Note: may be overwrite in implementated classes * Note: may be overwrite in implementated classes
* @var string * @var string
*/ */
var string $template = 'LSformElement.tpl'; var $template = 'LSformElement.tpl';
/** /**
* Template variables passed to Smarty computing the form element template * Template variables passed to Smarty computing the form element template
* Note: this variables are commonly added in implementated classes * Note: this variables are commonly added in implementated classes
* @var array<string,mixed> * @var array<string,mixed>
*/ */
var array $fetchVariables = array(); var $fetchVariables = array();
/** /**
* Constructor * Constructor

View file

@ -32,8 +32,8 @@
class LSformElement_boolean extends LSformElement { class LSformElement_boolean extends LSformElement {
var string $fieldTemplate = 'LSformElement_boolean_field.tpl'; var $fieldTemplate = 'LSformElement_boolean_field.tpl';
var string $template = 'LSformElement_boolean.tpl'; var $template = 'LSformElement_boolean.tpl';
/** /**
* Retourne les infos d'affichage de l'élément * Retourne les infos d'affichage de l'élément

View file

@ -32,9 +32,9 @@
class LSformElement_date extends LSformElement { class LSformElement_date extends LSformElement {
var string $fieldTemplate = 'LSformElement_date_field.tpl'; var $fieldTemplate = 'LSformElement_date_field.tpl';
var array $_php2js_format = array( var $_php2js_format = array(
"a" => "a", "a" => "a",
"A" => "A", "A" => "A",
"b" => "b", "b" => "b",
@ -60,9 +60,9 @@ class LSformElement_date extends LSformElement {
"%" => "%", "%" => "%",
); );
var array $_cache_php2js_format=array(); var $_cache_php2js_format=array();
var string $default_style="vista"; var $default_style="vista";
/** /**
* Définis la valeur de l'élément date * Définis la valeur de l'élément date

View file

@ -31,7 +31,7 @@
class LSformElement_image extends LSformElement { class LSformElement_image extends LSformElement {
var string $fieldTemplate = 'LSformElement_image_field.tpl'; var $fieldTemplate = 'LSformElement_image_field.tpl';
/** /**
* Retourne les infos d'affichage de l'élément * Retourne les infos d'affichage de l'élément

View file

@ -32,8 +32,8 @@ LSsession :: loadLSclass('LSformElement');
class LSformElement_jsonCompositeAttribute extends LSformElement { class LSformElement_jsonCompositeAttribute extends LSformElement {
var string $template = 'LSformElement_jsonCompositeAttribute.tpl'; var $template = 'LSformElement_jsonCompositeAttribute.tpl';
var string $fieldTemplate = 'LSformElement_jsonCompositeAttribute_field.tpl'; var $fieldTemplate = 'LSformElement_jsonCompositeAttribute_field.tpl';
public function __construct(&$form, $name, $label, $params, &$attr_html){ public function __construct(&$form, $name, $label, $params, &$attr_html){
parent :: __construct($form, $name, $label, $params,$attr_html); parent :: __construct($form, $name, $label, $params,$attr_html);

View file

@ -33,8 +33,8 @@ LSsession :: loadLSclass('LSformElement');
class LSformElement_labeledValue extends LSformElement { class LSformElement_labeledValue extends LSformElement {
var string $template = 'LSformElement_labeledValue.tpl'; var $template = 'LSformElement_labeledValue.tpl';
var string $fieldTemplate = 'LSformElement_labeledValue_field.tpl'; var $fieldTemplate = 'LSformElement_labeledValue_field.tpl';
/** /**
* Retourne les infos d'affichage de l'élément * Retourne les infos d'affichage de l'élément

View file

@ -33,20 +33,20 @@ LSsession :: loadLSclass('LSformElement_text');
class LSformElement_mail extends LSformElement_text { class LSformElement_mail extends LSformElement_text {
var array $JSscripts = array( var $JSscripts = array(
'LSformElement_mail.js' 'LSformElement_mail.js'
); );
var array $fetchVariables = array( var $fetchVariables = array(
'additionalCssClass' => array('LSformElement_mail'), 'additionalCssClass' => array('LSformElement_mail'),
'uriPrefix' => 'mailto:' 'uriPrefix' => 'mailto:'
); );
var string $fieldTemplate = 'LSformElement_uri_field.tpl'; var $fieldTemplate = 'LSformElement_uri_field.tpl';
// Flag to trigger warning about old Autocomplete config style // Flag to trigger warning about old Autocomplete config style
// (detect in constructor and show on getDisplay()) // (detect in constructor and show on getDisplay())
private bool $warnOldAutocompleteConfigStyle = false; private $warnOldAutocompleteConfigStyle = false;
/** /**
* Constructor * Constructor

View file

@ -32,9 +32,9 @@
class LSformElement_mailQuota extends LSformElement { class LSformElement_mailQuota extends LSformElement {
var string $fieldTemplate = 'LSformElement_mailQuota_field.tpl'; var $fieldTemplate = 'LSformElement_mailQuota_field.tpl';
var array $sizeFacts = array( var $sizeFacts = array(
1 => 'o', 1 => 'o',
1000 => 'Ko', 1000 => 'Ko',
1000000 => 'Mo', 1000000 => 'Mo',

View file

@ -52,12 +52,12 @@ LSsession :: loadLSclass('LSformElement_text');
class LSformElement_maildir extends LSformElement_text { class LSformElement_maildir extends LSformElement_text {
var array $JSscripts = array( var $JSscripts = array(
'LSformElement_maildir_field.js', 'LSformElement_maildir_field.js',
'LSformElement_maildir.js' 'LSformElement_maildir.js'
); );
var array $fetchVariables = array( var $fetchVariables = array(
'additionalCssClass' => array('LSformElement_maildir'), 'additionalCssClass' => array('LSformElement_maildir'),
); );

View file

@ -32,8 +32,8 @@ LSsession :: loadLSclass('LSformElement');
class LSformElement_password extends LSformElement { class LSformElement_password extends LSformElement {
var string $fieldTemplate = 'LSformElement_password_field.tpl'; var $fieldTemplate = 'LSformElement_password_field.tpl';
var string $template = 'LSformElement_password.tpl'; var $template = 'LSformElement_password.tpl';
/** /**
* Mail to send info * Mail to send info

View file

@ -35,7 +35,7 @@ class LSformElement_postaladdress extends LSformElement_textarea {
* @see LSformElement_textarea::getDisplay() * @see LSformElement_textarea::getDisplay()
* @var string * @var string
*/ */
var string $fieldTemplateExtraClass = 'LSformElement_postaladdress'; var $fieldTemplateExtraClass = 'LSformElement_postaladdress';
/** /**
* Retourne les infos d'affichage de l'élément * Retourne les infos d'affichage de l'élément

View file

@ -35,7 +35,7 @@ class LSformElement_pre extends LSformElement_textarea {
* @see LSformElement_textarea::getDisplay() * @see LSformElement_textarea::getDisplay()
* @var string * @var string
*/ */
var string $fieldTemplateExtraClass = 'LSformElement_pre'; var $fieldTemplateExtraClass = 'LSformElement_pre';
/** /**
* Retourne les infos d'affichage de l'élément * Retourne les infos d'affichage de l'élément

View file

@ -32,9 +32,9 @@
class LSformElement_quota extends LSformElement { class LSformElement_quota extends LSformElement {
var string $fieldTemplate = 'LSformElement_quota_field.tpl'; var $fieldTemplate = 'LSformElement_quota_field.tpl';
var array $sizeFacts = array( var $sizeFacts = array(
1 => 'o', 1 => 'o',
1024 => 'Ko', 1024 => 'Ko',
1048576 => 'Mo', 1048576 => 'Mo',

View file

@ -33,15 +33,15 @@ LSsession :: loadLSclass('LSformElement_text');
class LSformElement_rss extends LSformElement_text { class LSformElement_rss extends LSformElement_text {
var array $JSscripts = array( var $JSscripts = array(
'LSformElement_rss.js' 'LSformElement_rss.js'
); );
var array $fetchVariables = array( var $fetchVariables = array(
'additionalCssClass' => array('LSformElement_rss'), 'additionalCssClass' => array('LSformElement_rss'),
'uriPrefix' => '' 'uriPrefix' => ''
); );
var string $fieldTemplate = 'LSformElement_uri_field.tpl'; var $fieldTemplate = 'LSformElement_uri_field.tpl';
public function getDisplay() { public function getDisplay() {
LStemplate :: addHelpInfo( LStemplate :: addHelpInfo(

View file

@ -32,8 +32,8 @@
class LSformElement_select extends LSformElement { class LSformElement_select extends LSformElement {
var string $template = 'LSformElement_select.tpl'; var $template = 'LSformElement_select.tpl';
var string $fieldTemplate = 'LSformElement_select.tpl'; var $fieldTemplate = 'LSformElement_select.tpl';
/** /**
* Return display data of this element * Return display data of this element

View file

@ -33,8 +33,8 @@ LSsession :: loadLSclass('LSformElement_select');
class LSformElement_select_box extends LSformElement_select { class LSformElement_select_box extends LSformElement_select {
var string $template = 'LSformElement_select_box.tpl'; var $template = 'LSformElement_select_box.tpl';
var string $fieldTemplate = 'LSformElement_select_box.tpl'; var $fieldTemplate = 'LSformElement_select_box.tpl';
/** /**
* Return display data of this element * Return display data of this element

View file

@ -43,8 +43,8 @@ LSsession :: loadLSclass('LSformElement');
class LSformElement_select_object extends LSformElement { class LSformElement_select_object extends LSformElement {
var string $fieldTemplate = 'LSformElement_select_object_field.tpl'; var $fieldTemplate = 'LSformElement_select_object_field.tpl';
var string $template = 'LSformElement_select_object.tpl'; var $template = 'LSformElement_select_object.tpl';
/** /**
* Reference to the related LSattr_html_select_object object * Reference to the related LSattr_html_select_object object

View file

@ -32,8 +32,8 @@
class LSformElement_ssh_key extends LSformElement { class LSformElement_ssh_key extends LSformElement {
var string $template = 'LSformElement_ssh_key.tpl'; var $template = 'LSformElement_ssh_key.tpl';
var string $fieldTemplate = 'LSformElement_ssh_key_field.tpl'; var $fieldTemplate = 'LSformElement_ssh_key_field.tpl';
/** /**

View file

@ -34,8 +34,8 @@ LSsession :: loadLSaddon('supann');
class LSformElement_supannCompositeAttribute extends LSformElement { class LSformElement_supannCompositeAttribute extends LSformElement {
var string $template = 'LSformElement_supannCompositeAttribute.tpl'; var $template = 'LSformElement_supannCompositeAttribute.tpl';
var string $fieldTemplate = 'LSformElement_supannCompositeAttribute_field.tpl'; var $fieldTemplate = 'LSformElement_supannCompositeAttribute_field.tpl';
/* /*
* Composants des valeurs composites : * Composants des valeurs composites :

View file

@ -34,8 +34,8 @@ LSsession :: loadLSaddon('supann');
class LSformElement_supannLabeledValue extends LSformElement { class LSformElement_supannLabeledValue extends LSformElement {
var string $template = 'LSformElement_supannLabeledValue.tpl'; var $template = 'LSformElement_supannLabeledValue.tpl';
var string $fieldTemplate = 'LSformElement_supannLabeledValue_field.tpl'; var $fieldTemplate = 'LSformElement_supannLabeledValue_field.tpl';
/** /**
* Nomenclature table of this form element's values * Nomenclature table of this form element's values

View file

@ -33,12 +33,12 @@ LSsession :: loadLSclass('LSformElement_text');
class LSformElement_tel extends LSformElement_text { class LSformElement_tel extends LSformElement_text {
var array $fetchVariables = array( var $fetchVariables = array(
'additionalCssClass' => array('LSformElement_tel'), 'additionalCssClass' => array('LSformElement_tel'),
'uriPrefix' => 'tel:' 'uriPrefix' => 'tel:'
); );
var string $fieldTemplate = 'LSformElement_uri_field.tpl'; var $fieldTemplate = 'LSformElement_uri_field.tpl';
public function getDisplay() { public function getDisplay() {
$this -> fetchVariables['uriLinkTitle'] = $this -> attr_html -> attribute -> ldapObject ->getDisplayName(); $this -> fetchVariables['uriLinkTitle'] = $this -> attr_html -> attribute -> ldapObject ->getDisplayName();

View file

@ -39,7 +39,7 @@ class LSformElement_text extends LSformElement {
* @see LSformElement_text::getDisplay() * @see LSformElement_text::getDisplay()
* @var array * @var array
*/ */
var array $JSscripts = array(); var $JSscripts = array();
/** /**
* Extra CSS file to load for handling this form element * Extra CSS file to load for handling this form element
@ -47,12 +47,12 @@ class LSformElement_text extends LSformElement {
* @see LSformElement_text::getDisplay() * @see LSformElement_text::getDisplay()
* @var array * @var array
*/ */
var array $CSSfiles = array( var $CSSfiles = array(
'LSformElement_text.css', 'LSformElement_text.css',
); );
var string $fieldTemplate = 'LSformElement_text_field.tpl'; var $fieldTemplate = 'LSformElement_text_field.tpl';
var array $fetchVariables = array( var $fetchVariables = array(
'additionalCssClass' => array(), 'additionalCssClass' => array(),
); );

View file

@ -32,14 +32,14 @@
class LSformElement_textarea extends LSformElement { class LSformElement_textarea extends LSformElement {
var string $fieldTemplate = 'LSformElement_textarea_field.tpl'; var $fieldTemplate = 'LSformElement_textarea_field.tpl';
/** /**
* Extra CSS class for the pre HTML element * Extra CSS class for the pre HTML element
* @see LSformElement_textarea::getDisplay() * @see LSformElement_textarea::getDisplay()
* @var string * @var string
*/ */
var string $fieldTemplateExtraClass = ''; var $fieldTemplateExtraClass = '';
/** /**
* Retourne les infos d'affichage de l'élément * Retourne les infos d'affichage de l'élément

View file

@ -33,16 +33,16 @@ LSsession :: loadLSclass('LSformElement_text');
class LSformElement_url extends LSformElement_text { class LSformElement_url extends LSformElement_text {
var array $JSscripts = array( var $JSscripts = array(
'LSformElement_url.js' 'LSformElement_url.js'
); );
var array $fetchVariables = array( var $fetchVariables = array(
'additionalCssClass' => array('LSformElement_url'), 'additionalCssClass' => array('LSformElement_url'),
'uriPrefix' => '' 'uriPrefix' => ''
); );
var string $fieldTemplate = 'LSformElement_uri_field.tpl'; var $fieldTemplate = 'LSformElement_uri_field.tpl';
public function getDisplay() { public function getDisplay() {
LStemplate :: addHelpInfo( LStemplate :: addHelpInfo(

View file

@ -32,7 +32,7 @@
class LSformElement_valueWithUnit extends LSformElement { class LSformElement_valueWithUnit extends LSformElement {
var string $fieldTemplate = 'LSformElement_valueWithUnit_field.tpl'; var $fieldTemplate = 'LSformElement_valueWithUnit_field.tpl';
/** /**
* Retourne les unites de l'attribut * Retourne les unites de l'attribut

View file

@ -31,7 +31,7 @@
class LSformElement_wysiwyg extends LSformElement { class LSformElement_wysiwyg extends LSformElement {
var string $fieldTemplate = 'LSformElement_wysiwyg_field.tpl'; var $fieldTemplate = 'LSformElement_wysiwyg_field.tpl';
/** /**
* Retourne les infos d'affichage de l'élément * Retourne les infos d'affichage de l'élément

View file

@ -32,16 +32,16 @@ LSsession :: loadLSclass('LSformElement_text');
*/ */
class LSformElement_xmpp extends LSformElement_text { class LSformElement_xmpp extends LSformElement_text {
var array $JSscripts = array( var $JSscripts = array(
'LSformElement_xmpp.js' 'LSformElement_xmpp.js'
); );
var array $fetchVariables = array( var $fetchVariables = array(
'additionalCssClass' => array('LSformElement_xmpp'), 'additionalCssClass' => array('LSformElement_xmpp'),
'uriPrefix' => 'xmpp:' 'uriPrefix' => 'xmpp:'
); );
var string $fieldTemplate = 'LSformElement_uri_field.tpl'; var $fieldTemplate = 'LSformElement_uri_field.tpl';
public function getDisplay() { public function getDisplay() {
LStemplate :: addHelpInfo( LStemplate :: addHelpInfo(

View file

@ -46,7 +46,7 @@ class LSformRule extends LSlog_staticLoggerClass {
* @see LSformRule::cli_test_form_rule_param_name_autocompleter() * @see LSformRule::cli_test_form_rule_param_name_autocompleter()
* @var array<string,mixed> * @var array<string,mixed>
*/ */
protected static array $cli_params_autocompleters = array(); protected static $cli_params_autocompleters = array();
/** /**
* Validate form element values with specified rule * Validate form element values with specified rule

View file

@ -28,7 +28,7 @@
class LSformRule_alphanumeric extends LSformRule { class LSformRule_alphanumeric extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'withAccents' => array('LScli', 'autocomplete_bool'), 'withAccents' => array('LScli', 'autocomplete_bool'),
); );

View file

@ -28,7 +28,7 @@
class LSformRule_callable extends LSformRule { class LSformRule_callable extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'callable' => null, 'callable' => null,
); );

View file

@ -34,7 +34,7 @@ class LSformRule_compare extends LSformRule {
const validate_one_by_one = False; const validate_one_by_one = False;
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'operator' => null, 'operator' => null,
); );

View file

@ -28,7 +28,7 @@
class LSformRule_date extends LSformRule { class LSformRule_date extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'format' => null, 'format' => null,
'special_values' => null, 'special_values' => null,
); );

View file

@ -28,7 +28,7 @@
class LSformRule_differentPassword extends LSformRule { class LSformRule_differentPassword extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'otherPasswordAttributes' => null, 'otherPasswordAttributes' => null,
); );

View file

@ -28,7 +28,7 @@
class LSformRule_email extends LSformRule { class LSformRule_email extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'domain' => null, 'domain' => null,
'checkDomain' => array('LScli', 'autocomplete_bool'), 'checkDomain' => array('LScli', 'autocomplete_bool'),
); );

View file

@ -28,7 +28,7 @@
class LSformRule_filesize extends LSformRule { class LSformRule_filesize extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'minSize' => array('LScli', 'autocomplete_int'), 'minSize' => array('LScli', 'autocomplete_int'),
'maxSize' => array('LScli', 'autocomplete_int'), 'maxSize' => array('LScli', 'autocomplete_int'),
); );

View file

@ -28,7 +28,7 @@
class LSformRule_imagesize extends LSformRule { class LSformRule_imagesize extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'minWidth' => array('LScli', 'autocomplete_int'), 'minWidth' => array('LScli', 'autocomplete_int'),
'maxWitdh' => array('LScli', 'autocomplete_int'), 'maxWitdh' => array('LScli', 'autocomplete_int'),
'minHeight' => array('LScli', 'autocomplete_int'), 'minHeight' => array('LScli', 'autocomplete_int'),

View file

@ -28,7 +28,7 @@
class LSformRule_inarray extends LSformRule { class LSformRule_inarray extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'possible_values' => null, 'possible_values' => null,
'reverse' => array('LScli', 'autocomplete_bool'), 'reverse' => array('LScli', 'autocomplete_bool'),
); );

View file

@ -28,7 +28,7 @@
class LSformRule_integer extends LSformRule{ class LSformRule_integer extends LSformRule{
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'positive' => array('LScli', 'autocomplete_bool'), 'positive' => array('LScli', 'autocomplete_bool'),
'negative' => array('LScli', 'autocomplete_bool'), 'negative' => array('LScli', 'autocomplete_bool'),
'minHeight' => array('LScli', 'autocomplete_int'), 'minHeight' => array('LScli', 'autocomplete_int'),

View file

@ -28,7 +28,7 @@
class LSformRule_ldapSearchURI extends LSformRule { class LSformRule_ldapSearchURI extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'check_resolving_ldap_host' => array('LScli', 'autocomplete_bool'), 'check_resolving_ldap_host' => array('LScli', 'autocomplete_bool'),
'host_required' => array('LScli', 'autocomplete_bool'), 'host_required' => array('LScli', 'autocomplete_bool'),
'scope_required' => array('LScli', 'autocomplete_bool'), 'scope_required' => array('LScli', 'autocomplete_bool'),

View file

@ -28,7 +28,7 @@
class LSformRule_maxlength extends LSformRule { class LSformRule_maxlength extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'limit' => array('LScli', 'autocomplete_int'), 'limit' => array('LScli', 'autocomplete_int'),
); );

View file

@ -28,7 +28,7 @@
class LSformRule_mimetype extends LSformRule { class LSformRule_mimetype extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'mimeType' => null, 'mimeType' => null,
'mimeTypeRegEx' => null, 'mimeTypeRegEx' => null,
); );

View file

@ -28,7 +28,7 @@
class LSformRule_minlength extends LSformRule { class LSformRule_minlength extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'limit' => array('LScli', 'autocomplete_int'), 'limit' => array('LScli', 'autocomplete_int'),
); );

View file

@ -35,7 +35,7 @@ class LSformRule_numberOfValues extends LSformRule {
const validate_one_by_one = False; const validate_one_by_one = False;
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'min' => array('LScli', 'autocomplete_int'), 'min' => array('LScli', 'autocomplete_int'),
'max' => array('LScli', 'autocomplete_int'), 'max' => array('LScli', 'autocomplete_int'),
); );

View file

@ -28,7 +28,7 @@
class LSformRule_password extends LSformRule { class LSformRule_password extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'minlength' => array('LScli', 'autocomplete_int'), 'minlength' => array('LScli', 'autocomplete_int'),
'maxlength' => array('LScli', 'autocomplete_int'), 'maxlength' => array('LScli', 'autocomplete_int'),
'prohibitedValues' => null, 'prohibitedValues' => null,

View file

@ -28,7 +28,7 @@
class LSformRule_rangelength extends LSformRule { class LSformRule_rangelength extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'limits' => null, 'limits' => null,
); );

View file

@ -28,7 +28,7 @@
class LSformRule_regex extends LSformRule { class LSformRule_regex extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'regex' => null, 'regex' => null,
); );

View file

@ -28,7 +28,7 @@
class LSformRule_zxcvbn extends LSformRule { class LSformRule_zxcvbn extends LSformRule {
// CLI parameters autocompleters // CLI parameters autocompleters
protected static array $cli_params_autocompleters = array( protected static $cli_params_autocompleters = array(
'minScore' => array('LScli', 'autocomplete_int'), 'minScore' => array('LScli', 'autocomplete_int'),
'userDataAttrs' => null, 'userDataAttrs' => null,
'showWarning' => array('LScli', 'autocomplete_bool'), 'showWarning' => array('LScli', 'autocomplete_bool'),

Some files were not shown because too many files have changed in this diff Show more