Back to CaptchaField class

Method getInput

protected string
getInput
()
Method to get the field input.
Returns
  • string The field input.
Since
  • 2.5
Class: CaptchaField
Project: Joomla

Method getInput - Source code

/**
 * Method to get the field input.
 *
 * @return  string  The field input.
 *
 * @since   2.5
 */
protected function getInput()
{
    if ($this->hidden || $this->_captcha == null) {
        return '';
    }
    try {
        return $this->_captcha->display($this->name, $this->id, $this->class);
    } catch (\RuntimeException $e) {
        Factory::getApplication()->enqueueMessage($e->getMessage(), 'error');
    }
    return '';
}