HTML_QuickForm_Renderer_ITStatic::setRequiredTemplate()

HTML_QuickForm_Renderer_ITStatic::setRequiredTemplate() -- Sets the way required elements are rendered

概要

require_once 'HTML/QuickForm/Renderer/ITStatic.php';

void HTML_QuickForm_Renderer_ITStatic::setRequiredTemplate (string $template)

説明

You can use {label} or {html} placeholders to let the renderer know where where the element label or the element html are positionned according to the required tag. They will be replaced accordingly with the right value. For example: <font color="red">*</font>{label} will put a red star in front of the label if the element is required.

パラメータ

string $template

The required element template

例外・エラー

throws no exceptions thrown

注意

この関数は、スタティックにコールする ことはできません。