Commit eb36997a authored by Oana-Eliza Alexa's avatar Oana-Eliza Alexa
Browse files

add method

1 merge request!77Draft: Resolve "Redesign reminders class"
Showing with 12 additions and 0 deletions
+12 -0
...@@ -19,4 +19,16 @@ class MailUtils ...@@ -19,4 +19,16 @@ class MailUtils
return $mail_controller->sendMail(); return $mail_controller->sendMail();
} }
/**
* @return array
* Note : A simple retrieval methods of the mail backend configuration set in FusionDirectory
*/
public static function getMailObjectConfiguration (TaskGateway $gateway): array
{
return $gateway->getLdapTasks(
"(objectClass=fdTasksConf)",
["fdTasksConfLastExecTime", "fdTasksConfIntervalEmails", "fdTasksConfMaxEmails"]
);
}
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment