Initialization Functions

These are functions which you can call during the initialization of your plugin to change how your plugin is displayed.

Calls to initialization functions must be made from within your init() method; they will not work when called from your showSlot() method.

You can use syntax of the form:

$this->functionName()

to call an initialization function from anywhere within your Plugin's init() method.

captcha()

This function automatically includes the required JavaScript for a CAPTCHA, and provides you with the HTML code needed to display the CAPTCHA.

checkCaptcha()

This function checks a POST submission to see if a CAPTCHA is correct.

To use it you must have previously included a CAPTCHA on a form using the $this->captcha() initialization function.

forcePageReload()

Allows you to remove your Plugin's ability to reload by AJAX, and force a page reload instead.

headerRedirect()

This takes the Visitor to a different url, either using an actual header redirect, or by using JavaScript if your Plugin is reloading via AJAX.

markSlotAsBeingEdited()

Allows you to tell the CMS that an Admin is currently editing your Plugin.