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.
|
|
| get_config () |
| Get the configuration data pertaining to the import.
|
|
| get_id () |
| Get the id of this object.
|
|
| get_resource () |
| Get the remote resource being imported.
|
|
| 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.
|
|
|
static | load (string $id) |
| Get an import_info object by id.
|
|
|
stdClass | $config |
| $config config data pertaining to the import process, e.g.
|
|
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
-
remote_resource | the remote resource being imported. |
◆ load()
static tool_moodlenet\local\import_info::load |
( |
string | $id | ) |
|
|
static |
Get an import_info object by id.
- Parameters
-
string | $id | the id of the import_info object to load. |
- Return values
-
mixed | an import_info object if found, otherwise null. |
◆ 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: