class InstallEvents extends InstallEvents

Properties

TaggingController $mod

Methods

__construct(Controller $mod, string $oldRevision)

InstallEvents constructor.

afterModuleUpdate($old_revision, $module, $instance_id)

Only called after module has been updated

afterTableUpdate($old_revision, $module, $instance_id)

No description

beforeTableUpdate($old_revision, $module, $instance_id)

Called before SQL tranformations are applied to the database

initializeAfterInstall($old_revision, $module, $instance_id)

Only called when module is installed

bool
isVersionGreaterThan(string $version, int $oldRevision = null)

Returns true if the given old revision relates to an newer version then the given version.

bool
isVersionLessThan(string $version, int $oldRevision = null)

Returns true if the given old revision relates to an older version then the given version.

string
revisionToXelosVersion(int $revision)

Return XELOS version for the supplied build number in PHP style notation e.g. 7.1.5 for use with version_compare()

Details

in InstallEvents at line 25
__construct(Controller $mod, string $oldRevision)

InstallEvents constructor.

Parameters

Controller $mod
string $oldRevision

in InstallEvents at line 67
afterModuleUpdate($old_revision, $module, $instance_id)

Only called after module has been updated

Parameters

$old_revision
$module
$instance_id

at line 18
afterTableUpdate($old_revision, $module, $instance_id)

No description

Parameters

$old_revision
$module
$instance_id

Exceptions

Exception

in InstallEvents at line 46
beforeTableUpdate($old_revision, $module, $instance_id)

Called before SQL tranformations are applied to the database

Parameters

$old_revision
$module
$instance_id

in InstallEvents at line 36
initializeAfterInstall($old_revision, $module, $instance_id)

Only called when module is installed

Parameters

$old_revision
$module
$instance_id

in InstallEvents at line 103
bool isVersionGreaterThan(string $version, int $oldRevision = null)

Returns true if the given old revision relates to an newer version then the given version.

Parameters

string $version

Standard Version Format e.g. 8.0.1

int $oldRevision

Internal Build Revision Number e.g. 80123

Return Value

bool

in InstallEvents at line 89
bool isVersionLessThan(string $version, int $oldRevision = null)

Returns true if the given old revision relates to an older version then the given version.

Parameters

string $version

Standard Version Format e.g. 8.0.1

int $oldRevision

Internal Build Revision Number e.g. 80123

Return Value

bool

in InstallEvents at line 76
final string revisionToXelosVersion(int $revision)

Return XELOS version for the supplied build number in PHP style notation e.g. 7.1.5 for use with version_compare()

Parameters

int $revision

Build Number

Return Value

string

XELOS version as in 7.1.0