Framework mapper class.
More...
|
array | $collectionfrom |
| The collection of objects at origin.
|
|
array | $collectionto |
| The collection of objects at destination.
|
|
int | $from |
| The ID of the framework we're migrating from.
|
|
array | $mappings = array() |
| Mappings.
|
|
int | $to |
| The ID of the framework we're migrating to.
|
|
Framework mapper class.
- Copyright
- 2016 Frédéric Massart - FMCorz.net
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
tool_lpmigrate\framework_mapper::__construct |
( |
| $from, |
|
|
| $to ) |
Constructor.
- Parameters
-
int | $from | Framework ID from. |
int | $to | Framework ID to. |
◆ add_mapping()
tool_lpmigrate\framework_mapper::add_mapping |
( |
| $idfrom, |
|
|
| $idto ) |
Add a mapping.
- Parameters
-
int | $idfrom | From ID. |
int | $idto | To ID. |
◆ automap()
tool_lpmigrate\framework_mapper::automap |
( |
| ) |
|
Auto map the frameworks.
- Return values
-
◆ get_all_from()
tool_lpmigrate\framework_mapper::get_all_from |
( |
| ) |
|
Get all IDs at origin.
- Return values
-
◆ get_all_to()
tool_lpmigrate\framework_mapper::get_all_to |
( |
| ) |
|
Get all IDs at destination.
- Return values
-
◆ get_collection_from()
tool_lpmigrate\framework_mapper::get_collection_from |
( |
| ) |
|
|
protected |
Get the collection at origin.
- Return values
-
◆ get_collection_to()
tool_lpmigrate\framework_mapper::get_collection_to |
( |
| ) |
|
|
protected |
Get the collection at destination.
- Return values
-
◆ get_mappings()
tool_lpmigrate\framework_mapper::get_mappings |
( |
| ) |
|
Get the defined mappings.
- Return values
-
◆ get_unmapped_from()
tool_lpmigrate\framework_mapper::get_unmapped_from |
( |
| ) |
|
Get the IDs of the objects at origin which do not have a mapping at destination.
- Return values
-
◆ get_unmapped_objects_from()
tool_lpmigrate\framework_mapper::get_unmapped_objects_from |
( |
| ) |
|
Get the origin objects with missing mappings.
- Return values
-
◆ get_unmapped_objects_to()
tool_lpmigrate\framework_mapper::get_unmapped_objects_to |
( |
| ) |
|
Get the destination objects with missing mappings.
- Return values
-
◆ get_unmapped_to()
tool_lpmigrate\framework_mapper::get_unmapped_to |
( |
| ) |
|
Get the IDs of the objects at destination which do not have a mapping at origin.
- Return values
-
◆ has_mappings()
tool_lpmigrate\framework_mapper::has_mappings |
( |
| ) |
|
Whether some mappings were set.
- Return values
-
◆ reset_mappings()
tool_lpmigrate\framework_mapper::reset_mappings |
( |
| ) |
|
Reset the mappings.
- Return values
-
The documentation for this class was generated from the following file:
- admin/tool/lpmigrate/classes/framework_mapper.php