LSldapObject :: _updateData(): make method protected instead of private

This change allow this method usage from children classes to allow 
custom relation implementations.
This commit is contained in:
Benjamin Renard 2020-12-01 15:04:20 +01:00
parent b4a5824ee8
commit 0addf22c2e

View file

@ -289,7 +289,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
* Update LDAP object data from one form specify by it's ID. * Update LDAP object data from one form specify by it's ID.
* *
* This method just valid form ID, extract form data and call * This method just valid form ID, extract form data and call
* _updateData() private method. * _updateData() protected method.
* *
* @param[in] $idForm Form ID * @param[in] $idForm Form ID
* @param[in] $justValidate Boolean to enable just validation mode * @param[in] $justValidate Boolean to enable just validation mode
@ -344,7 +344,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
* @see validateAttrsData() * @see validateAttrsData()
* @see submitChange() * @see submitChange()
*/ */
private function _updateData($new_data,$idForm=null,$justValidate=False) { protected function _updateData($new_data,$idForm=null,$justValidate=False) {
if(!is_array($new_data)) { if(!is_array($new_data)) {
return; return;
} }