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
ff203bc9
"coursebackups.php" did not exist on "cace12d19b26e7a74c340c6bef3d3e4f5e168389"
Unverified
Commit
ff203bc9
authored
6 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Coding style
parent
ebd0bcd5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
classes/local/backup/backup_lifecycle_workflow.php
+7
-6
7 additions, 6 deletions
classes/local/backup/backup_lifecycle_workflow.php
with
7 additions
and
6 deletions
classes/local/backup/backup_lifecycle_workflow.php
+
7
−
6
View file @
ff203bc9
...
@@ -63,9 +63,9 @@ class backup_lifecycle_workflow {
...
@@ -63,9 +63,9 @@ class backup_lifecycle_workflow {
$this
->
writer
->
setIndent
(
true
);
$this
->
writer
->
setIndent
(
true
);
$this
->
writer
->
startDocument
();
$this
->
writer
->
startDocument
();
$this
->
writer
->
startElement
(
"workflow"
);
$this
->
writer
->
startElement
(
"workflow"
);
$this
->
write
W
orkflow
();
$this
->
write
_w
orkflow
();
$this
->
write
S
teps
();
$this
->
write
_s
teps
();
$this
->
write
T
riggers
();
$this
->
write
_t
riggers
();
$this
->
writer
->
endElement
();
$this
->
writer
->
endElement
();
$this
->
writer
->
endDocument
();
$this
->
writer
->
endDocument
();
fwrite
(
$handle
,
$this
->
writer
->
flush
());
fwrite
(
$handle
,
$this
->
writer
->
flush
());
...
@@ -85,10 +85,11 @@ class backup_lifecycle_workflow {
...
@@ -85,10 +85,11 @@ class backup_lifecycle_workflow {
die
();
die
();
}
}
/**
/**
* Write the workflow with all its attributes to the xmlwriter.
* Write the workflow with all its attributes to the xmlwriter.
*/
*/
private
function
write
W
orkflow
()
{
private
function
write
_w
orkflow
()
{
foreach
(
get_object_vars
(
$this
->
workflow
)
as
$prop
=>
$value
)
{
foreach
(
get_object_vars
(
$this
->
workflow
)
as
$prop
=>
$value
)
{
$this
->
writer
->
writeAttribute
(
$prop
,
$value
);
$this
->
writer
->
writeAttribute
(
$prop
,
$value
);
}
}
...
@@ -97,7 +98,7 @@ class backup_lifecycle_workflow {
...
@@ -97,7 +98,7 @@ class backup_lifecycle_workflow {
/**
/**
* Write all trigger of the workflow with all their attributes to the xmlwriter.
* Write all trigger of the workflow with all their attributes to the xmlwriter.
*/
*/
private
function
write
T
riggers
()
{
private
function
write
_t
riggers
()
{
foreach
(
$this
->
trigger
as
$trigger
)
{
foreach
(
$this
->
trigger
as
$trigger
)
{
$this
->
writer
->
startElement
(
"trigger"
);
$this
->
writer
->
startElement
(
"trigger"
);
foreach
(
get_object_vars
(
$trigger
)
as
$prop
=>
$value
)
{
foreach
(
get_object_vars
(
$trigger
)
as
$prop
=>
$value
)
{
...
@@ -118,7 +119,7 @@ class backup_lifecycle_workflow {
...
@@ -118,7 +119,7 @@ class backup_lifecycle_workflow {
/**
/**
* Write all steps of the workflow with all their attributes to the xmlwriter.
* Write all steps of the workflow with all their attributes to the xmlwriter.
*/
*/
private
function
write
S
teps
()
{
private
function
write
_s
teps
()
{
foreach
(
$this
->
steps
as
$step
)
{
foreach
(
$this
->
steps
as
$step
)
{
$this
->
writer
->
startElement
(
"step"
);
$this
->
writer
->
startElement
(
"step"
);
foreach
(
get_object_vars
(
$step
)
as
$prop
=>
$value
)
{
foreach
(
get_object_vars
(
$step
)
as
$prop
=>
$value
)
{
...
...
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