class SetupFormList extends BaseFormList

Properties

static protected array $all
static protected string $ns

Methods

static array
getAll()

No description

static bool
isValid(string $name)

No description

static null|string
get(string $name)

No description

__construct(ConfigFile $cf)

No description

bool
process(bool $allowPartialSave = true, bool $checkFormSubmit = true)

Processes forms, returns true on successful save

string
displayErrors()

Displays errors

void
fixErrors()

Reverts erroneous fields to their default values

bool
hasErrors()

Tells whether form validation failed

static string[]
getFields()

Returns list of fields used in the form.

Details

in BaseFormList at line 29
static array getAll()

Return Value

array

in BaseFormList at line 39
static bool isValid(string $name)

Parameters

string $name Name

Return Value

bool

in BaseFormList at line 49
static null|string get(string $name)

Parameters

string $name Name

Return Value

null|string

in BaseFormList at line 60
__construct(ConfigFile $cf)

Parameters

ConfigFile $cf Config file instance

in BaseFormList at line 78
bool process(bool $allowPartialSave = true, bool $checkFormSubmit = true)

Processes forms, returns true on successful save

Parameters

bool $allowPartialSave allows for partial form saving on failed validation
bool $checkFormSubmit whether check for $_POST['submit_save']

Return Value

bool whether processing was successful

in BaseFormList at line 92
string displayErrors()

Displays errors

Return Value

string HTML for errors

in BaseFormList at line 106
void fixErrors()

Reverts erroneous fields to their default values

Return Value

void

in BaseFormList at line 118
bool hasErrors()

Tells whether form validation failed

Return Value

bool

in BaseFormList at line 132
static string[] getFields()

Returns list of fields used in the form.

Return Value

string[]