class SetupFormList extends BaseFormList

Class SetupFormList

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)

Constructor

boolean
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

boolean
hasErrors()

Tells whether form validation failed

static string[]
getFields()

Returns list of fields used in the form.

Details

in BaseFormList at line 37
static array getAll()

Return Value

array

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

Parameters

string $name Name

Return Value

bool

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

Parameters

string $name Name

Return Value

null|string

in BaseFormList at line 68
__construct(ConfigFile $cf)

Constructor

Parameters

ConfigFile $cf Config file instance

in BaseFormList at line 86
boolean 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

boolean whether processing was successful

in BaseFormList at line 100
string displayErrors()

Displays errors

Return Value

string HTML for errors

in BaseFormList at line 114
void fixErrors()

Reverts erroneous fields to their default values

Return Value

void

in BaseFormList at line 126
boolean hasErrors()

Tells whether form validation failed

Return Value

boolean

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

Returns list of fields used in the form.

Return Value

string[]