mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
supann: rename supannCheckEduPersonPrimaryAffiliation as validate_eduPersonPrimaryAffiliation
This commit is contained in:
parent
2239120912
commit
796e3287e9
1 changed files with 25 additions and 1 deletions
|
@ -882,7 +882,7 @@ function supannCheckEduPersonAffiliation(&$ldapObject) {
|
||||||
*
|
*
|
||||||
* @return boolean True si la valeur est valide, False sinon
|
* @return boolean True si la valeur est valide, False sinon
|
||||||
**/
|
**/
|
||||||
function supannCheckEduPersonPrimaryAffiliation(&$ldapObject) {
|
function validate_eduPersonPrimaryAffiliation(&$ldapObject) {
|
||||||
$primary = $ldapObject->getValue('eduPersonPrimaryAffiliation');
|
$primary = $ldapObject->getValue('eduPersonPrimaryAffiliation');
|
||||||
$affiliations = $ldapObject->getValue('eduPersonAffiliation');
|
$affiliations = $ldapObject->getValue('eduPersonAffiliation');
|
||||||
if (!array_intersect($primary, $affiliations))
|
if (!array_intersect($primary, $affiliations))
|
||||||
|
@ -890,6 +890,30 @@ function supannCheckEduPersonPrimaryAffiliation(&$ldapObject) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vérifie la valeur de l'attribut eduPersonPrimaryAffiliation
|
||||||
|
*
|
||||||
|
* Note: ancien nom de la fonction validate_eduPersonPrimaryAffiliation conservé pour
|
||||||
|
* rétro-compatibilié. Une erreur sera affichée lorsqu'on utilise cette fonction.
|
||||||
|
*
|
||||||
|
* @author Benjamin Renard <brenard@easter-eggs.com>
|
||||||
|
*
|
||||||
|
* @param LSldapObject &$ldapObject Une référence à l'object LSldapObject
|
||||||
|
*
|
||||||
|
* @return boolean True si la valeur est valide, False sinon
|
||||||
|
**/
|
||||||
|
function supannCheckEduPersonPrimaryAffiliation(&$ldapObject) {
|
||||||
|
LSerror :: addErrorCode(
|
||||||
|
'LSsession_27',
|
||||||
|
array(
|
||||||
|
'old' => 'supannCheckEduPersonPrimaryAffiliation()',
|
||||||
|
'new' => 'validate_eduPersonPrimaryAffiliation()',
|
||||||
|
'context' => LSlog :: get_debug_backtrace_context(),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
return validate_eduPersonPrimaryAffiliation($ldapObject);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vérifie la valeur de l'attribut supannEntiteAffectationPrincipale
|
* Vérifie la valeur de l'attribut supannEntiteAffectationPrincipale
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue