\MatthiasWeb\UtilsCore

Base class for the applications Core class.

Summary

Methods
Properties
Constants
i18n()
updateDbCheck()
getInternalPackages()
getPluginData()
getActivator()
getAssets()
getService()
No public properties found
No constants found
construct()
No protected properties found
N/A
No private methods found
$plugin_data
$activator
$assets
$service
N/A

Properties

$plugin_data

$plugin_data :

The stored plugin data.

Type

$activator

$activator :

The plugins activator class.

Type

$assets

$assets :

The plugins asset class.

Type

$service

$service :

The utils service class.

Type

Methods

i18n()

i18n()

The plugin is loaded. Start to register the localization (i18n) files.

Also respect packages in vendor dir.

updateDbCheck()

updateDbCheck()

Updates the database version in the options table.

It also installs the needed database tables.

getInternalPackages()

getInternalPackages(): object

Get a list of internal packages (our own, symlinked from the monorepo).

Returns

object

getPluginData()

getPluginData(string  $key = null): array<mixed,string>|string|null

Gets the plugin data.

Parameters

string $key

The key of the data to return

Returns

array<mixed,string>|string|null

construct()

construct()

The constructor handles the core startup mechanism.

The constructor is protected because a factory method should only create a Core object.