refactoring

This commit is contained in:
Roland Gruber 2025-07-24 19:33:50 +02:00
parent 9e0c4898df
commit 781e93702f

View file

@ -8,7 +8,7 @@ use LAM\TYPES\ConfiguredType;
/* /*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2005 - 2024 Roland Gruber Copyright (C) 2005 - 2025 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -530,21 +530,7 @@ class ldapPublicKey extends baseModule {
} }
/** /**
* Checks if all input values are correct and returns the LDAP attributes which should be changed. * {@inheritDoc}
* <br>Return values:
* <br>messages: array of parameters to create status messages
* <br>add: array of attributes to add
* <br>del: array of attributes to remove
* <br>mod: array of attributes to modify
* <br>info: array of values with informational value (e.g. to be used later by pre/postModify actions)
*
* Calling this method does not require the existence of an enclosing {@link accountContainer}.
*
* @param string $fields input fields
* @param array $attributes LDAP attributes
* @param boolean $passwordChangeOnly indicates that the user is only allowed to change his password and no LDAP content is readable
* @param array $readOnlyFields list of read-only fields
* @return array messages and attributes (array('messages' => [], 'add' => array('mail' => array('test@test.com')), 'del' => [], 'mod' => [], 'info' => []))
*/ */
public function checkSelfServiceOptions($fields, $attributes, $passwordChangeOnly, $readOnlyFields) { public function checkSelfServiceOptions($fields, $attributes, $passwordChangeOnly, $readOnlyFields) {
$return = ['messages' => [], 'add' => [], 'del' => [], 'mod' => [], 'info' => []]; $return = ['messages' => [], 'add' => [], 'del' => [], 'mod' => [], 'info' => []];