Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($options=array()) | |
contains ($id, $group) | |
get ($id, $group, $checkTime=true) | |
getAll () | |
store ($id, $group, $data) | |
remove ($id, $group) | |
clean ($group, $mode=null) | |
gc () | |
lock ($id, $group, $locktime) | |
unlock ($id, $group=null) | |
Fonctions membres publiques hérités de CacheStorage | |
__construct ($options=array()) | |
contains ($id, $group) | |
get ($id, $group, $checkTime=true) | |
getAll () | |
store ($id, $group, $data) | |
remove ($id, $group) | |
clean ($group, $mode=null) | |
flush () | |
gc () | |
lock ($id, $group, $locktime) | |
unlock ($id, $group=null) | |
Fonctions membres protégées | |
_checkExpire ($id, $group) | |
_getFilePath ($id, $group) | |
_deleteFolder ($path) | |
_cleanPath ($path, $ds=DIRECTORY_SEPARATOR) | |
_filesInFolder ($path, $filter='.', $recurse=false, $fullpath=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludefilter=array('^\..*', '.*~')) | |
_folders ($path, $filter='.', $recurse=false, $fullpath=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludefilter=array('^\..*')) | |
Fonctions membres protégées hérités de CacheStorage | |
_getCacheId ($id, $group) | |
Attributs protégés | |
$_root | |
$_locked_files = array() | |
Attributs protégés hérités de CacheStorage | |
$rawname | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de CacheStorage | |
static | isSupported () |
static | addIncludePath ($path='') |
Champs de données hérités de CacheStorage | |
$_now | |
$_lifetime | |
$_locking | |
$_language | |
$_application | |
$_hash | |
File cache storage handler
__construct | ( | $options = array() | ) |
Constructor
array | $options | Optional parameters |
Références $options, $path, Symfony\Contracts\Service\__construct(), et File\invalidateFileCache().
|
protected |
Check if a cache object has expired
Using @ error suppressor here because between if we did a file_exists() and then filemsize() there will be a little time space when another process can delete the file and then you get PHP Warning
string | $id | Cache ID to check |
string | $group | The cache data group |
Références $id, $path, et File\invalidateFileCache().
|
protected |
Function to strip additional / or \ in a path name
string | $path | The path to clean |
string | $ds | Directory separator (optional) |
Références $path.
|
protected |
Quickly delete a folder of files
string | $path | The path to the folder to delete. |
Références $folder, $path, Text\_(), Log\add(), elseif, File\invalidateFileCache(), Text\sprintf(), et Log\WARNING.
|
protected |
Utility function to quickly read the files in a folder.
string | $path | The path of the folder to read. |
string | $filter | A filter for file names. |
mixed | $recurse | True to recursively search into sub-folders, or an integer to specify the maximum depth. |
boolean | $fullpath | True to return the full path to the file. |
array | $exclude | Array with names of files which should not be shown in the result. |
array | $excludefilter | Array of folder names to exclude |
Références $dir, $path, Log\add(), Text\sprintf(), et Log\WARNING.
|
protected |
Utility function to read the folders in a folder.
string | $path | The path of the folder to read. |
string | $filter | A filter for folder names. |
mixed | $recurse | True to recursively search into sub-folders, or an integer to specify the maximum depth. |
boolean | $fullpath | True to return the full path to the folders. |
array | $exclude | Array with names of folders which should not be shown in the result. |
array | $excludefilter | Array with regular expressions matching folders which should not be shown in the result. |
Références $dir, $path, Log\add(), Text\sprintf(), et Log\WARNING.
|
protected |
clean | ( | $group, | |
$mode = null |
|||
) |
Clean cache for a group given a mode.
group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group
string | $group | The cache data group |
string | $mode | The mode for cleaning cache [group|notgroup] |
contains | ( | $id, | |
$group | |||
) |
Check if the cache contains data stored by ID and group
string | $id | The cache data ID |
string | $group | The cache data group |
Références $id.
gc | ( | ) |
Garbage collect expired cache data
Références $result, et File\invalidateFileCache().
get | ( | $id, | |
$group, | |||
$checkTime = true |
|||
) |
getAll | ( | ) |
lock | ( | $id, | |
$group, | |||
$locktime | |||
) |
Lock cached item
string | $id | The cache data ID |
string | $group | The cache data group |
integer | $locktime | Cached item max lock time |
Références $id, $path, et Joomla\Database\Query\$returning.
remove | ( | $id, | |
$group | |||
) |
Remove a cached data entry by ID and group
string | $id | The cache data ID |
string | $group | The cache data group |
Références $id, $path, et File\invalidateFileCache().
store | ( | $id, | |
$group, | |||
$data | |||
) |
unlock | ( | $id, | |
$group = null |
|||
) |
|
protected |
|
protected |