Sunnysideup\UpgradeToSilverstripe4\Api\LoadReplacementData
Synopsis
class LoadReplacementData
{
- // members
- protected string $ymlFileName = '.upgrade.replacements.yml';
- protected ModuleUpgrader $myMu = NULL;
- protected string $folderContainingReplacementData = '';
- protected string $toFolders = 'SS4';
- protected array $fullArray = ;
- protected array $languages = ;
- protected array $flatFindArray = ;
- protected array $flatReplacedArray = ;
- protected array $paths = ;
- // methods
- public void __construct()
- public void setToFolder()
- public void getReplacementArrays()
- public void getLanguages()
- public void getFlatFindArray()
- public void getFlatReplacedArray()
- protected void mu()
- protected void defaultLocation()
- protected void compileFlatArray()
- protected array getData()
- protected array getPaths()
- protected static array mergeConfig()
Members
protected
- $flatFindArray — array
- $flatReplacedArray — array
- $folderContainingReplacementData
—
string
folder containing the replacement file - $fullArray
—
array
array of replacements - $languages — array
- $myMu
—
Sunnysideup\UpgradeToSilverstripe4\ModuleUpgrader
Module Object - $paths
—
array
path where to look for data. - $toFolders
—
string
name of the sub-folder for the replacement data. -
$ymlFileName
Standard file name
Methods
protected
- compileFlatArray()
- defaultLocation()
- getData() — retrieve all replacements
- getPaths() — returns a list of paths to be checked for replacement data.
- mergeConfig() — merge config of two files ...
- mu()