Environment

Contains methods which return information about the current installation

Class Methods

The following methods can be invoked on instances of this class.

configLoad(string strConfigPath)

Loads the json-encoded site configuration.
Will normally expect the current working directory to be public_html

configGet(string strKey)

Retrieces a specific item from the json site config

configHas(string strKey)

Determines if a specific item has been defined in the json site config

configAddOverride(mixed strKey, string strValue)

Ability to override a config item from the site config

configRemoveOverride(string strKey)

Removes a config override

getBranchFromPath(unknown strPath)

Determine if the framework path corresponds to beta or stable

getBranchFromLink(string strLinkPath)

Determines current site branch from its symlink to the framework.
Will normally expect the current working directory to be public_html

getIsStable(string strLinkPath)

Determines if the current site is on stable branch based on its home symlink to the framework.
Cab pass an arbritary symlink path.

getIsBeta(string strLinkPath)

Determines if the current site is on beta branch based on its home symlink to the framework.
Cab pass an arbritary symlink path.

getIsRebranded()

Determines if the website is rebranded or not

getIsRunningOnWindows()

Is the server running on Windows

getIsSystemDeveloper()

Is the environment a local system developer

getIsSystemDeveloperAccount()

Determines if the current cPanel account is one of the default account provided for development

getDeveloperEmail()

Returns the developer email set in the site configuration

getIsDemo(mixed bAllowSuperAdmin)

Returns whether or not this site is a demo account

getIsTrial()

Returns true when the website_status is in trial mode

getTrialExpiryTimeStamp()

Returns the time when the trial is to expire

getTrialExpiryTimeLeft()

getIsTrialExpired()

getIsLive()

Returns whether or not the primary domain is connected to Synergy 8

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class