\Horde\RefactorConfig

Refactoring configuration.

use Horde\Refactor; $config = new Refactor\Config('config.php'); $rule = new Refactor\Rule\SomeRule('ToRefactor.php', $config->SomeRule);

or

use Horde\Refactor; $ruleConfig = new Refactor\Config\SomeRule(array('foo' => 'bar')); $rule = new Refactor\Rule\SomeRule('ToRefactor.php', $ruleConfig);

Summary

Methods
Properties
Constants
__construct()
__get()
No public properties found
No constants found
_loadClass()
$_config
N/A
No private methods found
No private properties found
N/A

Properties

$_config

$_config : array

All loaded configuration objects.

Type

array

Methods

__construct()

__construct(string  $file = null) 

Constructor.

Parameters

string $file

Configuration file location.

__get()

__get(  $rule) 

Getter for the individual rule configurations.

Parameters

$rule

_loadClass()

_loadClass(string  $class, array  $config = array()) 

Loads a configuration object.

Parameters

string $class

Class name to load.

array $config

Class configuration.