Documentation

VersionTracker
in package
implements VersionTrackerInterface

WordPress options-backed schema version tracker.

The WordPress counterpart of the Moodle adapter's get_config-backed tracker: each lib registers its own tracker with a distinct option name so schema versions are stored independently (e.g. acme_core_schema_version, acme_billing_schema_version).

The option is written with autoload = false: the version is only read during install/upgrade flows, never on the request hot path.

Table of Contents

Interfaces

VersionTrackerInterface

Properties

$optionName  : string

Methods

__construct()  : mixed
getVersion()  : int
setVersion()  : void

Properties

Methods

__construct()

public __construct(string $optionName) : mixed
Parameters
$optionName : string

setVersion()

public setVersion(int $version) : void
Parameters
$version : int
On this page

Search results