Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-plugins
Commits
909fa01a
Verified
Commit
909fa01a
authored
6 months ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
Feat(Reminder) - first step towards supann update
First step towards supann update.
parent
acebe7be
dev
6310-tasks-reminder-error-in-the-schema-duplicate-attribute-id
6311-put-the-version-1-5-in-all-yaml-for-fusiondirectory-1-5
6322-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen-2
6332-zimbra-allows-update-of-data-for-unknown-domain-name-for-specific-individual-aliases
6337-webservice-issue-with-archiving-post-request-not-responding-but-successfully-archiving-user
6341-supann-extract-resources-states-sub-states-from-backend-configuration-to-their-own-objects
master
fusiondirectory-1.5
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
user-reminder/html/class_reminderFrontEnd.inc
+29
-4
user-reminder/html/class_reminderFrontEnd.inc
with
29 additions
and
4 deletions
+29
-4
user-reminder/html/class_reminderFrontEnd.inc
+
29
−
4
View file @
909fa01a
...
...
@@ -101,8 +101,6 @@ class reminderFrontEnd extends standAlonePage
*/
private
function
prolongedAccount
():
bool
{
$result
=
FALSE
;
// Generate the supann string from main task.
$newIncompleteSupann
=
$this
->
createSupannString
();
// retrieve all supann resource for specific user
...
...
@@ -113,8 +111,35 @@ class reminderFrontEnd extends standAlonePage
$userSupannEndDate
=
$this
->
returnSupannEndDate
(
$userSupannRessourceEtat
);
// Create the final supann resource state with a new start and new end date.
$newSupannRessourceEtatDate
=
$this
->
finalSupannGeneration
(
$newIncompleteSupann
,
$userSupannEndDate
);
echo
$newSupannRessourceEtatDate
;
exit
;
// Time for the update of the user resource
return
$this
->
updateUserSupannResource
(
$userSupannRessourceEtat
,
$newSupannRessourceEtatDate
);
}
/**
* @param $userSupannRessourceEtat
* @param $newSupannRessourceEtatDate
* @return bool
*/
private
function
updateUserSupannResource
(
$userSupannRessourceEtat
,
$newSupannRessourceEtatDate
)
:
bool
{
global
$config
;
$result
=
FALSE
;
$ldap
=
$config
->
get_ldap_link
();
// We first have to delete the previous supannRessourceEtatDate
try
{
}
catch
(
Exception
$e
)
{
}
// We add the new supannRessourceEtatDate
try
{
}
catch
(
Exception
$e
)
{
}
return
$result
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets