HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate()

HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate() – html 要素のレンダリングに使用するテンプレートのファイル名を設定する

Synopsis

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

void HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate ( string $template )

Description

フォームのラベルのレンダリングに使用するテンプレートのファイル名を設定します。 テンプレート内では、{label} が未修正のラベルに変換されます。 エラーが発生した場合は、{error} にエラーが設定されます。 要素が必須の場合は、{required} が true となります。例を示します。


{if:required}
  <font color="orange" size="1">*</font>
{end:}
{label:h}

Parameter

string $template

テンプレートのファイル名。

Throws

例外はスローされません。

Note

This function can not be called statically.