Swiftriver\Core\Configuration\ConfigurationHandlers\PreProcessingStepsConfigurationHandler::__construct PHP Method

__construct() public method

Constructor for the PreProcessingStepsConfigurationHandler
public __construct ( string $configurationFilePath )
$configurationFilePath string
    public function __construct($configurationFilePath)
    {
        //Set the file name
        $this->configurationFilePath = $configurationFilePath;
        //Use the base class to open the xml
        $xml = parent::SaveOpenConfigurationFile($configurationFilePath, "preProcessingSteps");
        //Set the xml to class level
        $this->xml = $xml;
        //Set up the class level array to hold the pre processor configuration
        $this->PreProcessingSteps = array();
        //loop around the xml elements and add the confi t the array
        foreach ($xml->preProcessingSteps->step as $step) {
            $this->PreProcessingSteps[] = new \Swiftriver\Core\ObjectModel\PreProcessingStepEntry((string) $step["name"], (string) $step["className"], (string) $step["filePath"]);
        }
    }
PreProcessingStepsConfigurationHandler