class BaseFormList

Class BaseFormList

Properties

static protected $all List of all forms
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

at line 37
static array getAll()

Return Value

array

at line 46
static bool isValid(string $name)

Parameters

string $name Name

Return Value

bool

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

Parameters

string $name Name

Return Value

null|string

at line 68
__construct(ConfigFile $cf)

Constructor

Parameters

ConfigFile $cf Config file instance

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

at line 100
string displayErrors()

Displays errors

Return Value

string HTML for errors

at line 114
void fixErrors()

Reverts erroneous fields to their default values

Return Value

void

at line 126
boolean hasErrors()

Tells whether form validation failed

Return Value

boolean

at line 140
static string[] getFields()

Returns list of fields used in the form.

Return Value

string[]