class import_repository extends abstract_repository implements import_repository_interface

internal  
 

Concrete Import Repository.

Ensures restoring routines bypass the Domain Logic generation (which arbitrarily updates timestamps and creates new event graphs). Uses DB Support to directly insert raw data provided by Moodle Restore.

Constants

private TABLE

private TABLE_META

Methods

int
import_item(array $data)

Re-inserts a raw item straight from an archive schema structure.

int
import_itemmeta(array $data)

Re-inserts a raw metadata map for a restored item.

Details

at line 43
int import_item(array $data)

Re-inserts a raw item straight from an archive schema structure.

Parameters

array $data

Raw item data

Return Value

int

The new database ID

at line 60
int import_itemmeta(array $data)

Re-inserts a raw metadata map for a restored item.

Parameters

array $data

Raw itemmeta data

Return Value

int

The new database ID