protected function MigrateItemXML::constructItemUrl in Migrate 6.2
Same name and namespace in other branches
- 7.2 plugins/sources/xml.inc \MigrateItemXML::constructItemUrl()
The default implementation simply replaces the :id token in the URL with the ID obtained from MigrateListXML. Override if the item URL is not so easily expressed from the ID.
Parameters
mixed $id:
1 call to MigrateItemXML::constructItemUrl()
- MigrateItemXML::getItem in plugins/
sources/ xml.inc - Implementors are expected to return an object representing a source item.
File
- plugins/
sources/ xml.inc, line 171 - Support for migration from XML sources.
Class
- MigrateItemXML
- Implementation of MigrateItem, for retrieving a parsed XML document given an ID provided by a MigrateList class.
Code
protected function constructItemUrl($id) {
return str_replace(':id', $id, $this->itemUrl);
}