mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSform_rule :: differentPassword : Add missing LSform :: getValue() function
This commit is contained in:
parent
921d73e519
commit
b6f0605dac
1 changed files with 17 additions and 0 deletions
|
@ -615,6 +615,23 @@ class LSform {
|
||||||
return $this -> elements[$element];
|
return $this -> elements[$element];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the values of an element
|
||||||
|
*
|
||||||
|
* If form is posted, retreive values from postData, otherwise
|
||||||
|
* retreive value from the element.
|
||||||
|
*
|
||||||
|
* @param[in] string $element The element name
|
||||||
|
*
|
||||||
|
* @retval mixed The element values
|
||||||
|
**/
|
||||||
|
public function getValue($element) {
|
||||||
|
if ($this -> isSubmit() && $this -> _postData) {
|
||||||
|
return $this -> _postData[$element];
|
||||||
|
}
|
||||||
|
return $this -> elements[$element] -> getValue();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Défini les valeurs des élements à partir des valeurs postées
|
* Défini les valeurs des élements à partir des valeurs postées
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue