function __construct($name, $title = null, $value = null, $form = null, $rightTitle = null) { parent::__construct($name, $title, $value, $form, $rightTitle); $this->jsOptions = self::$js_options; // try to auto-detect language-settings $lang = substr(i18n::get_locale(), 0, 2); if (in_array($lang, self::$valid_languages)) { $this->jsOptions['lang'] = $lang; } }
function FieldHolder() { Requirements::customCSS("\n.simplespamprotector { display: none; }\n"); return parent::FieldHolder(); }
/** * Return the Field Holder if Required */ function FieldHolder($properties = array()) { return $this->showCaptcha() ? parent::FieldHolder($properties) : null; }