Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
0bfafc5b
Commit
0bfafc5b
authored
Sep 24, 2015
by
Mark Nelson
Browse files
MDL-46455 mod_*: added restore mapping to events
parent
ef15eae4
Changes
170
Hide whitespace changes
Inline
Side-by-side
mod/assign/classes/event/all_submissions_downloaded.php
View file @
0bfafc5b
...
...
@@ -115,4 +115,8 @@ class all_submissions_downloaded extends base {
parent
::
validate_data
();
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
}
}
mod/assign/classes/event/assessable_submitted.php
View file @
0bfafc5b
...
...
@@ -150,4 +150,13 @@ class assessable_submitted extends base {
throw
new
\
coding_exception
(
'The \'submission_editable\' value must be set in other.'
);
}
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign_submission'
,
'restore'
=>
'submission'
);
}
public
static
function
get_other_mapping
()
{
// Nothing to map.
return
false
;
}
}
mod/assign/classes/event/batch_set_marker_allocation_viewed.php
View file @
0bfafc5b
...
...
@@ -123,4 +123,11 @@ class batch_set_marker_allocation_viewed extends base {
throw
new
\
coding_exception
(
'The \'assignid\' value must be set in other.'
);
}
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'assignid'
]
=
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
return
$othermapped
;
}
}
mod/assign/classes/event/batch_set_workflow_state_viewed.php
View file @
0bfafc5b
...
...
@@ -123,4 +123,11 @@ class batch_set_workflow_state_viewed extends base {
throw
new
\
coding_exception
(
'The \'assignid\' value must be set in other.'
);
}
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'assignid'
]
=
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
return
$othermapped
;
}
}
mod/assign/classes/event/extension_granted.php
View file @
0bfafc5b
...
...
@@ -121,4 +121,8 @@ class extension_granted extends base {
throw
new
\
coding_exception
(
'The \'relateduserid\' must be set.'
);
}
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
}
}
mod/assign/classes/event/feedback_viewed.php
View file @
0bfafc5b
...
...
@@ -119,4 +119,15 @@ class feedback_viewed extends base {
throw
new
\
coding_exception
(
'The \'assignid\' value must be set in other.'
);
}
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign_grades'
,
'restore'
=>
'grade'
);
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'assignid'
]
=
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
return
$othermapped
;
}
}
mod/assign/classes/event/grading_form_viewed.php
View file @
0bfafc5b
...
...
@@ -131,4 +131,11 @@ class grading_form_viewed extends base {
throw
new
\
coding_exception
(
'The \'assignid\' value must be set in other.'
);
}
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'assignid'
]
=
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
return
$othermapped
;
}
}
mod/assign/classes/event/grading_table_viewed.php
View file @
0bfafc5b
...
...
@@ -123,4 +123,11 @@ class grading_table_viewed extends base {
throw
new
\
coding_exception
(
'The \'assignid\' value must be set in other.'
);
}
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'assignid'
]
=
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
return
$othermapped
;
}
}
mod/assign/classes/event/identities_revealed.php
View file @
0bfafc5b
...
...
@@ -115,4 +115,8 @@ class identities_revealed extends base {
parent
::
validate_data
();
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
}
}
mod/assign/classes/event/marker_updated.php
View file @
0bfafc5b
...
...
@@ -140,4 +140,15 @@ class marker_updated extends base {
throw
new
\
coding_exception
(
'The \'markerid\' value must be set in other.'
);
}
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'markerid'
]
=
array
(
'db'
=>
'user'
,
'restore'
=>
'user'
);
return
$othermapped
;
}
}
mod/assign/classes/event/reveal_identities_confirmation_page_viewed.php
View file @
0bfafc5b
...
...
@@ -122,4 +122,11 @@ class reveal_identities_confirmation_page_viewed extends base {
throw
new
\
coding_exception
(
'The \'assignid\' value must be set in other.'
);
}
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'assignid'
]
=
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
return
$othermapped
;
}
}
mod/assign/classes/event/statement_accepted.php
View file @
0bfafc5b
...
...
@@ -119,4 +119,8 @@ class statement_accepted extends base {
parent
::
validate_data
();
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign_submission'
,
'restore'
=>
'submission'
);
}
}
mod/assign/classes/event/submission_confirmation_form_viewed.php
View file @
0bfafc5b
...
...
@@ -123,4 +123,11 @@ class submission_confirmation_form_viewed extends base {
throw
new
\
coding_exception
(
'The \'assignid\' value must be set in other.'
);
}
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'assignid'
]
=
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
return
$othermapped
;
}
}
mod/assign/classes/event/submission_created.php
View file @
0bfafc5b
...
...
@@ -81,4 +81,12 @@ abstract class submission_created extends base {
throw
new
\
coding_exception
(
'The \'submissionstatus\' value must be set in other.'
);
}
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'submissionid'
]
=
array
(
'db'
=>
'assign_submission'
,
'restore'
=>
'submission'
);
$othermapped
[
'groupid'
]
=
array
(
'db'
=>
'groups'
,
'restore'
=>
'group'
);
return
$othermapped
;
}
}
mod/assign/classes/event/submission_duplicated.php
View file @
0bfafc5b
...
...
@@ -117,4 +117,8 @@ class submission_duplicated extends base {
parent
::
validate_data
();
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign_submission'
,
'restore'
=>
'submission'
);
}
}
mod/assign/classes/event/submission_form_viewed.php
View file @
0bfafc5b
...
...
@@ -139,4 +139,11 @@ class submission_form_viewed extends base {
throw
new
\
coding_exception
(
'The \'assignid\' value must be set in other.'
);
}
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'assignid'
]
=
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
return
$othermapped
;
}
}
mod/assign/classes/event/submission_graded.php
View file @
0bfafc5b
...
...
@@ -123,4 +123,8 @@ class submission_graded extends base {
throw
new
\
coding_exception
(
'The \'relateduserid\' must be set.'
);
}
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign_grades'
,
'restore'
=>
'grade'
);
}
}
mod/assign/classes/event/submission_locked.php
View file @
0bfafc5b
...
...
@@ -123,4 +123,8 @@ class submission_locked extends base {
throw
new
\
coding_exception
(
'The \'relateduserid\' must be set.'
);
}
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
}
}
mod/assign/classes/event/submission_status_updated.php
View file @
0bfafc5b
...
...
@@ -121,4 +121,13 @@ class submission_status_updated extends base {
throw
new
\
coding_exception
(
'The \'newstatus\' value must be set in other.'
);
}
}
public
static
function
get_objectid_mapping
()
{
return
array
(
'db'
=>
'assign_submission'
,
'restore'
=>
'submission'
);
}
public
static
function
get_other_mapping
()
{
// Nothing to map.
return
false
;
}
}
mod/assign/classes/event/submission_status_viewed.php
View file @
0bfafc5b
...
...
@@ -124,4 +124,11 @@ class submission_status_viewed extends base {
throw
new
\
coding_exception
(
'The \'assignid\' value must be set in other.'
);
}
}
public
static
function
get_other_mapping
()
{
$othermapped
=
array
();
$othermapped
[
'assignid'
]
=
array
(
'db'
=>
'assign'
,
'restore'
=>
'assign'
);
return
$othermapped
;
}
}
Prev
1
2
3
4
5
…
9
Next
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!
Cancel
Please
register
or
sign in
to comment