4require_once 
'Services/Captcha/classes/class.ilSecurImageUtil.php';
 
   49        $this->lng = 
$DIC->language();
 
   52        parent::__construct($a_title, $a_postvar);
 
   55            $lng->loadLanguageModule(
'cptch');
 
   65        $this->value = $a_value;
 
  142        include_once(
'./Services/Captcha/classes/class.ilSecurImage.php');
 
  144        if (!
$si->check(
$_POST[$this->getPostVar()])) {
 
  158    public function render()
 
  165        $tpl = 
new ilTemplate(
'tpl.prop_captchainput.html', 
true, 
true, 
'Services/Captcha');
 
  168            $tpl->setCurrentBlock(
'prop_text_propval');
 
  170            $tpl->parseCurrentBlock();
 
  179        $tpl->setVariable(
'IMAGE_SCRIPT', $script);
 
  183        $tpl->setVariable(
'TXT_CAPTCHA_ALT', 
$lng->txt(
'captcha_alt_txt'));
 
  184        $tpl->setVariable(
'TXT_RELOAD', 
$lng->txt(
'captcha_code_reload'));
 
  185        $tpl->setVariable(
'TXT_CAPTCHA_AUDIO_TITLE', 
$lng->txt(
'captcha_audio_title'));
 
  186        $tpl->setVariable(
'TXT_CONSTR_PROP', 
$lng->txt(
'cont_constrain_proportions'));
 
  187        $tpl->setVariable(
'TXT_CAPTCHA_INFO', 
$lng->txt(
'captcha_code_info'));
 
  197        $html = $this->render();
 
An exception for terminatinating execution or to throw for unit testing.
setVariable($variable, $value='')
Sets a variable value.
SecurImage Wrapper (very simply wrapper, does not abstract other captchas)
special template class to simplify handling of ITX/PEAR
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt @access public.
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public