Back to Captcha class

Method initialise

public bool
initialise
(mixed $id)
Fire the onInit event to initialise the captcha plugin.
Parameters
  • string $id The id of the field.
Returns
  • bool True on success
Since
  • 2.5
-
  • \RuntimeException
Class: Captcha
Project: Joomla

Method initialise - Source code

/**
 * Fire the onInit event to initialise the captcha plugin.
 *
 * @param   string  $id  The id of the field.
 *
 * @return  boolean  True on success
 *
 * @since	2.5
 * @throws  \RuntimeException
 */
public function initialise($id)
{
    $arg = ['id' => $id];
    $this->update('onInit', $arg);
    return true;
}