class Form (View source)

Methods

static void
xhtml(bool $xhtml)

Define new forms for use xhtml (<input />) or html format (<input>)

static void
setup(string $byType, array $attributes)

Define default attributes for all elements

static string|null
comboRange(string $name, string|int $low, string|int $high, int $step = null, string|null $value = null, array $attributes = array())

Generate combo by range

static string
combo(string $name, array $options, string|null $value = null, array $attributes = array())

Create a select combo based in an array

static string
input(string $type, string $name, string|null $value = null, array $attributes = array())

Create a input or textarea

Details

static void xhtml(bool $xhtml)

Define new forms for use xhtml (<input />) or html format (<input>)

Parameters

bool $xhtml

Return Value

void

static void setup(string $byType, array $attributes)

Define default attributes for all elements

Parameters

string $byType
array $attributes

Return Value

void

static string|null comboRange(string $name, string|int $low, string|int $high, int $step = null, string|null $value = null, array $attributes = array())

Generate combo by range

Parameters

string $name
string|int $low
string|int $high
int $step
string|null $value
array $attributes

Return Value

string|null

static string combo(string $name, array $options, string|null $value = null, array $attributes = array())

Create a select combo based in an array

Parameters

string $name
array $options
string|null $value
array $attributes

Return Value

string

static string input(string $type, string $name, string|null $value = null, array $attributes = array())

Create a input or textarea

Parameters

string $type
string $name
string|null $value
array $attributes

Return Value

string