}

// Check if valid RSS ID //
if ( !is_numeric( $rssImportID ) )
{
    // Create default rssImport object to use
    $rssImport = eZRSSImport::create();
    $rssImport->store();
    $rssImportID = $rssImport->attribute( 'id' );
}

// Fetch RSS Import object //
$rssImport = eZRSSImport::fetch( $rssImportID, true, eZRSSImport::STATUS_DRAFT );
if ( !$rssImport )
{
    $rssImport = eZRSSImport::fetch( $rssImportID, true, eZRSSImport::STATUS_VALID );
    if ( $rssImport )
    {
        $rssImport->setAttribute( 'status', eZRSSImport::STATUS_DRAFT );
        $rssImport->store();
    }
}
if ( !$rssImport )
{
    return $Module->handleError( eZError::KERNEL_NOT_AVAILABLE, 'rss' );
}
else
{
    $timeout = checkTimeout( $rssImport );
    if ( $timeout !== false )
    {
else
{
    $cli->warning( "\n\nTotal objects re-published with the published and modified date updated: $publicationDatePublishCount");
}
*/
/**
 * File containing the rssimport.php cronjob code
 *
 * @copyright Copyright (C) 1999-2013 eZ Systems AS. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
 * @version  2013.5
 * @package kernel
 */
//For ezUser, we would make this the ezUser class id but otherwise just pick and choose.
//fetch this class
$rssImportArray[] = eZRSSImport::fetch($rssFeedExportID);
// Loop through all configured and active rss imports. If something goes wrong while processing them, continue to next import
foreach ($rssImportArray as $rssImport) {
    // Get RSSImport object
    $rssSource = $rssImport->attribute('url');
    $addCount = 0;
    $cli->output('RSSImport ' . $rssImport->attribute('name') . ': Starting.');
    $xmlData = eZHTTPTool::getDataByURL($rssSource, false, 'eZ Publish RSS Import');
    if ($xmlData === false) {
        $cli->output('RSSImport ' . $rssImport->attribute('name') . ': Failed to open RSS feed file: ' . $rssSource);
        continue;
    }
    // Create DomDocument from http data
    $domDocument = new DOMDocument('1.0', 'utf-8');
    $success = $domDocument->loadXML($xmlData);
    if (!$success) {