Upgrade extends Component

Handles the database upgrades.

Table of Contents

__construct()  : mixed
Class constructor.
upgrade_attributes()  : mixed
Upgrades attributes.
upgrade_comments()  : mixed
Upgrades comments.
upgrade_database()  : mixed
Upgrades database.
upgrade_emails()  : mixed
Upgrades emails.
upgrade_events()  : mixed
Upgrades events.
upgrade_terms()  : mixed
Upgrades terms.
boot()  : mixed
Bootstraps component properties.
set_callbacks()  : mixed
Sets the action and filter callbacks.
set_property()  : mixed
Sets a property value.

Methods

__construct()

Class constructor.

public __construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
$args : array<string|int, mixed> = []

Component arguments.

Return values
mixed

upgrade_attributes()

Upgrades attributes.

public upgrade_attributes(string $version) : mixed
Parameters
$version : string

Old version.

Tags
deprecated

Since version 1.3.13

Return values
mixed

upgrade_comments()

Upgrades comments.

public upgrade_comments(string $version) : mixed
Parameters
$version : string

Old version.

Tags
deprecated

Since version 1.3.0

Return values
mixed

upgrade_database()

Upgrades database.

public upgrade_database(string $version) : mixed
Parameters
$version : string

Old version.

Tags
deprecated

Since version 1.3.0

Return values
mixed

upgrade_events()

Upgrades events.

public upgrade_events(string $version) : mixed
Parameters
$version : string

Old version.

Tags
deprecated

Since version 1.3.0

Return values
mixed

upgrade_terms()

Upgrades terms.

public upgrade_terms(string $version) : mixed
Parameters
$version : string

Old version.

Tags
deprecated

Since version 1.3.0

Return values
mixed

set_callbacks()

Sets the action and filter callbacks.

protected final set_callbacks(array<string|int, mixed> $callbacks) : mixed
Parameters
$callbacks : array<string|int, mixed>

Callback arguments.

Return values
mixed

set_property()

Sets a property value.

protected final set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
Parameters
$name : string

Property name.

$value : mixed

Property value.

$prefix : string = ''

Method prefix.

Return values
mixed