/** * Creates the image and returns the image HTML tag as string. * Please note: The properties are currently not used. * * @param array $properties key value pairs for template variables * * @return string HTML * * @author Sascha Koehler <*****@*****.**>, * Patrick Schneider <*****@*****.**> * Ramon Kupper <*****@*****.**> * @since 05.02.2015 */ public function Field($properties = array()) { if ($this->cachedField === null) { $picture = $this->getPic($this->getNrOfChars()); $this->cachedField = ' <img src="' . CustomHtmlFormTools::getBaseURLSegment() . 'customhtmlformimage/get/cap_' . $picture . '/jpg" width="' . $this->width . '" height="' . $this->height . '" alt="Captcha" /> '; } return $this->cachedField; }