\FW\Data\StandardFWAdapter

Adapter module implementation

Summary

Methods
Properties
Constants
__construct()
connect()
disconnect()
__call()
getPdo()
getDbName()
getQueryBuilder()
model()
call()
init()
No public properties found
No constants found
No protected methods found
$container
$config
$connection
$isConnected
N/A
No private methods found
No private properties found
N/A

Properties

$connection

$connection : \Pixie\Connection

Connection module

Type

\Pixie\Connection

$isConnected

$isConnected : boolean

Whether or not a connection has been established

Type

boolean

Methods

__construct()

__construct(\FW\Utils\Container  $c) 

Classes that inherit from this class cannot override the constructor.

Sets up the injector

Parameters

\FW\Utils\Container $c

The dependency injection container

connect()

connect() 

Opens a connection to the DB

disconnect()

disconnect() 

Closes a connection

__call()

__call(  $name,   $args) 

Parameters

$name
$args

getPdo()

getPdo() 

getDbName()

getDbName() 

getQueryBuilder()

getQueryBuilder() 

model()

model(string  $name) : string

Gets the model name of the class if it exists

Parameters

string $name

Shortened name of model (corresponds to app.config)

Throws

\FW\Data\Standard\Exception\NoSuchModelException

If the model does not exist

Returns

string —

The fully qualified model name if it exists

call()

call() 

Calls a static function on a specified model

init()

init() 

{@inheritdoc}