DbServiceModelBase
extends ServiceModel
in package
Uses
ApropriateConnectionTrait
Default DB model for the service
Tags
Table of Contents
- $tableName : string
- Table name
- __construct() : mixed
- Constructor
- getApropriateConnection() : PdoCrud
- Method returns appropriate connections
- getTableName() : string
- Method returns table name
- setTableName() : void
- Method sets table name
Properties
$tableName
Table name
private
string
$tableName
= ''
Methods
__construct()
Constructor
public
__construct([string $tableName = '' ]) : mixed
Parameters
- $tableName : string = ''
-
name of the table
Tags
Return values
mixed —getApropriateConnection()
Method returns appropriate connections
public
static getApropriateConnection() : PdoCrud
Return values
PdoCrud —connection
getTableName()
Method returns table name
public
getTableName() : string
Return values
string —table name
setTableName()
Method sets table name
protected
setTableName([string $tableName = '' ]) : void
Parameters
- $tableName : string = ''
-
table name