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
f58b9a97
Unverified
Commit
f58b9a97
authored
8 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
PHPCS
parent
81c2abc6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
development.php
+24
-0
24 additions, 0 deletions
development.php
step/email/lib.php
+4
-4
4 additions, 4 deletions
step/email/lib.php
with
28 additions
and
4 deletions
development.php
0 → 100644
+
24
−
0
View file @
f58b9a97
<?php
namespace
tool_cleanupcourses
;
use
tool_cleanupcourses\manager\lib_manager
;
use
tool_cleanupcourses\manager\step_manager
;
require_once
(
dirname
(
__FILE__
)
.
'/../../../config.php'
);
$processor
=
new
cleanup_processor
();
$processor
->
call_trigger
();
$steps
=
step_manager
::
get_step_types
();
/* @var \tool_cleanupcourses\step\base[] $steplibs stores the lib classes of all step subplugins.*/
$steplibs
=
array
();
foreach
(
$steps
as
$id
=>
$step
)
{
$steplibs
[
$id
]
=
lib_manager
::
get_step_lib
(
$id
);
$steplibs
[
$id
]
->
pre_processing_bulk_operation
();
}
$processor
->
process_courses
();
foreach
(
$steps
as
$id
=>
$step
)
{
$steplibs
[
$id
]
->
post_processing_bulk_operation
();
}
// trigger_manager::register('startdatedelay');
// trigger_manager::register('sitecourse');
// trigger_manager::register('dummy');
\ No newline at end of file
This diff is collapsed.
Click to expand it.
step/email/lib.php
+
4
−
4
View file @
f58b9a97
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