Toasts

Class Methods

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

renderToast(mixed strType, mixed bSticky, mixed strMessage)

Renders a toast message

sessionToastAdd(array arrToastAttributes)

Adds a toast within the session by saving its toast related attributes

sessionToastRenderAll()

Renders all the toasts which are currently saved in session

showNotice(mixed strMessage, mixed bSticky, string strTitle)

Renders a 'notice' toast

showError(mixed strMessage, mixed bSticky, string strTitle)

Renders a 'error' toast

showWarning(mixed strMessage, mixed bSticky, string strTitle)

Renders a 'warning' toast

showSuccess(mixed strMessage, mixed bSticky, string strTitle)

Renders a 'success' toast

__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