AppVariable
- Type
- Class
- Namespace
- Craft
- Inherits
- Craft\AppVariable
- Since
- 1.0
Class AppVariable
See also http://craftcms.com
View source (opens new window)
# Public Methods
Method | Description |
---|---|
canTestEditions() | Returns whether Craft is running on a domain that is eligible to test out the editions. |
canUpgradeEdition() | Returns whether Craft is elligible to be upgraded to a different edition. |
getBuild() | Returns the installed Craft build. |
getEdition() | Returns the Craft edition. |
getEditionName() | Returns the name of the Craft edition. |
getFileKinds() | Returns a list of file kinds. |
getLicensedEdition() | Returns the edition Craft is actually licensed to run in. |
getLicensedEditionName() | Returns the name of the edition Craft is actually licensed to run in. |
getLocale() | Returns the site language. |
getMaxUploadSize() | Return max upload size in bytes. |
getReleaseDate() | Returns the installed Craft release date. |
getSiteName() | Returns the site name. |
getSiteUid() | Returns the site UID. |
getSiteUrl() | Returns the site URL. |
getTotalAvailableUpdates() | Returns how many updates are available. |
getVersion() | Returns the installed Craft version. |
hasWrongEdition() | Returns whether Craft is running with the wrong edition. |
isCriticalUpdateAvailable() | Returns whether a critical update is available. |
isSystemOn() | Returns whether the system is on. |
isUpdateInfoCached() | Returns whether the update info is cached. |
# canTestEditions()
Returns whether Craft is running on a domain that is eligible to test out the editions.
View source (opens new window)
Returns
Signature
public boolean canTestEditions ( )
# canUpgradeEdition()
Returns whether Craft is elligible to be upgraded to a different edition.
View source (opens new window)
Returns
Signature
public boolean canUpgradeEdition ( )
# getBuild()
Signature
public string getBuild ( )
# getEdition()
Signature
public string getEdition ( )
# getEditionName()
Signature
public string getEditionName ( )
# getFileKinds()
Signature
public array getFileKinds ( )
# getLicensedEdition()
Signature
public integer, null getLicensedEdition ( )
# getLicensedEditionName()
Returns the name of the edition Craft is actually licensed to run in.
View source (opens new window)
Returns
Signature
public string, null getLicensedEditionName ( )
# getLocale()
Signature
public string getLocale ( )
# getMaxUploadSize()
Signature
public integer getMaxUploadSize ( )
# getReleaseDate()
Signature
public Craft\DateTime getReleaseDate ( )
# getSiteName()
Signature
public string getSiteName ( )
# getSiteUid()
Signature
public string getSiteUid ( )
# getSiteUrl()
Signature
public string getSiteUrl ( )
# getTotalAvailableUpdates()
Signature
public integer getTotalAvailableUpdates ( )
# getVersion()
Signature
public string getVersion ( )
# hasWrongEdition()
Signature
public boolean hasWrongEdition ( )
# isCriticalUpdateAvailable()
Signature
public boolean isCriticalUpdateAvailable ( )
# isSystemOn()
Signature
public string isSystemOn ( )
# isUpdateInfoCached()
Signature
public boolean isUpdateInfoCached ( )