Trait Props
Direct Known Users
MvcCore\Ext\Models\Db\Models\MySql, MvcCore\Ext\Models\Db\Models\PgSql, MvcCore\Ext\Models\Model, MvcCore\Model, MvcCore\Ext\Models\Db\Models\Resource, MvcCore\Ext\Models\Db\Models\SQLite, MvcCore\Ext\Models\Db\Models\SqlSrv, MvcCore\Ext\Models\Db\Providers\Resource, MvcCore\Ext\Models\Db\Providers\Resources\MySql, MvcCore\Ext\Models\Db\Providers\Resources\PgSql, MvcCore\Ext\Models\Db\Providers\Resources\SQLite, MvcCore\Ext\Models\Db\Providers\Resources\SqlSrvIndirect Known Users
MvcCore\Ext\Auths\Basics\Role, MvcCore\Ext\Auths\Basics\User, MvcCore\Ext\Auths\Basics\Users\Database, MvcCore\Ext\Auths\Basics\Users\SystemConfig
protected static
array
|
$connectionArguments
|
#
[
'cubrid' => [
'dsn' => '{driver}:host={host};port={port};dbname={database}',
'auth' => TRUE,
'fileDb' => FALSE,
'options' => [],
'defaults' => ['port' => 33000,],
],
'firebird' => [
'dsn' => '{driver}:dbname={host}:{database};charset={charset}',
'auth' => TRUE,
'fileDb' => TRUE,
'options' => [],
'defaults' => ['charset' => 'UTF-8',],
],
'ibm' => [
'dsn' => 'ibm:DRIVER={IBM DB2 ODBC DRIVER};DATABASE={database};HOSTNAME={host};PORT={port};PROTOCOL={protocol};UID={user};PWD={password}',
'auth' => TRUE,
'fileDb' => FALSE,
'options' => [],
'defaults' => ['port' => 56789, 'protocol' => 'TCPIP',],
],
'informix' => [
'dsn' => "{driver}:host={host}; service={service}; \ndatabase={database}; server={server}; protocol={protocol}; \nEnableScrollableCursors=1",
'auth' => TRUE,
'fileDb' => FALSE,
'options' => [],
'defaults' => ['service' => 9800, 'protocol' => 'onsoctcp',],
],
'mysql' => [
'dsn' => '{driver}:host={host};dbname={database};port={port}',
'auth' => TRUE,
'fileDb' => FALSE,
'options' => [
'\PDO::ATTR_TIMEOUT' => 30,
'\PDO::ATTR_EMULATE_PREPARES' => TRUE,
'\PDO::MYSQL_ATTR_MULTI_STATEMENTS' => TRUE,
'\PDO::MYSQL_ATTR_INIT_COMMAND' => "SET NAMES 'UTF8'",
],
'defaults' => ['port' => 3306,],
],
'sqlite' => [
'dsn' => '{driver}:{database}',
'auth' => FALSE,
'fileDb' => TRUE,
'options' => [],
'defaults' => [
'\PDO::ATTR_TIMEOUT' => 30,
'\PDO::ATTR_EMULATE_PREPARES' => TRUE,
],
],
'pgsql' => [
'dsn' => '{driver}:host={host};port={port};dbname={database};user={user};password={password}',
'auth' => TRUE,
'fileDb' => FALSE,
'options' => [],
'defaults' => ['port' => 5432,],
],
'sqlsrv' => [
'dsn' => '{driver}:Server={host};Database={database};MultipleActiveResultSets=False',
'auth' => TRUE,
'fileDb' => FALSE,
'options' => [
'\PDO::SQLSRV_ATTR_QUERY_TIMEOUT' => 30,
'\PDO::SQLSRV_ATTR_DIRECT_QUERY' => FALSE,
],
'defaults' => ['port' => 1433,],
],
'default' => [
'dsn' => '{driver}:host={host};dbname={database}',
'auth' => TRUE,
'fileDb' => FALSE,
'options' => [
'\PDO::ATTR_ERRMODE' => '\PDO::ERRMODE_EXCEPTION',
],
'defaults' => [],
],
]
|
protected static
string[]
|
$sysConfigProperties
System configuration file database section properties names. |
#
[
'sectionName' => 'db', // db section root node
'defaultName' => 'defaultName', // default db connection name
'defaultClass' => 'defaultClass', // custom \PDO implementation full class name
'retryAttempts' => 'retryAttempts', // reconnection tries count if connection has been lost, extension required
'retryDelay' => 'retryDelay', // delay before every reconnection, extension required
'name' => 'name', // runtime configuration definition property for connection name
'index' => 'index', // runtime configuration definition property for connection index
'driver' => 'driver', // connection driver
'host' => 'host', // connection host
'port' => 'port', // connection port
'user' => 'user', // connection user
'password' => 'password', // connection password
'database' => 'database', // connection database
'options' => 'options', // connection options
'class' => 'class', // custom connection class full name
]
|
protected static
string|integer|null
|
$defaultConnectionName
Default database connection name/index, in system config defined in section |
#
NULL
|
protected static
string
|
$defaultConnectionClass
Default database connection class name. |
#
'\\PDO'
|
protected static
PDO[]
|
$connections
|
#
[]
|
protected static
stdClass[]
|
$configs
System config sections array with |
#
NULL
|
protected static
array
|
$protectedProperties
Originally declared internal model properties to protect their
possible overwriting by |
#
[
'initialValues' => FALSE,
]
|
protected
array
|
$initialValues
Array with values initialized by |
#
[]
|