|
static | initModelsCache (array &$config, bool $forChecking=false, bool $silent=false) |
|
static | getAnnotationsEngineInstance () |
|
static | start (array &$config) |
| Starts the cache in dev mode, for generating the other caches Do not use in production.
|
|
static | registerAnnotations (array $nameClasses) |
|
static | checkCache (array &$config, bool $silent=false) |
| Checks the existence of cache subdirectories and returns an array of cache folders.
|
|
static | getCacheDirectories (array &$config, bool $silent=false) |
| Returns an associative array of cache folders (annotations, models, controllers, queries, views, seo, git, contents)
|
|
static | clearCache (array &$config, string $type='all') |
| Deletes files from a cache type.
|
|
static | initCache (array &$config, string $type='all', bool $silent=false) |
|
Definition at line 20 of file DevCacheTrait.php.
◆ _clearCache()
static _clearCache |
( |
|
$cacheDirectories, |
|
|
|
$type, |
|
|
|
$typeRef |
|
) |
| |
|
staticprivate |
◆ _getAnnotationsEngineInstance()
static _getAnnotationsEngineInstance |
( |
| ) |
|
|
staticprivate |
◆ checkCache()
static checkCache |
( |
array & |
$config, |
|
|
bool |
$silent = false |
|
) |
| |
|
static |
Checks the existence of cache subdirectories and returns an array of cache folders.
- Parameters
-
array | $config | |
boolean | $silent | |
- Returns
- string[]
Definition at line 78 of file DevCacheTrait.php.
◆ clearCache()
static clearCache |
( |
array & |
$config, |
|
|
string |
$type = 'all' |
|
) |
| |
|
static |
◆ getAnnotationsEngineInstance()
static getAnnotationsEngineInstance |
( |
| ) |
|
|
static |
◆ getCacheDirectories()
static getCacheDirectories |
( |
array & |
$config, |
|
|
bool |
$silent = false |
|
) |
| |
|
static |
Returns an associative array of cache folders (annotations, models, controllers, queries, views, seo, git, contents)
- Parameters
-
array | $config | |
boolean | $silent | |
- Returns
- string[]
Definition at line 93 of file DevCacheTrait.php.
◆ getCacheInstance()
static getCacheInstance |
( |
array & |
$config, |
|
|
string |
$cacheDirectory, |
|
|
string |
$postfix |
|
) |
| |
|
staticabstractprotected |
◆ initCache()
static initCache |
( |
array & |
$config, |
|
|
string |
$type = 'all' , |
|
|
bool |
$silent = false |
|
) |
| |
|
static |
- Parameters
-
array | $config | |
string | $type | |
boolean | $silent | |
Definition at line 165 of file DevCacheTrait.php.
◆ initialGetCacheDirectory()
static initialGetCacheDirectory |
( |
array & |
$config | ) |
|
|
staticprivate |
◆ initModelsCache()
static initModelsCache |
( |
array & |
$config, |
|
|
bool |
$forChecking = false , |
|
|
bool |
$silent = false |
|
) |
| |
|
staticabstract |
◆ initRestCache()
static initRestCache |
( |
array & |
$config, |
|
|
bool |
$silent = false |
|
) |
| |
|
staticabstractprotected |
◆ initRouterCache()
static initRouterCache |
( |
array & |
$config, |
|
|
bool |
$silent = false |
|
) |
| |
|
staticabstractprotected |
◆ registerAnnotations()
static registerAnnotations |
( |
array |
$nameClasses | ) |
|
|
static |
- Parameters
-
array | $nameClasses | an array of name=>class annotations |
Definition at line 66 of file DevCacheTrait.php.
◆ safeMkdir()
static safeMkdir |
( |
string |
$dir | ) |
|
|
staticprivate |
◆ start()
static start |
( |
array & |
$config | ) |
|
|
static |
Starts the cache in dev mode, for generating the other caches Do not use in production.
- Parameters
-
Definition at line 54 of file DevCacheTrait.php.
◆ $annotationsEngine
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/DevCacheTrait.php