Components \ commerce \ affiliates administrators commissions payments \ configuration paymentmethods \ shippingmethods \ methods delivery discounts \ products brands categories \ recurringsales storedcards \ sales items \ receipts allocations \ customers \ contacts passwords referrertypes \ relationships types \ groups contacts \ marketing \ emailmarketing \ sends contacts unsubscribers \ events attendees locations \ reminders \ automation eventremindertrigger \ settings administrators components configurationitems cpanel customfields \ developer scheduledtasks threads domains \ website \ analytics sessions comments \ designs generator media pages \ posts categories Framework \ architecture publicassets \ assets css javascript \ caching filebased \ components textualids \ data util \ database mainconnection date \ dom currentcontext renderer \ html converters highlighter javascript \ http redirection request session useragent \ i18n companytypes countries languages \ network cidr dns geoip random \ reflection api \ system filenames filesystem toasts
.
.
.
quick access
\ methods

\Framework\DOM\CurrentContext::

rendered.

Class Methods

The following static methods are available on this class:
bool getIsInEditMode()
Description
Returns whether or not the request is in edit mode
Parameters
none
Return
bool
bool getIsInEmail()
Description
Returns if the current context renders out to an email
Parameters
none
Return
bool
mixed getVariable($strVarName)
Description
Returns the value of a parser variable
Parameters
$strVarName
string
Variable name - excluding '$'
Return
$mixedValue Value of the variable
\Framework\DOM\Nodes\Document popDocument()
Description
Pops a document off the context stack
Parameters
none
Return
\Framework\DOM\Nodes\Document
void pushDocument($pDocument)
Description
Pushes a document onto the context stack
Parameters
$pDocument
\Framework\DOM\Nodes\Document
Return
void
void setIsInEmail($bInEmail)
Description
Sets if the current context renders out to an email
Parameters
$bInEmail
bool
Return
void
void setVariable($strVarName, $mixedValue)
Description
Adds a variable to document

The variable is registered into the document, making it possible to referenced via script.
Parameters
$strVarName
string
Variable name - excluding '$'
$mixedValue
mixed
Value of the variable
Return
void