/** * return rendering information * * @return array rendering information */ public function getRenderingInformation() { $data = parent::getRenderingInformation(); $data['captcha'] = $this->renderCaptchaPicture(); $data['refresh'] = $this->renderCaptchaRefresh(); $data['input'] = $this->renderCaptchaInput(); return $data; }
/** * return rendering information * * @return array rendering information */ public function getRenderingInformation() { $data = parent::getRenderingInformation(); $data['items'] = []; foreach ($this->configuration['items'] as $value => $label) { $data['items'][$value] = array('input' => '<input id="' . $this->getHtmlId() . '-' . $value . '" name="' . $this->absolutename . '[]" type="checkbox" value="' . $value . '"' . $checked . $class . ' />', 'label' => '<label for="' . $this->getHtmlId() . '-' . $value . '">' . $label . '</label>'); } return $data; }
/** * return rendering information * * @return array rendering information */ public function getRenderingInformation() { $data = parent::getRenderingInformation(); if ($this->uploadState == 'temporary-upload') { $data['filepath'] = '/typo3temp/ameos_form/tempupload/' . $this->getValue(); } elseif (file_exists($this->getUploadDirectory() . $this->getValue())) { $data['filepath'] = $this->getUploadDirectoryUri() . $this->getValue(); } return $data; }