Method |
Description |
|
addDataSource ( $dataSourceId, array $config ) |
|
|
buildDSNObject ( array $config ) : DSN |
Convert data source config to DSN object. |
|
compile ( $sourceFile, $force = false ) |
|
|
getBaseCollectionClass ( ) |
|
|
getBaseModelClass ( ) |
|
|
getCacheConfig ( ) |
|
|
getCacheInstance ( ) |
we should use injection container |
|
getClassMap ( ) |
|
|
getConfigStash ( ) |
|
|
getDataSource ( string $sourceId ) |
get data source by data source id. |
|
getDataSourceIds ( ) |
|
|
getDataSources ( ) : array |
get all data sources. |
|
getDefaultDataSource ( ) |
|
|
getDefaultDataSourceId ( ) |
|
|
getInstance ( ) |
|
|
getSchema ( ) : array |
get schema config. |
|
getSchemaPaths ( ) : array |
get schema paths from config. |
|
getSeedScripts ( ) |
|
|
hasAutoId ( ) |
|
|
init ( ) |
1. inject config into data source
2. load bootstrap
3. load external schema loader. |
|
initForBuild ( ) |
|
|
isLoaded ( ) |
|
|
load ( mixed $arg, $force = false ) |
Load configuration. |
|
loadBootstrap ( ) |
run bootstrap code. |
|
loadFromArray ( array $config ) |
Load config from array directly. |
|
loadFromFile ( $sourceFile ) |
Load config from the YAML config file. |
|
loadFromSymbol ( $force = false ) |
|
|
offsetExists ( $offset ) |
|
|
offsetGet ( $offset ) |
****************************
Implements interface of ArrayAccess
**************************** |
|
offsetSet ( $offset, $value ) |
|
|
offsetUnset ( $offset ) |
|
|
preprocessConfig ( array $config ) |
|
|
preprocessDataSourceConfig ( array $dbconfig ) |
This method is used for compiling config array. |
|
removeDataSource ( $dataSourceId ) |
|
|
setConfigStash ( array $stash ) |
|
|
setDefaultDataSourceId ( $id ) |
|
|
setLoaded ( $loaded = true ) |
|
|
unload ( ) |
unload config and stash. |
|
writeToSymbol ( ) |
|
|