\web\lib\adminOptionDisplay

We need to display previously set options in various forms. This class covers the ways to do that; the generated page content can then be parsed with OptionParser.

Summary

Methods
Properties
Constants
__construct()
prefilledOptionTable()
optiontext()
No public properties found
HTML_DATATYPE_TEXTS
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

HTML_DATATYPE_TEXTS

HTML_DATATYPE_TEXTS = [\core\Options::TYPECODE_FILE => [html => input type='file', tail =>  size='10'], \core\Options::TYPECODE_BOOLEAN => [html => input type='checkbox', tail => ], \core\Options::TYPECODE_INTEGER => [html => input type='number', tail => ], \core\Options::TYPECODE_STRING => [html => input type='string', tail => ], \core\Options::TYPECODE_TEXT => [html => textarea cols='30' rows='3', tail => ></textarea]]

Methods

__construct()

__construct(mixed|string|int  options,   level) : 

Which attributes are we talking about?

Parameters

mixed|string|int options

the options of interest

level

the level on which these options were defined by the user

Returns

prefilledOptionTable()

prefilledOptionTable(  attributePrefix) : 

creates a table with all the set options prefilled. Only displays options of the category indicated.

Parameters

attributePrefix

category of option to display

Returns

HTML code

None found

optiontext()

optiontext(mixed|string|int  list,   prefillValue = NULL,   prefillLang = NULL) : 

Displays a container for options. Either with prefilled data or empty; if empty then has HTML <input> tags with clever javaScript to allow selection of different option names and types

Parameters

mixed|string|int list

options which should be displayed; can be only exactly one if existing option, or multiple if new option type

prefillValue

for an existing option, it's value to be displayed

prefillLang

for an existing option, the language of the value to be displayed

Returns

HTML code