moduleCache
in package
Caches module objects.
This improves performance if the same module does not need to be created multiple times (calling get_metaData() each time).
Tags
Table of Contents
- $cache : array<string|int, mixed>
- getModule() : null|baseModule
- Returns a new/cached module with the given name and scope.
Properties
$cache
private
static array<string|int, mixed>
$cache
= []
module cache ("name:scope" => module)
Methods
getModule()
Returns a new/cached module with the given name and scope.
public
static getModule(string $name, string|null $scope) : null|baseModule
Parameters
- $name : string
-
module name
- $scope : string|null
-
module scope (e.g. user)
Return values
null|baseModule —module object