InstallEvents
class InstallEvents extends InstallEvents
Class InstallEvents
Properties
| SmartWikiController | $mod |
Methods
Only called after module has been updated
This method will be called after tables are uptodate.
This method will be called before table are updated.
Only called when module is installed
Returns true if the given old revision relates to an newer version then the given version.
Returns true if the given old revision relates to an older version then the given version.
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.
in
InstallEvents at line 67
afterModuleUpdate($old_revision, $module, $instance_id)
Only called after module has been updated
at line 47
afterTableUpdate($old_revision, $module, $instance_id)
This method will be called after tables are uptodate.
at line 27
beforeTableUpdate($old_revision, $module, $instance_id)
This method will be called before table are updated.
in
InstallEvents at line 36
initializeAfterInstall($old_revision, $module, $instance_id)
Only called when module is installed
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.
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.
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()