Class import_info, describing objects which represent a resource being imported by a user.
More...
|
| __construct (int $userid, remote_resource $resource, stdClass $config) |
| The import_controller constructor. More...
|
|
| get_config () |
| Get the configuration data pertaining to the import. More...
|
|
| get_id () |
| Get the id of this object.
|
|
| get_resource () |
| Get the remote resource being imported. More...
|
|
| purge () |
| Remove all information about an import from the store.
|
|
| save () |
| Save this object to a store which is accessible across requests.
|
|
| set_config (\stdClass $config) |
| Set the configuration data pertaining to the import. More...
|
|
|
stdClass | $config |
| $config config data pertaining to the import process, e.g. More...
|
|
string | $id |
| $id string identifier for this object.
|
|
remote_resource | $resource |
| $resource the resource being imported.
|
|
int | $userid |
| $userid the user conducting this import.
|
|
Class import_info, describing objects which represent a resource being imported by a user.
Objects of this class encapsulate both:
- information about the resource (remote_resource).
- config data pertaining to the import process, such as the destination course and section and how the resource should be treated (i.e. the type and the name of the module selected as the import handler)
- Copyright
- 2020 Jake Dallimore jrhda.nosp@m.llim.nosp@m.ore@g.nosp@m.mail.nosp@m..com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
tool_moodlenet\local\import_info::__construct |
( |
int |
$userid, |
|
|
remote_resource |
$resource, |
|
|
stdClass |
$config |
|
) |
| |
The import_controller constructor.
- Parameters
-
int | $userid | the id of the user performing the import. |
remote_resource | $resource | the resource being imported. |
stdClass | $config | import config like 'course', 'section', 'type'. |
◆ get_config()
tool_moodlenet\local\import_info::get_config |
( |
| ) |
|
Get the configuration data pertaining to the import.
- Return values
-
stdClass | the import configuration data. |
◆ get_resource()
tool_moodlenet\local\import_info::get_resource |
( |
| ) |
|
Get the remote resource being imported.
- Return values
-
◆ load()
static tool_moodlenet\local\import_info::load |
( |
string |
$id | ) |
|
|
static |
Get an import_info object by id.
- Parameters
-
- Return values
-
◆ set_config()
tool_moodlenet\local\import_info::set_config |
( |
\stdClass |
$config | ) |
|
Set the configuration data pertaining to the import.
- Parameters
-
stdClass | $config | the configuration data to set. |
◆ $config
stdClass tool_moodlenet\local\import_info::$config |
|
protected |
$config config data pertaining to the import process, e.g.
course, section, type.
The documentation for this class was generated from the following file: