protected function getConfirmationButtons() { $requestHandler = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Form\\Request'); $prefix = $requestHandler->getPrefix(); $action = $this->localCobj->getTypoLink_URL($GLOBALS['TSFE']->id); $confirmationButtons = ' <form class="csc-form-confirmation" method="post" action="' . $action . '"> <fieldset> <ol> <li class="csc-form-confirmation-false"> <input type="submit" value="' . $this->localizationHandler->getLocalLanguageLabel('tx_form_view_confirmation.donotconfirm') . '" name="' . $prefix . '[confirmation-false]" /> </li> <li class="csc-form-confirmation-true"> <input type="submit" value="' . $this->localizationHandler->getLocalLanguageLabel('tx_form_view_confirmation.confirm') . '" name="' . $prefix . '[confirmation-true]" /> </li> </ol> </fieldset> </form> '; return $confirmationButtons; }
/** * Get the local language label(s) for the message * In some cases this method will be override by rule class * * @param string $type The type * @return string The local language message label */ protected function getLocalLanguageLabel($type) { $label = strtolower(get_class($this)) . '.' . $type; $message = $this->localizationHandler->getLocalLanguageLabel($label); return $message; }
/** * Get the local language label(s) for the message * In some cases this method will be override by rule class * * @param string $type The type * @return string The local language message label */ protected function getLocalLanguageLabel($type) { $label = self::LOCALISATION_OBJECT_NAME . '.' . $type; $message = $this->localizationHandler->getLocalLanguageLabel($label); return $message; }