Ubiquity\cache\traits$ModelsCacheTrait This class is part of Ubiquity.
More...
|
static | _getFiles (array &$config, string $type, bool $silent=false) |
|
static | _getAllFiles (array &$config, string $type, bool $silent=false) |
|
Ubiquity\cache\traits$ModelsCacheTrait This class is part of Ubiquity.
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.0.5 @staticvar \Ubiquity\cache\system\AbstractDataCache $cache
Definition at line 24 of file ModelsCacheTrait.php.
◆ _getAllFiles()
static _getAllFiles |
( |
array & |
$config, |
|
|
string |
$type, |
|
|
bool |
$silent = false |
|
) |
| |
|
staticabstractprotected |
◆ _getFiles()
static _getFiles |
( |
array & |
$config, |
|
|
string |
$type, |
|
|
bool |
$silent = false |
|
) |
| |
|
staticabstractprotected |
◆ createOrmModelCache()
static createOrmModelCache |
( |
string |
$classname | ) |
|
|
static |
◆ getAllModelsFiles()
static getAllModelsFiles |
( |
array & |
$config, |
|
|
bool |
$silent = false |
|
) |
| |
|
static |
Returns an array of all model files.
- Parameters
-
array | $config | |
boolean | $silent | |
- Returns
- array
Definition at line 132 of file ModelsCacheTrait.php.
◆ getDatabases()
◆ getModelCacheKey()
static getModelCacheKey |
( |
string |
$classname | ) |
|
|
static |
◆ getModels()
static getModels |
( |
array & |
$config, |
|
|
bool |
$silent = false , |
|
|
string |
$databaseOffset = 'default' |
|
) |
| |
|
static |
Returns an array of the models class names.
- Parameters
-
array | $config | |
boolean | $silent | |
| ?string | $databaseOffset |
- Returns
- string[]
Definition at line 144 of file ModelsCacheTrait.php.
◆ getModelsDatabases()
static getModelsDatabases |
( |
| ) |
|
|
static |
◆ getModelsFiles()
static getModelsFiles |
( |
array & |
$config, |
|
|
bool |
$silent = false |
|
) |
| |
|
static |
Returns an array of files corresponding to models.
- Parameters
-
array | $config | |
boolean | $silent | |
- Returns
- array
Definition at line 121 of file ModelsCacheTrait.php.
◆ getModelsNamespace()
static getModelsNamespace |
( |
string |
$databaseOffset = 'default' | ) |
|
|
static |
◆ getOrmModelCache()
static getOrmModelCache |
( |
string |
$classname | ) |
|
|
static |
◆ initModelsCache()
static initModelsCache |
( |
array & |
$config, |
|
|
bool |
$forChecking = false , |
|
|
bool |
$silent = false |
|
) |
| |
|
static |
◆ modelCacheExists()
static modelCacheExists |
( |
string |
$classname | ) |
|
|
static |
◆ modelsCacheUpdated()
static modelsCacheUpdated |
( |
array & |
$config | ) |
|
|
static |
Checks if the models cache is up to date.
- Parameters
-
- Returns
- array
Definition at line 98 of file ModelsCacheTrait.php.
◆ storeModelsDatabases()
static storeModelsDatabases |
( |
array |
$modelsDatabases | ) |
|
|
static |
◆ warmUpModels()
static warmUpModels |
( |
array & |
$config, |
|
|
string |
$offset = 'default' , |
|
|
?array |
$models = null |
|
) |
| |
|
static |
Preloads models metadatas.
To use only with async servers (Swoole, Workerman)
- Parameters
-
array | $config | |
string | $offset | |
| ?array | $models |
Definition at line 199 of file ModelsCacheTrait.php.
◆ $modelsDatabaseKey
$modelsDatabaseKey = 'models' . \DIRECTORY_SEPARATOR . '_modelsDatabases' |
|
staticprivate |
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/cache/traits/ModelsCacheTrait.php