Documentation

DataMapper
in package
Uses SQLBuilder

The DataMapper is used to retrieve and store DataObjects from and to the Database

A DataMapper implementation has to provide the methods for interaction
But There should be find(ByXYZ) methods to retreive \VeruA\DataObjects and insert/update methods to store the data to the Database

Table of Contents

COLUMNS  = []
JOINS  = []
TABLE  = ''
WHERE  = []
$dbc  : mixed
__construct()  : mixed
sqlColumns()  : mixed
sqlSelectQuery()  : mixed

Constants

Properties

$dbc

protected mixed $dbc

A database Connection Object

Methods

__construct()

public __construct(mixed $dbc) : mixed
Parameters
$dbc : mixed

The database Connection Object

Return values
mixed

sqlColumns()

protected sqlColumns(array<string|int, mixed> $tableColumns) : mixed
Parameters
$tableColumns : array<string|int, mixed>

[$table => [ $column, ... ], ...]

Return values
mixed

sqlSelectQuery()

protected sqlSelectQuery(mixed $columns, mixed $table, mixed $joins, mixed $where) : mixed
Parameters
$columns : mixed
$table : mixed
$joins : mixed
$where : mixed
Return values
mixed

Search results