PHP Class Jarves\Configuration\Database

Inheritance: extends Model
Datei anzeigen Open project: jarves/jarves

Protected Properties

Property Type Description
$connections Connection[]
$docBlocks

Public Methods

Method Description
addConnection ( Connection $connection )
getConnections ( ) : Connection[]
getMainConnection ( ) : Connection Returns a writeable/master connection.
getSlaveConnections ( ) : Connection[]
hasSlaveConnection ( ) : boolean
isValid ( ) Checks if a connection is configured and it contains valid values.
setConnections ( array $connections = null )

Method Details

addConnection() public method

public addConnection ( Connection $connection )
$connection Connection

getConnections() public method

public getConnections ( ) : Connection[]
return Connection[]

getMainConnection() public method

Returns a writeable/master connection.
public getMainConnection ( ) : Connection
return Connection

getSlaveConnections() public method

public getSlaveConnections ( ) : Connection[]
return Connection[]

hasSlaveConnection() public method

public hasSlaveConnection ( ) : boolean
return boolean

isValid() public method

Checks if a connection is configured and it contains valid values.
public isValid ( )

setConnections() public method

public setConnections ( array $connections = null )
$connections array

Property Details

$connections protected_oe property

protected Connection[],Jarves\Configuration $connections
return Connection[]

$docBlocks protected_oe property

protected $docBlocks