DUF: Declarative Ugly Forms  v0.1-94-g0b7957c
 All Classes Functions Variables Pages
Static Public Member Functions | List of all members
ItemCount Class Reference

Render count of items. More...

Inheritance diagram for ItemCount:
Inheritance graph

Static Public Member Functions

static renderFieldWidget (\Duf::Form $form, $template_engine, $widget_conf, $group_id, $field_id, $field_conf)
 Render the field widget. More...
 
- Static Public Member Functions inherited from Input
static renderFieldWidget (\Duf::Form $form, $template_engine, $widget_conf, $group_id, $field_id, $field_conf)
 Render the field widget. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Input
static commonAttributes ($field_conf)
 Render common attributes, prefixed with space.
 

Detailed Description

Render count of items.

This is workaround until texts in JSON configs are translatable with proper plural forms.

Member Function Documentation

static renderFieldWidget ( \Duf::Form  $form,
  $template_engine,
  $widget_conf,
  $group_id,
  $field_id,
  $field_conf 
)
static

Render the field widget.

Parameters
$formis the Form.
$template_engineis templating engine which may be used for rendering (optional).
$widget_confis configuration of the widget (from layout section).
$group_id,$field_idare identification of the field.
$field_confis a field configuration (from field_groups section).

Implements IFieldWidgetRenderer.