MysqlMapper
class MysqlMapper extends Singleton implements IMapper
Abstract Mysql Mapper
Properties
static protected multiple: | $_instances | Array of \jtl\Connector\Core\Utilities\Singleton Objects | from Singleton |
protected Mysql | $_db | Mysql Database | |
protected string | $_table | Mysql Table | |
protected mixed:string|multiple | $_primary | Mysql Primary Key |
Methods
__construct()
Constructor
load()
Loader for $table and $primary
string
getTable()
Get Table Name
setNames(string $encoding = 'utf8')
Character Set Support
setCharset(string $encoding = 'utf8')
Name Set Support
boolean
mutiple|string|null
mutiple|string|null
multitype:
string
whereSql(array $kvs = null)
Generation Sql Primary Key Where Statement
string
string
Details
in Singleton at line 29
static Singleton:
getInstance()
Basic Singleton implementation
at line 47
protected
__construct()
Constructor
in Singleton at line 49
final protected
__clone()
Clone Method
at line 60
abstract protected
load()
Loader for $table and $primary
at line 65
Mysql
Db()
at line 75
string
getTable()
Get Table Name
at line 85
setNames(string $encoding = 'utf8')
Character Set Support
at line 95
setCharset(string $encoding = 'utf8')
Name Set Support
at line 106
boolean
isPrimarySet(stdClass $object)
Checks if a Primary Key is set
at line 133
mutiple|string|null
getPrimaryValues(DataModel $model)
Gets Primary Values
at line 157
mutiple|string|null
getPrimaryFields(DataModel $model = null, boolean $toWawi = false)
Gets Primary Fields
at line 192
multitype:
getKeyValues(DataModel $model, boolean $toWawi = false)
at line 216
string
whereSql(array $kvs = null)
Generation Sql Primary Key Where Statement
at line 238
string
limitSql(QueryFilter $filter = null)
Generation Sql Limit Statement
at line 254
string
orderSql(QueryFilter $filter = null)
Generation Sql Order Statement