Fix some 'Cannot make non static method' errors

This commit is contained in:
Benjamin Renard 2019-03-12 13:28:30 +01:00
parent 20dc70f34b
commit 2208eb7fe0
3 changed files with 6 additions and 6 deletions

View file

@ -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);

View file

@ -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);
}

View file

@ -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);