PHP Class MageConfigSync\ConfigYaml

Datei anzeigen Open project: punkstar/mageconfigsync Class Usage Examples

Public Methods

Method Description
__construct ( array $data, $environment = false )
build ( ConfigurationAdapter $config_adapter, boolean $environment = false ) : ConfigYaml
buildScopeKey ( $scope, $scope_id ) : string
compare ( ConfigYaml $a, ConfigYaml $b ) : array
extractFromScopeKey ( $scope_key ) : array
getData ( )
toArray ( boolean $forced_environment = false ) : array
toYaml ( boolean $forced_environment = false ) : string

Method Details

__construct() public method

public __construct ( array $data, $environment = false )
$data array

build() public static method

public static build ( ConfigurationAdapter $config_adapter, boolean $environment = false ) : ConfigYaml
$config_adapter MageConfigSync\Magento\ConfigurationAdapter
$environment boolean
return ConfigYaml

buildScopeKey() public static method

public static buildScopeKey ( $scope, $scope_id ) : string
$scope
$scope_id
return string

compare() public static method

public static compare ( ConfigYaml $a, ConfigYaml $b ) : array
$a ConfigYaml
$b ConfigYaml
return array

extractFromScopeKey() public static method

public static extractFromScopeKey ( $scope_key ) : array
$scope_key
return array

getData() public method

public getData ( )

toArray() public method

public toArray ( boolean $forced_environment = false ) : array
$forced_environment boolean
return array

toYaml() public method

public toYaml ( boolean $forced_environment = false ) : string
$forced_environment boolean
return string