class FormBase

Class FormBase

Properties

protected array $config
bool $save_requires_edit_var
Form $form
protected $field_disable_save

Set to false if this field is not "saveable", e.g. static test

Methods

__construct()

FormBase constructor.

append(string $name, mixed $value, bool|string $key = false)

No description

void
concat(string $name, string $value)

No description

mixed
destroy($name)

No description

mixed
get(string $name)

No description

array
getConfig()

No description

array
get_group(string $prefix)

No description

array
get_properties()

No description

init_obj()

Initializes the form base

bool
is_displayed()

Checks if the field is hidden by a tag. It is important when validating

$this
set(string $name, mixed $value)

No description

void
set_properties(array $array)

No description

Details

at line 31
__construct()

FormBase constructor.

The constructor is able to set an array of properties options

at line 200
append(string $name, mixed $value, bool|string $key = false)

No description

Parameters

string $name

property name

mixed $value

property value

bool|string $key

key of property array

at line 185
void concat(string $name, string $value)

No description

Parameters

string $name

of the property

string $value

to be concated

Return Value

void

at line 170
mixed destroy($name)

No description

Parameters

$name

Return Value

mixed

last value

at line 76
mixed get(string $name)

No description

Parameters

string $name

name of the property

Return Value

mixed

at line 83
array getConfig()

No description

Return Value

array

at line 219
array get_group(string $prefix)

No description

Parameters

string $prefix

prefix (e.g. mygroup_ )

Return Value

array

at line 91
array get_properties()

No description

Return Value

array

at line 39
init_obj()

Initializes the form base

at line 239
bool is_displayed()

Checks if the field is hidden by a tag. It is important when validating

Return Value

bool

at line 103
$this set(string $name, mixed $value)

No description

Parameters

string $name

propoerty name

mixed $value

property value

Return Value

$this

at line 155
void set_properties(array $array)

No description

Parameters

array $array

associated array like property=>value

Return Value

void