프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$context | |||
$engine | |||
$resources | |||
$templates | |||
$themes | |||
$varStack |
메소드 | 설명 | |
---|---|---|
__construct ( Symfony\Component\Templating\EngineInterface $engine, array $resources ) | Constructor; | |
enctype ( Symfony\Component\Form\FormView $view ) : string | Renders the HTML enctype in the form tag, if necessary. | |
errors ( Symfony\Component\Form\FormView $view ) : string | Renders the errors of the given view. | |
getName ( ) | ||
isChoiceGroup ( $label ) | ||
isChoiceSelected ( Symfony\Component\Form\FormView $view, $choice ) | ||
label ( Symfony\Component\Form\FormView $view, string $label = null, array $variables = [] ) : string | Renders the label of the given view. | |
renderBlock ( string $name, array $variables = [] ) | Render a block from a form element. | |
rest ( Symfony\Component\Form\FormView $view, array $variables = [] ) : string | Renders views which have not already been rendered. | |
row ( Symfony\Component\Form\FormView $view, array $variables = [] ) : string | Renders the entire form field "row". | |
setTheme ( Symfony\Component\Form\FormView $view, $themes ) | Sets a theme for a given view. | |
widget ( Symfony\Component\Form\FormView $view, array $variables = [] ) : string | Renders the HTML for a given view. |
메소드 | 설명 | |
---|---|---|
lookupTemplate ( Symfony\Component\Form\FormView $view, string $block ) : string | boolean | Returns the name of the template to use to render the block | |
renderSection ( Symfony\Component\Form\FormView $view, string $section, array $variables = [] ) : string | Renders a template. |
public __construct ( Symfony\Component\Templating\EngineInterface $engine, array $resources ) | ||
$engine | Symfony\Component\Templating\EngineInterface | The templating engine |
$resources | array | An array of theme name |
public isChoiceSelected ( Symfony\Component\Form\FormView $view, $choice ) | ||
$view | Symfony\Component\Form\FormView |
public renderBlock ( string $name, array $variables = [] ) | ||
$name | string | |
$variables | array | Additional variables (those would override the current context) |
protected renderSection ( Symfony\Component\Form\FormView $view, string $section, array $variables = [] ) : string | ||
$view | Symfony\Component\Form\FormView | The form view |
$section | string | The section to render (i.e. 'row', 'widget', 'label', ...) |
$variables | array | Additional variables |
리턴 | string | The html markup |
public setTheme ( Symfony\Component\Form\FormView $view, $themes ) | ||
$view | Symfony\Component\Form\FormView | A FormView instance |