src/Loaders/ConfigurationValueLoader.php
/**
     * Loads and returns the configuration value for the key the instance has been initialized with.
     *
     * @param \TechDivision\Import\Configuration\ParamsConfigurationInterface $configuration The configuration instance to load the value from
     *
     * @return \ArrayAccess The array with the configuration value
     */
Loads and returns the configuration value for the key the instance has been initialized with.
@param \TechDivision\Import\Configuration\ParamsConfigurationInterface $configuration The configuration instance to load the value from

@return \ArrayAccess The array with the configuration value
Loads and returns the configuration value for the key the instance has been initialized with . @param \ TechDivision \ Import \ Configuration \ ParamsConfigurationInterface $configuration The configuration instance to load the value from @return \ ArrayAccess The array with the configuration value
public function load(ParamsConfigurationInterface $configuration = null)
    {
        $values = array();
        if ($configuration === null) {
            return $values;
        }
        if ($configuration instanceof PluginConfigurationInterface) {
            $values = array_merge($values, $this->load($configuration->getConfiguration()));
        }
        if ($configuration instanceof SubjectConfigurationInterface) {
            $values = array_merge($values, $this->load($configuration->getPluginConfiguration()));
        }
        if ($configuration->hasParam($configurationKey = $this->getConfigurationKey())) {
            $values = array_merge($configuration->getParam($configurationKey));
        }
        return $values;
    }
public function load ( ParamsConfigurationInterface $ configuration = null ) { $ values = array ( ) ; if ( $ configuration === null ) { return $ values ; } if ( $ configuration instanceof PluginConfigurationInterface ) { $ values = array_merge ( $ values , $ this -> load ( $ configuration -> getConfiguration ( ) ) ) ; } if ( $ configuration instanceof SubjectConfigurationInterface ) { $ values = array_merge ( $ values , $ this -> load ( $ configuration -> getPluginConfiguration ( ) ) ) ; } if ( $ configuration -> hasParam ( $ configurationKey = $ this -> getConfigurationKey ( ) ) ) { $ values = array_merge ( $ configuration -> getParam ( $ configurationKey ) ) ; } return $ values ; }
Loads and returns the configuration value for the key the instance has been initialized with.
Loads and returns the configuration value for the key the instance has been initialized with .
// return an empty array if the param has NOT been set // query whether or not an instance has been passed // load the values from the plugin configuration recursively // load the values from the subject configuration recursively // finally load the values from the actual configuration // return the values