MDL-43056 tool_uploadcourse: Add capability to upload courses from file
An entrypoint capability has been added that allows accessing the upload tool. Further relevant capability checks are then performed depending on the action being taken during the upload process. Co-authored-by: Marina Glancy <[email protected]>
This commit is contained in:
co-authored by
Marina Glancy
parent
f30110b5eb
commit
4807a4dd5f
@@ -174,7 +174,7 @@ class tool_uploadcourse_processor {
|
||||
/**
|
||||
* Execute the process.
|
||||
*
|
||||
* @param object $tracker the output tracker to use.
|
||||
* @param tool_uploadcourse_tracker $tracker the output tracker to use.
|
||||
* @return void
|
||||
*/
|
||||
public function execute($tracker = null) {
|
||||
@@ -324,7 +324,7 @@ class tool_uploadcourse_processor {
|
||||
* This only returns passed data, along with the errors.
|
||||
*
|
||||
* @param integer $rows number of rows to preview.
|
||||
* @param object $tracker the output tracker to use.
|
||||
* @param tool_uploadcourse_tracker $tracker the output tracker to use.
|
||||
* @return array of preview data.
|
||||
*/
|
||||
public function preview($rows = 10, $tracker = null) {
|
||||
|
||||
Reference in New Issue
Block a user