Doctrine


Doctrine\DBAL\Configuration
/Doctrine/DBAL/Configuration.php at line 39

Class Configuration

Configuration

public class Configuration

Configuration container for the Doctrine DBAL.

License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
2.0
Version:
$Revision: 3938 $
Author:
Guilherme Blanco
Jonathan Wage
Roman Borschel
Internal:
When adding a new configuration option just write a getter/setter pair and add the option to the _attributes array with a proper default value.

Field Summary
protected array

$_attributes

The attributes that are contained in the configuration.

Constructor Summary

Configuration()

Creates a new DBAL configuration instance.

Method Summary
SQLLogger

getSQLLogger()

Gets the SQL logger that is used.

void

setSQLLogger(SQLLogger logger)

Sets the SQL logger to use.

Field Detail

/Doctrine/DBAL/Configuration.php at line 47

_attributes

protected array $_attributes = array()

The attributes that are contained in the configuration. Values are default values.


Constructor Detail

/Doctrine/DBAL/Configuration.php at line 52

Configuration

public Configuration()

Creates a new DBAL configuration instance.


Method Detail

/Doctrine/DBAL/Configuration.php at line 74

getSQLLogger

public SQLLogger getSQLLogger()

Gets the SQL logger that is used.


/Doctrine/DBAL/Configuration.php at line 64

setSQLLogger

public void setSQLLogger(SQLLogger logger)

Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.


Doctrine