mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-23 00:43:48 +01:00
LSattr_ldap::compositeValueToJSON: use static instead of self keyword
Use static instead of self keyword to use static method. This permit to easily override this class.
This commit is contained in:
parent
bc462c07b6
commit
2161cc701a
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class LSattr_ldap_compositeValueToJSON extends LSattr_ldap {
|
|||
public function getDisplayValue($data) {
|
||||
$ret = array();
|
||||
foreach(ensureIsArray($data) as $key => $val)
|
||||
$ret[$key] = json_encode(self :: parseValue($val));
|
||||
$ret[$key] = json_encode(static :: parseValue($val));
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ class LSattr_ldap_compositeValueToJSON extends LSattr_ldap {
|
|||
public function getUpdateData($data) {
|
||||
$ret = array();
|
||||
foreach(ensureIsArray($data) as $key => $val)
|
||||
$ret[$key] = self :: encodeValue(json_decode($val, true));
|
||||
$ret[$key] = static :: encodeValue(json_decode($val, true));
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue