class Field (View source)

The form field component.

Methods

static string
labelFromKey(string $key)

Convert camel case key into a human readable label.

static string
render(object $Automad, string $key = '', string $value = '', boolean $removeButton = false, object $Theme = false, string $label = false)

Create a form field depending on the name.

Details

static string labelFromKey(string $key)

Convert camel case key into a human readable label.

Parameters

string $key

Return Value

string The converted label.

static string render(object $Automad, string $key = '', string $value = '', boolean $removeButton = false, object $Theme = false, string $label = false)

Create a form field depending on the name.

Parameters

object $Automad
string $key
string $value
boolean $removeButton
object $Theme
string $label

Return Value

string The generated HTML