mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 06:23:48 +01:00
Fix some 'Cannot make non static method' errors
This commit is contained in:
parent
20dc70f34b
commit
2208eb7fe0
3 changed files with 6 additions and 6 deletions
|
@ -36,7 +36,7 @@ class LSattr_ldap_compositeValueToJSON extends LSattr_ldap {
|
|||
*
|
||||
* @retval mixed La valeur d'affichage de l'attribut
|
||||
*/
|
||||
public static function getDisplayValue($data) {
|
||||
public function getDisplayValue($data) {
|
||||
if ($data) {
|
||||
if (!is_array($data))
|
||||
$data = array($data);
|
||||
|
@ -55,7 +55,7 @@ class LSattr_ldap_compositeValueToJSON extends LSattr_ldap {
|
|||
*
|
||||
* @retval mixed La valeur traitée de l'attribut
|
||||
*/
|
||||
public static function getUpdateData($data) {
|
||||
public function getUpdateData($data) {
|
||||
if ($data) {
|
||||
if (!is_array($data))
|
||||
$data = array($data);
|
||||
|
|
|
@ -33,7 +33,7 @@ class LSattr_ldap_postaladdress extends LSattr_ldap {
|
|||
*
|
||||
* @retval mixed La valeur d'affichage de l'attribut
|
||||
*/
|
||||
public static function getDisplayValue($data) {
|
||||
public function getDisplayValue($data) {
|
||||
return str_replace("$","\n",$data);
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ class LSattr_ldap_postaladdress extends LSattr_ldap {
|
|||
*
|
||||
* @retval mixed La valeur traitée de l'attribut
|
||||
*/
|
||||
public static function getUpdateData($data) {
|
||||
public function getUpdateData($data) {
|
||||
return str_replace("\n","$",$data);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class LSattr_ldap_shadowExpire extends LSattr_ldap {
|
|||
*
|
||||
* @retval mixed Array of timestamp
|
||||
*/
|
||||
public static function getDisplayValue($data) {
|
||||
public function getDisplayValue($data) {
|
||||
$ret=array();
|
||||
foreach($data as $val) {
|
||||
$ret[]=((int)$val)*86400;
|
||||
|
@ -50,7 +50,7 @@ class LSattr_ldap_shadowExpire extends LSattr_ldap {
|
|||
*
|
||||
* @retval mixed LDAP attribute values
|
||||
*/
|
||||
public static function getUpdateData($data) {
|
||||
public function getUpdateData($data) {
|
||||
$ret=array();
|
||||
foreach($data as $val) {
|
||||
$ret[]=round(((int)$val)/86400);
|
||||
|
|
Loading…
Reference in a new issue