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-integrator
Commits
a92dcf14
Verified
Commit
a92dcf14
authored
8 months ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
phpcs
parent
70ec1528
dev
main
1.2
2 merge requests
!52
:sparkles: Releasing Fusiondirectory Integrator 1.2
,
!42
Resolve "[Integrator] - AUDIT - Removal of audit after set period - new lib"
Pipeline
#29326
passed with stages
in 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/FusionDirectory/Audit/AuditLib.php
+4
-5
src/FusionDirectory/Audit/AuditLib.php
with
4 additions
and
5 deletions
+4
-5
src/FusionDirectory/Audit/AuditLib.php
+
4
−
5
View file @
a92dcf14
...
@@ -21,9 +21,9 @@ class AuditLib
...
@@ -21,9 +21,9 @@ class AuditLib
public
function
__construct
(
public
function
__construct
(
int
$auditRetention
,
int
$auditRetention
,
array
$auditList
,
array
$auditList
,
?object
$gateway
=
NULL
,
?object
$gateway
=
NULL
,
?string
$subTaskDN
=
NULL
,
?string
$subTaskDN
=
NULL
,
?string
$subTaskCN
=
NULL
,
?string
$subTaskCN
=
NULL
,
?Ldap
\
Link
$ldapBind
=
NULL
?Ldap
\
Link
$ldapBind
=
NULL
)
)
{
{
...
@@ -123,8 +123,7 @@ class AuditLib
...
@@ -123,8 +123,7 @@ class AuditLib
* @throws Exception
* @throws Exception
* Note : Simply take a generalized Ldap time (with UTC = Z) and transform it to php object dateTime.
* Note : Simply take a generalized Ldap time (with UTC = Z) and transform it to php object dateTime.
*/
*/
public
public
function
generalizeLdapTimeToPhpObject
(
$generalizeLdapDateTime
)
function
generalizeLdapTimeToPhpObject
(
$generalizeLdapDateTime
)
{
{
// Extract the date part (first 8 characters: YYYYMMDD), we do not care about hour and seconds.
// Extract the date part (first 8 characters: YYYYMMDD), we do not care about hour and seconds.
$auditTimeFormatted
=
substr
(
$generalizeLdapDateTime
,
0
,
8
);
$auditTimeFormatted
=
substr
(
$generalizeLdapDateTime
,
0
,
8
);
...
...
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