\AdminPageFramework_PostType_Properties

Provides the space to store the shared properties for custom post types.

This class stores various types of values. This is used to encapsulate properties so that it helps to avoid naming conflicts.

Summary

Methods
Properties
Constants
__construct()
sortByOrder()
$strPostType
$arrPostTypeArgs
$strClassName
$strCallerPath
$strDefaultStyleIE
$arrStructure_EnqueuingScriptsAndStyles
$arrEnqueuingScripts
$arrEnqueuingStyles
$intEnqueuedScriptIndex
$intEnqueuedStyleIndex
No constants found
No protected methods found
$oCaller
N/A
No private methods found
No private properties found
N/A

Properties

$strPostType

$strPostType : string

Stores the post type slug.

Type

string

$arrPostTypeArgs

$arrPostTypeArgs : array

Stores the post type argument.

Type

array

$strClassName

$strClassName : string

Stores the extended class name.

Type

string

$strCallerPath

$strCallerPath : string

Stores the caller script path.

Type

string

$strDefaultStyleIE

$strDefaultStyleIE

The default CSS rules for IE loaded in the head tag of the created admin pages.

$arrStructure_EnqueuingScriptsAndStyles

$arrStructure_EnqueuingScriptsAndStyles

Represents the structure of the array for enqueuing scripts and styles.

$arrEnqueuingScripts

$arrEnqueuingScripts

Stores enqueuing script URLs and their criteria.

$arrEnqueuingStyles

$arrEnqueuingStyles

Stores enqueuing style URLs and their criteria.

$intEnqueuedScriptIndex

$intEnqueuedScriptIndex

Stores the index of enqueued scripts.

$intEnqueuedStyleIndex

$intEnqueuedStyleIndex

Stores the index of enqueued styles.

The index number will be incremented as a script is enqueued regardless a previously added enqueue item has been removed or not. This is because this index number will be used for the script handle ID which is automatically generated.

$oCaller

$oCaller

Stores the main (caller) object.

Methods

__construct()

__construct( $oCaller)

Parameters

$oCaller

sortByOrder()

sortByOrder( $a,  $b) : integer

Calculates the subtraction of two values with the array key of <em>numOrder</em>

This is used to sort arrays.

Parameters

$a
$b

Returns

integer