ContentImporter
class ContentImporter (View source)
Constants
IMPORT_MODE_INSTALL |
|
IMPORT_MODE_UPGRADE |
|
Properties
static protected | $mcBlockIDs | ||
static protected | $ptComposerOutputControlIDs | ||
protected | $home | ||
protected | $importMode |
Methods
__construct(string $importMode = self::IMPORT_MODE_UPGRADE)
No description
void
setImportMode(string $importMode)
No description
importContentFile($file)
No description
setHomePage($c)
No description
importContentString($string)
No description
static
getMasterCollectionTemporaryBlockIDs()
No description
static
addMasterCollectionBlockID($b, $id)
No description
static
getMasterCollectionTemporaryBlockID($b)
No description
static
static
getPageTypeComposerFormLayoutSetControlFromTemporaryID($id)
No description
importFiles($fromPath, $computeThumbnails = true)
No description
moveFilesByName(array $fileNames, $folder)
Moves files with a particular filename to a particular folder.
deleteFilesByName(array $fileNames)
Deletes files with a particular filename.
Details
__construct(string $importMode = self::IMPORT_MODE_UPGRADE)
No description
void
setImportMode(string $importMode)
No description
importContentFile($file)
No description
setHomePage($c)
No description
importContentString($string)
No description
importXml(SimpleXMLElement $xml)
No description
protected
import(SimpleXMLElement $element)
No description
static
getMasterCollectionTemporaryBlockIDs()
No description
static
addMasterCollectionBlockID($b, $id)
No description
static
getMasterCollectionTemporaryBlockID($b)
No description
static
addPageTypeComposerOutputControlID(FormLayoutSetControl $control, $id)
No description
static
getPageTypeComposerFormLayoutSetControlFromTemporaryID($id)
No description
importFiles($fromPath, $computeThumbnails = true)
No description
moveFilesByName(array $fileNames, $folder)
Moves files with a particular filename to a particular folder.
deleteFilesByName(array $fileNames)
Deletes files with a particular filename.
Note: only use this in highly controlled environments, as in resetting sample content.