Ejemplo n.º 1
0
    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;
    }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * 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;
 }