mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-17 15:59:06 +01:00
- LSldapObject & LSattribute : Ajout du support des triggers before_create et after_create
au niveau des LSattributes.
This commit is contained in:
parent
5753743d65
commit
8d429bfdcd
1 changed files with 12 additions and 0 deletions
|
@ -563,6 +563,12 @@ class LSldapObject {
|
|||
LSerror :: addErrorCode('LSldapObject_20');
|
||||
return;
|
||||
}
|
||||
foreach ($submitData as $attr_name => $attr) {
|
||||
if (!$this -> attrs[$attr_name] -> fireEvent('before_create')) {
|
||||
LSerror :: addErrorCode('LSldapObject_20');
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!LSldap :: update($this -> getType(),$dn, $submitData)) {
|
||||
return;
|
||||
|
@ -572,6 +578,12 @@ class LSldapObject {
|
|||
LSerror :: addErrorCode('LSldapObject_21');
|
||||
return;
|
||||
}
|
||||
foreach ($submitData as $attr_name => $attr) {
|
||||
if (!$this -> attrs[$attr_name] -> fireEvent('after_create')) {
|
||||
LSerror :: addErrorCode('LSldapObject_21');
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue