Forums / Developer / Import XML Data Topic / Comment44879
Olivier Pierret
Wednesday 14 December 2005 12:28:02 pm
Surely I guess we need to add a file called import-cli.php that would parse the argument and call the
function &importXMLData( $xmldata, $datatype, $remove, $movetotrash)
in importXMLDatafunctioncollection.
Of course context should be set appropriately if not I think the call:
$class =& eZContentClass::fetchByIdentifier( $identifiantClasse );
as many other kernel related eZ API calls.
I think we should have a look at how runcronjob.php is written.
Another option would be to wait for the Xavier hacks to this extension because I know he is using a script approach to run this extension.