SproutCMS

This is the code documentation for the SproutCMS project

class ImportCMS

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-11-25
**/
class NewClassName extends ImportCMS {
    
    /**
    * Replace file URLs
    * FROM: files/1702_icon_joint.small.png
    * TO: file/download/1702/small
    **/
    private function replaceFileUrls (string $html) {
        // Method code goes here
    }
    
    /**
    * Process given XML file into Sprout CMS 3 pages
    **/
    public function import (string $filename) {
        // Method code goes here
    }
    
    /**
    * Process DOMElement into page record with content
    **/
    private function processXmlPage (DomElement $page, int $record_order, int $parent_id, int $subsite_id) {
        // Method code goes here
    }
    
    /**
    * Update content for Sprout CMS 3
    **/
    private function updateContent () {
        // Method code goes here
    }
    
    /**
    * Replace page IDs within page URLS
    **/
    private function replacePageIds (string $html) {
        // Method code goes here
    }
    
    /**
    * Report pages that contain old widgets
    **/
    private function findOldWidgets ($rev_id, string $html) {
        // Method code goes here
    }
    
}
?>