protected function MigrateItemXML::constructItemUrl in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/sources/xml.inc \MigrateItemXML::constructItemUrl()
Creates a valid URL pointing to current item.
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: XML item ID
Return value
string Formatted string with replaced tokens
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 250 - 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);
}