Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-tool_lifecycle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-tool_lifecycle
Commits
fcc3cf8e
Unverified
Commit
fcc3cf8e
authored
8 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Correctly configured the cron task
parent
6daae338
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
classes/task/process_cleanup.php
+1
-1
1 addition, 1 deletion
classes/task/process_cleanup.php
db/tasks.php
+39
-0
39 additions, 0 deletions
db/tasks.php
lang/en/tool_cleanupcourses.php
+2
-0
2 additions, 0 deletions
lang/en/tool_cleanupcourses.php
version.php
+1
-1
1 addition, 1 deletion
version.php
with
43 additions
and
2 deletions
classes/task/process_cleanup.php
+
1
−
1
View file @
fcc3cf8e
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* @copyright 2017 Tobias Reischmann WWU
* @copyright 2017 Tobias Reischmann WWU
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
*/
namespace
tool_cleanupcourses
;
namespace
tool_cleanupcourses
\task
;
use
tool_cleanupcourses\manager\lib_manager
;
use
tool_cleanupcourses\manager\lib_manager
;
use
tool_cleanupcourses\manager\step_manager
;
use
tool_cleanupcourses\manager\step_manager
;
...
...
This diff is collapsed.
Click to expand it.
db/tasks.php
0 → 100644
+
39
−
0
View file @
fcc3cf8e
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Definition of cleanup courses scheduled tasks.
*
* @package tool_cleanupcourses
* @category task
* @copyright 2017 Tobias Reischmann WWU
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$tasks
=
array
(
array
(
'classname'
=>
'tool_cleanupcourses\task\process_cleanup'
,
'blocking'
=>
0
,
'minute'
=>
'*'
,
'hour'
=>
'*'
,
'day'
=>
'*'
,
'month'
=>
'*'
,
'dayofweek'
=>
'*'
,
'faildelay'
=>
1
,
)
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lang/en/tool_cleanupcourses.php
+
2
−
0
View file @
fcc3cf8e
...
@@ -40,6 +40,8 @@ $string['step_settings_header'] = 'Specific settings of the step type';
...
@@ -40,6 +40,8 @@ $string['step_settings_header'] = 'Specific settings of the step type';
$string
[
'general_settings_header'
]
=
'General Settings'
;
$string
[
'general_settings_header'
]
=
'General Settings'
;
$string
[
'followedby_none'
]
=
'None'
;
$string
[
'followedby_none'
]
=
'None'
;
$string
[
'process_cleanup'
]
=
'Run the cleanup courses processes'
;
$string
[
'trigger_subpluginname'
]
=
'Subplugin Name'
;
$string
[
'trigger_subpluginname'
]
=
'Subplugin Name'
;
$string
[
'trigger_enabled'
]
=
'Enabled'
;
$string
[
'trigger_enabled'
]
=
'Enabled'
;
$string
[
'trigger_sortindex'
]
=
'Up/Down'
;
$string
[
'trigger_sortindex'
]
=
'Up/Down'
;
...
...
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
fcc3cf8e
...
@@ -23,5 +23,5 @@
...
@@ -23,5 +23,5 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
;
defined
(
'MOODLE_INTERNAL'
)
||
die
;
$plugin
->
version
=
201706
1903
;
$plugin
->
version
=
201706
2100
;
$plugin
->
component
=
'tool_cleanupcourses'
;
$plugin
->
component
=
'tool_cleanupcourses'
;
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