Ejemplo n.º 1
0
 /**
  *
  * Create block with Label, Image and
  * input for captcha entry
  *
  * This block can just be dropped into an html template
  * of any form
  *
  * @return string html block with Captcha
  * @todo Translate string of label
  */
 public function getCaptchaBlock()
 {
     $aVals = $this->getCaptchaArray();
     d('got captcha vals: ' . print_r($aVals, 1));
     $s = \tplCaptcha::parse($aVals, false);
     return $s;
 }
Ejemplo n.º 2
0
 /**
  *
  * Create block with Label, Image and
  * input for captcha entry
  *
  * This block can just be dropped into an html template
  * of any form
  *
  * @return string html block with Captcha
  */
 public function getCaptchaBlock()
 {
     $aVals = $this->getCaptchaArray();
     d('got captcha vals: ' . \json_encode($aVals));
     $s = \tplCaptcha::parse($aVals, false);
     return $s;
 }