Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dematpayslip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nextcloud extension
dematpayslip
Commits
69135f2a
Commit
69135f2a
authored
3 years ago
by
VESSILLER
Browse files
Options
Downloads
Patches
Plain Diff
NEW ajout de notification apres tache planifiee
parent
b4ae093f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/BackgroundJob/ArchiveProcess.php
+12
-12
12 additions, 12 deletions
lib/BackgroundJob/ArchiveProcess.php
lib/BackgroundJob/IndexationProcess.php
+12
-12
12 additions, 12 deletions
lib/BackgroundJob/IndexationProcess.php
with
24 additions
and
24 deletions
lib/BackgroundJob/ArchiveProcess.php
+
12
−
12
View file @
69135f2a
...
...
@@ -289,18 +289,18 @@ class ArchiveProcess extends TimedJob {
$this
->
_activityManager
->
publish
(
$event
);
// notification
//
$this->_log('Notification add : archives processed');
//
$notification = $this->_notificationManager->createNotification();
//
$notification->setApp($this->_appName)
//
->setSubject('job_processed', ['nb_success' => $nbSuccess, 'nb_total' => $nbTotal])
//
->setObject('dematpayslip_process', $dateTimeNow->getTimestamp())
//
->setUser($userId);
//
//->setIcon($this->_urlGenerator->getAbsoluteURL($this->_urlGenerator->imagePath($this->_appName, 'folder.png')))
//
//->setLink($folderLink);
//
if ($this->_notificationManager->getCount($notification) === 0) {
//
$notification->setDateTime(new DateTime());
//
$this->_notificationManager->notify($notification);
//
}
$this
->
_log
(
'Notification add : archives processed'
);
$notification
=
$this
->
_notificationManager
->
createNotification
();
$notification
->
setApp
(
$this
->
_appName
)
->
setSubject
(
'job_processed'
,
[
'nb_success'
=>
$nbSuccess
,
'nb_total'
=>
$nbTotal
])
->
setObject
(
'dematpayslip_process'
,
$dateTimeNow
->
getTimestamp
())
->
setUser
(
$userId
);
//->setIcon($this->_urlGenerator->getAbsoluteURL($this->_urlGenerator->imagePath($this->_appName, 'folder.png')))
//->setLink($folderLink);
if
(
$this
->
_notificationManager
->
getCount
(
$notification
)
===
0
)
{
$notification
->
setDateTime
(
new
DateTime
());
$this
->
_notificationManager
->
notify
(
$notification
);
}
}
}
$this
->
_log
(
'Archives process : End'
);
...
...
This diff is collapsed.
Click to expand it.
lib/BackgroundJob/IndexationProcess.php
+
12
−
12
View file @
69135f2a
...
...
@@ -302,18 +302,18 @@ class IndexationProcess extends TimedJob {
$this
->
_activityManager
->
publish
(
$event
);
// notification
//
$this->_log('Notification add : indexation processed');
//
$notification = $this->_notificationManager->createNotification();
//
$notification->setApp($this->_appName)
//
->setSubject('job_processed', ['nb_success' => $nbSuccess, 'nb_total' => $nbTotal])
//
->setObject('dematpayslip_process', $dateTimeNow->getTimestamp())
//
->setUser($userId);
//
//->setIcon($this->_urlGenerator->getAbsoluteURL($this->_urlGenerator->imagePath($this->_appName, 'folder.png')))
//
//->setLink($folderLink);
//
if ($this->_notificationManager->getCount($notification) === 0) {
//
$notification->setDateTime(new DateTime());
//
$this->_notificationManager->notify($notification);
//
}
$this
->
_log
(
'Notification add : indexation processed'
);
$notification
=
$this
->
_notificationManager
->
createNotification
();
$notification
->
setApp
(
$this
->
_appName
)
->
setSubject
(
'job_processed'
,
[
'nb_success'
=>
$nbSuccess
,
'nb_total'
=>
$nbTotal
])
->
setObject
(
'dematpayslip_process'
,
$dateTimeNow
->
getTimestamp
())
->
setUser
(
$userId
);
//->setIcon($this->_urlGenerator->getAbsoluteURL($this->_urlGenerator->imagePath($this->_appName, 'folder.png')))
//->setLink($folderLink);
if
(
$this
->
_notificationManager
->
getCount
(
$notification
)
===
0
)
{
$notification
->
setDateTime
(
new
DateTime
());
$this
->
_notificationManager
->
notify
(
$notification
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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