mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +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');
|
LSerror :: addErrorCode('LSldapObject_20');
|
||||||
return;
|
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)) {
|
if (!LSldap :: update($this -> getType(),$dn, $submitData)) {
|
||||||
return;
|
return;
|
||||||
|
@ -572,6 +578,12 @@ class LSldapObject {
|
||||||
LSerror :: addErrorCode('LSldapObject_21');
|
LSerror :: addErrorCode('LSldapObject_21');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
foreach ($submitData as $attr_name => $attr) {
|
||||||
|
if (!$this -> attrs[$attr_name] -> fireEvent('after_create')) {
|
||||||
|
LSerror :: addErrorCode('LSldapObject_21');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue