Methods
Get singleton instance
getInstance(string $pluginFile = ''
) : object
Static
Parameters
$pluginFile
string
Plugin file path; first execution of "getInstance()" method should set this to plugin file path, but all others executions can ommit this parameter - default: empty
Returns
object
Singleton instance
Get Kocuj Internal Lib object
getKocujILObj() : object
Returns
object
Kocuj Internal Lib object
Get Kocuj.pl Lib object
getKocujPlLibObj() : object
Returns
object
Kocuj.pl Lib object
Get plugin base name
getPluginBaseName() : string
Returns
string
Plugin base name
Get plugin directory
getPluginDir() : string
Returns
string
Plugin directory
Get plugin filename
getPluginFilename() : string
Returns
string
Plugin filename
Get plugin URL
getPluginUrl() : string
Get version
getVersion() : string
Get major version
getVersionMajor() : integer
Returns
integer
Major version
Get minor version
getVersionMinor() : integer
Returns
integer
Minor version
Get revision version
getVersionRevision() : integer
Returns
integer
Revision version
Site update callback
siteUpdateCallback(string $fromVersion, string $toVersion) : boolean
Parameters
$fromVersion
string
From version
$toVersion
string
To version
Returns
boolean
Update has been executed correctly (true) or not (false)
Update callback
updateCallback(string $fromVersion, string $toVersion) : boolean
Parameters
$fromVersion
string
From version
$toVersion
string
To version
Returns
boolean
Update has been executed correctly (true) or not (false)
Disable cloning of object
__clone() : void
Constructor
__construct(string $pluginFile) : void
Parameters
$pluginFile
string
Plugin file path
Properties
Singleton instance
$instance : object
Static
Kocuj Internal Lib object instance
$kocujILObj : object
Kocuj.pl Lib object instance
$kocujPlLibObj : object
Plugin base name
$pluginBaseName : string
Plugin directory
$pluginDir : string
Plugin filename
$pluginFilename : string
Plugin URL
$pluginUrl : string