Set current screen identifier class

access public
package kocuj_internal_lib

 Methods

Get current screen identifier; it can do it even if function "get_current_screen" returns NULL

get() : array
access public

Returns

arrayCurrent screen identifier or empty string if function "get_current_screen" returns NULL (in element "original") and alternative screen identifier which is almost always available (in element "alternative") or empty array if it is not an administration panel

Get singleton instance

getInstance() : object
Static
access public

Returns

objectSingleton instance

Callback for parameter "post_type"

callbackParameterPostType(string $value, integer $postValue) : string
access private

Parameters

$value

string

Value of parameter "post_type"

$postValue

integer

Value of parameter "post"

Returns

stringParsed value of parameter "post_type"

Callback for parameter "taxonomy"

callbackParameterTaxonomy(string $value) : string
access private

Parameters

$value

string

Value of parameter "taxonomy"

Returns

stringParsed value of parameter "taxonomy"

Parse parameters for identifier

parseParameters(string $id) : string
access private

Parameters

$id

string

Identifier

Returns

stringParsed identifier

 Properties

 

Singleton instance

$instance : object

Default

NULL
Static
access private
 

Saved alternative identifier

$savedAlternativeId : string

Default

''
access private
 

Saved script name

$savedScriptName : string

Default

''
access private