Skip to content
World Wide Web Server edited this page Jul 4, 2012 · 4 revisions

Category:Libraries::SuperModel

The [b]$fields[/b] array holds the configuration information for all the database fields. It is stored for performance reasons, instead of being looked up from the database meta-information.

When SuperModel initializes, it actually turns the fields array into an object structure.

Each field has a number of options, and some are common to all fields:

[b]$type[/b] - Determines the control type and some other behaviour for the field. See SuperModel:Types for more information and detailed options for each type.

[b]$label[/b] - The label to show when presenting the option.

[b]$store[/b] - A boolean value indicating if the value is stored in the database or not. By default, if it is not explicitly specified, only the following types are stored: 'text','input','password','textarea','select','dropdown','checkbox','radio','hidden','serverside'.

Clone this wiki locally