\SSGuru_Controller
Synopsis
class SSGuru_Controller
extends Extension
{
- // methods
- public void onBeforeInit()
- public bool IsCMS()
- public bool IsDev()
- public bool IsTest()
- public bool IsLive()
- public string getSiteMode()
Hierarchy
Extends
- Extension
Methods
public
- IsCMS() — This function will return true if the current controller .
- IsDev() — This function will return true if the site is in a development environment.
- IsLive() — This function will return true if the site is in a live environment.
- IsTest() — This function will return true if the site is in a test environment.
- getSiteMode() — This function will return the string 'dev', 'test' or 'live' depending on the current site mode Can also be checked with {@link Director::get_environment_type()}.
- onBeforeInit()