Fieldset Configuration
The property gives access to the metadata that was derrived from the projects main Idea file. This can be used to dynamically generate code.
❐ Copy
NOTE: depends on your configuration.
You can also access these action easier through a plugin like the following.
❐ Copy
icon
Returns the value. These names are from Font Awesome. For example, would be used as .
Schema Example
❐ Copy
Code Example
❐ Copy
label
Returns the fieldset names. This is an array of strings that consist of the singular and plural name of the fieldset.
Schema Example
❐ Copy
Code Example
❐ Copy
plural
Returns the fieldset plural .
Schema Example
❐ Copy
Code Example
❐ Copy
singular
Returns the schema singular .
Schema Example
❐ Copy
Code Example
❐ Copy
camel
Returns the camel cased version of the fieldset name.
❐ Copy
❐ Copy
dash
Returns the dashed version of the fieldset name.
❐ Copy
❐ Copy
lower
Returns the lower case version of the fieldset name.
❐ Copy
❐ Copy
snake
Returns the snake version of the fieldset name.
❐ Copy
❐ Copy
title
Returns the title version of the fieldset name.
❐ Copy
❐ Copy
enums
Returns all the columns with types that are .
Schema Example
❐ Copy
Code Example
❐ Copy
fieldsets
Returns all the columns with types that are fieldsets.
Schema Example
❐ Copy
Code Example
❐ Copy
fields
Returns all the columns with the attribute. Field columns are used in the create and update forms. You can find all the field attributes in the Schema Specifications.
Schema Example
❐ Copy
Code Example
❐ Copy
lists
Returns all the columns with that are listable. Listable columns are used in the search results. You can find all the list attributes in the Schema Specifications.
NOTE: All columns by default are listable. This property will only return the columns that are not hidden.
To make a column not listable, use the attribute.
Schema Example
❐ Copy
❐ Copy
Code Example
❐ Copy
views
Returns all the columns with that are viewable. Viewable columns are used in detail pages. You can find all the view attributes in the Schema Specifications.
NOTE: All columns by default are viewable. This property will only return the columns that are not hidden.
To make a column not viewable, use the attribute.
Schema Example
❐ Copy
❐ Copy
Code Example
❐ Copy
assertions
Returns all the columns with the attribute. Validation columns are used validate insertions and updates. You can find all the validation attributes in the Schema Specifications.
Schema Example
❐ Copy
Code Example
❐ Copy
defaults
Returns all the columns with the attribute.
Schema Example
❐ Copy
Code Example
❐ Copy
encrypted
Returns all the columns with the attribute. Encrypted columns will automatically be encrypted when inserted into the database and decrypted when read from the database.
Schema Example
❐ Copy
Code Example
❐ Copy
template
Returns the value. This value is used to compute the label that will be represented for each row. This is useful for autocompletes fields and drop downs.
Schema Example
❐ Copy
Code Example
❐ Copy
assert()
Asserts the values and returns errors. If no errors, will return .
❐ Copy
column()
Returns a column by name. If no column is found, it will return.
❐ Copy
filter()
Removes values that are not columns
❐ Copy
input()
Removes values that are not columns or (strict) input fields. This is useful for forms that only allow certain fields to be submitted.
Schema Example
❐ Copy
Code Example
❐ Copy
❐ Copy
render()
Renders a template given the data.
Schema Example
❐ Copy
Code Example
❐ Copy
serialize()
Serializes values to be inserted into the database
❐ Copy
unserialize()
Unserializes all values coming from the database.
❐ Copy