Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
DevCacheTrait Class Reference
+ Inheritance diagram for DevCacheTrait:

Static Public Member Functions

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)
 

Static Protected Member Functions

static getCacheInstance (array &$config, string $cacheDirectory, string $postfix)
 
static initRestCache (array &$config, bool $silent=false)
 
static initRouterCache (array &$config, bool $silent=false)
 

Static Private Member Functions

static _getAnnotationsEngineInstance ()
 
static initialGetCacheDirectory (array &$config)
 
static safeMkdir (string $dir)
 
static _clearCache ($cacheDirectories, $type, $typeRef)
 

Static Private Attributes

static AnnotationsEngineInterface $annotationsEngine
 

Detailed Description

Definition at line 20 of file DevCacheTrait.php.

Member Function Documentation

◆ _clearCache()

static _clearCache (   $cacheDirectories,
  $type,
  $typeRef 
)
staticprivate

Definition at line 153 of file DevCacheTrait.php.

◆ _getAnnotationsEngineInstance()

static _getAnnotationsEngineInstance ( )
staticprivate

Definition at line 32 of file DevCacheTrait.php.

◆ 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

Deletes files from a cache type.

Parameters
array$config
string$type

Definition at line 137 of file DevCacheTrait.php.

◆ getAnnotationsEngineInstance()

static getAnnotationsEngineInstance ( )
static

Definition at line 40 of file DevCacheTrait.php.

◆ 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

Reimplemented in CacheManager.

◆ 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

Definition at line 44 of file DevCacheTrait.php.

◆ 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$nameClassesan array of name=>class annotations

Definition at line 66 of file DevCacheTrait.php.

◆ safeMkdir()

static safeMkdir ( string  $dir)
staticprivate

Definition at line 124 of file DevCacheTrait.php.

◆ start()

static start ( array &  $config)
static

Starts the cache in dev mode, for generating the other caches Do not use in production.

Parameters
array$config

Definition at line 54 of file DevCacheTrait.php.

Field Documentation

◆ $annotationsEngine

AnnotationsEngineInterface $annotationsEngine
staticprivate

Definition at line 22 of file DevCacheTrait.php.


The documentation for this class was generated from the following file: