Documentation

MeterField extends BaseField
in package

Class representing a measurement field in the form.

Extends the base form field with measurement-specific functionalities.

Table of Contents

Constants

TYPE_METER  : mixed = 'meter'
Constant representing a meter type measurement.

Properties

$attribute  : string
$model  : Model
$type  : string

Methods

__construct()  : mixed
Field constructor.
__toString()  : string
Returns the HTML representation of the field including label, input and error message.
renderInput()  : string
Render a meter input field with proper class handling and value assignment

Constants

TYPE_METER

Constant representing a meter type measurement.

public mixed TYPE_METER = 'meter'

Used for defining meter field configurations.

Properties

Methods

__construct()

Field constructor.

public __construct(Model $model, string $attribute) : mixed
Parameters
$model : Model
$attribute : string

__toString()

Returns the HTML representation of the field including label, input and error message.

public __toString() : string
Return values
string

renderInput()

Render a meter input field with proper class handling and value assignment

public renderInput() : string
Return values
string

HTML markup for the meter input element

On this page

Search results