Base class

access public
package kocuj_sitemap

 Methods

Get singleton instance

getInstance(string $pluginFile = '') : object
Static
access public

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

objectSingleton instance

Get Kocuj Internal Lib object

getKocujILObj() : object
access public

Returns

objectKocuj Internal Lib object

Get Kocuj.pl Lib object

getKocujPlLibObj() : object
access public

Returns

objectKocuj.pl Lib object

Get plugin base name

getPluginBaseName() : string
access public

Returns

stringPlugin base name

Get plugin directory

getPluginDir() : string
access public

Returns

stringPlugin directory

Get plugin filename

getPluginFilename() : string
access public

Returns

stringPlugin filename

Get plugin URL

getPluginUrl() : string
access public

Returns

stringPlugin URL

Get version

getVersion() : string
access public

Returns

stringVersion

Get major version

getVersionMajor() : integer
access public

Returns

integerMajor version

Get minor version

getVersionMinor() : integer
access public

Returns

integerMinor version

Get revision version

getVersionRevision() : integer
access public

Returns

integerRevision version

Initialize

init() : void
access public

Site update callback

siteUpdateCallback(string $fromVersion, string $toVersion) : boolean
access public

Parameters

$fromVersion

string

From version

$toVersion

string

To version

Returns

booleanUpdate has been executed correctly (true) or not (false)

Update callback

updateCallback(string $fromVersion, string $toVersion) : boolean
access public

Parameters

$fromVersion

string

From version

$toVersion

string

To version

Returns

booleanUpdate has been executed correctly (true) or not (false)

Disable cloning of object

__clone() : void
access private

Constructor

__construct(string $pluginFile) : void
access private

Parameters

$pluginFile

string

Plugin file path

 Properties

 

Singleton instance

$instance : object

Default

NULL
Static
access private
 

Kocuj Internal Lib object instance

$kocujILObj : object

Default

NULL
access private
 

Kocuj.pl Lib object instance

$kocujPlLibObj : object

Default

NULL
access private
 

Plugin base name

$pluginBaseName : string

Default

''
access private
 

Plugin directory

$pluginDir : string

Default

''
access private
 

Plugin filename

$pluginFilename : string

Default

''
access private
 

Plugin URL

$pluginUrl : string

Default

''
access private