CpVariable

Type
Class
Namespace
Craft
Inherits
Craft\CpVariable
Since
1.0

CP functions

See also http://craftcms.com

View source (opens new window)

# Public Methods

Method Description
areAlertsCached() Returns whether the CP alerts are cached.
getAlerts() Returns an array of alerts to display in the CP.
nav() Get the sections of the CP.
settings() Returns the list of settings.

# areAlertsCached()

Returns whether the CP alerts are cached.

View source (opens new window)

Returns

boolean (opens new window)

Signature

public boolean areAlertsCached ( )

# getAlerts()

Returns an array of alerts to display in the CP.

View source (opens new window)

Returns

array (opens new window)

Signature

public array getAlerts ( )

# nav()

Get the sections of the CP.

View source (opens new window)

Arguments

  • $iconSize

Returns

array (opens new window)

Signature

public array nav ( $iconSize = 32 )

# settings()

Returns the list of settings.

View source (opens new window)

Arguments

  • $iconSize

Returns

array (opens new window)

Signature

public array settings ( $iconSize = 32 )