SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class ImportCMS

Variables

NameVisibilityDescription
$old_widets (static) 
$page_ids (static) 
$revision_ids (static) 

Functions

NameVisibilityDescription
findOldWidgetsprivate (static)Report pages that contain old widgets
importpublic (static)Process given XML file into Sprout CMS 3 pages
processXmlPageprivate (static)Process DOMElement into page record with content
replaceFileUrlsprivate (static)Replace file URLs
replacePageIdsprivate (static)Replace page IDs within page URLS
updateContentprivate (static)Update content for Sprout CMS 3

private findOldWidgets

void ImportCMS::findOldWidgets ( mixed $rev_id , string $html );

Report pages that contain old widgets

public import

array ImportCMS::import ( string $filename );

Process given XML file into Sprout CMS 3 pages

private processXmlPage

void ImportCMS::processXmlPage ( DomElement $page , int $record_order , int $parent_id , int $subsite_id );

Process DOMElement into page record with content

private replaceFileUrls

string ImportCMS::replaceFileUrls ( string $html );

Replace file URLs
FROM: files/1702_icon_joint.small.png
TO: file/download/1702/small

private replacePageIds

string ImportCMS::replacePageIds ( string $html );

Replace page IDs within page URLS

private updateContent

void ImportCMS::updateContent ( );

Update content for Sprout CMS 3