Craft\Imager_ConfigModel::__construct PHP Method

__construct() public method

Constructor
public __construct ( null $overrides = null )
$overrides null
    public function __construct($overrides = null)
    {
        foreach ($this->attributeNames() as $attr) {
            if ($overrides !== null && isset($overrides[$attr])) {
                $this[$attr] = $overrides[$attr];
                $this->_addToOverrideFilestring($attr, $overrides[$attr]);
            } else {
                $this[$attr] = craft()->config->get($attr, 'imager');
            }
        }
        if (isset(ImagerService::$craftPositonTranslate[(string) $this->position])) {
            $this->position = ImagerService::$craftPositonTranslate[(string) $this->position];
        }
        $this->position = str_replace('%', '', $this->position);
    }