class AbstractDatabaseMapperProxy (View source)

The AbstractDataMapperProxy class.

Methods

mixed
__call($name, $arguments)

is triggered when invoking inaccessible methods in an object context.

static mixed
__callStatic($name, $arguments)

is triggered when invoking inaccessible methods in a static context.

getInstance(string $table = null)

getInstance

static DataMapper
createDataMapper(string $table = null, string|array $keys = null, AbstractDatabaseDriver $db = null)

createDataMapper

static void
setDataMapper(string $table, DatabaseMapperInterface $mapper)

setDataMapper

static void
reset()

reset

Details

at line line 111
mixed __call($name, $arguments)

is triggered when invoking inaccessible methods in an object context.

Parameters

$name string
$arguments array

Return Value

mixed

at line line 127
static mixed __callStatic($name, $arguments)

is triggered when invoking inaccessible methods in a static context.

Parameters

$name string
$arguments array

Return Value

mixed

at line line 152
static DatabaseMapperInterface getInstance(string $table = null)

getInstance

Parameters

string $table

Return Value

DatabaseMapperInterface

at line line 173
static DataMapper createDataMapper(string $table = null, string|array $keys = null, AbstractDatabaseDriver $db = null)

createDataMapper

Parameters

string $table Table name.
string|array $keys Primary key, default will be id.
AbstractDatabaseDriver $db Database adapter.

Return Value

DataMapper

at line line 210
static void setDataMapper(string $table, DatabaseMapperInterface $mapper)

setDataMapper

Parameters

string $table
DatabaseMapperInterface $mapper

Return Value

void

at line line 220
static void reset()

reset

Return Value

void