CraftVariable
- Type
- Class
- Namespace
- Craft
- Inherits
- Craft\CraftVariable
- Since
- 1.0
Contains all global variables.
See also http://craftcms.com
View source (opens new window)
# Public Methods
| Method | Description |
|---|---|
| __get() | |
| __isset() | |
| app() | |
| assets() | |
| categories() | |
| categoryGroups() | |
| config() | |
| cp() | |
| deprecator() | |
| elementIndexes() | |
| elements() | |
| emailMessages() | |
| entries() | |
| entryRevisions() | |
| feeds() | |
| fields() | |
| globals() | |
| hasPackage() | Returns whether a package is included in the Craft build. |
| i18n() | |
| isLocalized() | Returns whether this site has multiple locales. |
| locale() | Gets the current language in use. |
| plugins() | |
| rebrand() | |
| request() | |
| routes() | |
| sections() | |
| session() | |
| systemSettings() | |
| tags() | |
| tasks() | |
| updates() | |
| userGroups() | |
| userPermissions() | |
| users() |
# __get()
Signature
public mixed __get ( $name )
# __isset()
Signature
public boolean __isset ( $name )
# app()
Signature
public Craft\AppVariable app ( )
# assets()
View source (opens new window)
Arguments
$criteria(array (opens new window), null (opens new window))
Returns
Signature
public Craft\ElementCriteriaModel assets ( $criteria = null )
# categories()
View source (opens new window)
Arguments
$criteria(array (opens new window), null (opens new window))
Returns
Signature
public Craft\ElementCriteriaModel categories ( $criteria = null )
# categoryGroups()
Signature
public Craft\CategoryGroupsVariable categoryGroups ( )
# config()
Signature
public Craft\ConfigVariable config ( )
# cp()
Signature
public Craft\CpVariable cp ( )
# deprecator()
Signature
public Craft\DeprecatorVariable deprecator ( )
# elementIndexes()
Signature
public Craft\ElementIndexesVariable elementIndexes ( )
# elements()
Signature
public Craft\ElementsVariable elements ( )
# emailMessages()
Signature
public Craft\EmailMessagesVariable emailMessages ( )
# entries()
View source (opens new window)
Arguments
$criteria(array (opens new window), null (opens new window))
Returns
Signature
public Craft\ElementCriteriaModel entries ( $criteria = null )
# entryRevisions()
Signature
public Craft\EntryRevisionsVariable entryRevisions ( )
# feeds()
Signature
public Craft\FeedsVariable feeds ( )
# fields()
Signature
public Craft\FieldsVariable fields ( )
# globals()
Signature
public Craft\GlobalsVariable globals ( )
# hasPackage()
DEPRECATED
Deprecated Deprecated in 2.0.
Returns whether a package is included in the Craft build.
View source (opens new window)
Arguments
$packageName
Returns
Signature
public boolean hasPackage ( $packageName )
# i18n()
Signature
public Craft\LocalizationVariable i18n ( )
# isLocalized()
Signature
public boolean isLocalized ( )
# locale()
Signature
public string locale ( )
# plugins()
Signature
public Craft\PluginsVariable plugins ( )
# rebrand()
Signature
public Craft\RebrandVariable rebrand ( )
# request()
Signature
public Craft\HttpRequestVariable request ( )
# routes()
Signature
public Craft\RoutesVariable routes ( )
# sections()
Signature
public Craft\SectionsVariable sections ( )
# session()
Signature
public Craft\UserSessionVariable session ( )
# systemSettings()
Signature
public Craft\SystemSettingsVariable systemSettings ( )
# tags()
View source (opens new window)
Arguments
$criteria(array (opens new window), null (opens new window))
Returns
Signature
public Craft\ElementCriteriaModel tags ( $criteria = null )
# tasks()
Signature
public Craft\TasksVariable tasks ( )
# updates()
Signature
public Craft\UpdatesVariable updates ( )
# userGroups()
Signature
public Craft\UserGroupsVariable, null userGroups ( )
# userPermissions()
Signature
public Craft\UserPermissionsVariable, null userPermissions ( )
# users()
View source (opens new window)
Arguments
$criteria(array (opens new window), null (opens new window))
Returns
Signature
public Craft\ElementCriteriaModel, null users ( $criteria = null )