Skip to main content

GV\Field_Renderer

The \GV\Field_Renderer class.

Houses some preliminary \GV\Field rendering functionality.

Source: future/includes/class-gv-renderer-field.php:14

Details

  • Kind: class
  • Namespace: GV
  • Extends: Renderer

Methods

MethodDescription
render()Renders a \GV\Field instance.

Method Reference

render()

public function render( Field $field, View $view=null, Source $source=null, Entry $entry=null, Request $request=null, $class='\GV\Field_HTML_Template' )

Renders a \GV\Field instance.

Parameters

NameTypeDefaultDescription
$fieldField
$view\GV\ViewnullThe view for this context if applicable.
$source\GV\SourcenullThe source (form) for this context if applicable.
$entry\GV\EntrynullThe entry for this context if applicable.
$request\GV\RequestnullThe request for this context if applicable.
$classstring'\GV\Field_HTML_Template'The field template class. Default: \GV\Field_HTML_Template'.

Returns

  • string — The rendered Field

Since:

  • 2.0
  • 2.1 (Added Field Template class $class parameter)

Source: future/includes/class-gv-renderer-field.php:32