menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class BootstrapFormBuilder

Description

Implements interfaces:

Bootstrap form builder for Adianti Framework

Located in /wrapper/BootstrapFormBuilder.php (line 38)


	
			
Method Summary
static hideField ($form, $field)
static showField ($form, $field)
static wrapField ($field, $display, [$default_field_size = null])
__construct ([$name = 'my_form'])
addAction ($label, $action, [$icon = 'fa:save'])
addActionLink ($label, $action, [$icon = 'fa:save'])
addButton ($label, $action, [$icon = 'fa:save'])
addContent ($content,...)
addField ($field)
addFields ($fields,...)
addHeaderAction ($label, $action, [$icon = 'fa:save'])
appendPage ($title)
clear ([$keepDefaults = FALSE])
delField ($field)
getData ([$class = 'StdClass'])
getField ($name)
getName ()
setColumnClasses ($key, $classes)
setData ($object)
setFields ($fields)
setFieldSizes ($size)
setFormTitle ($title)
setHeaderProperty ($name, $value)
setName ($name)
setPadding ($padding)
setProperty ($name, $value)
setTabAction ($action)
setTabFunction ($function)
show ()
validateInlineArguments ($args, $method)
__call ($method, $parameters)
__set ($property, $value)
Methods
static hideField (line 792)
  • access: public
static hideField ($form, $field)
  • $form
  • $field
static showField (line 784)
  • access: public
static showField ($form, $field)
  • $form
  • $field
static wrapField (line 706)

Create a field wrapper

  • access: public
static wrapField ($field, $display, [$default_field_size = null])
  • $field
  • $display
  • $default_field_size
Constructor __construct (line 61)

Constructor method

  • access: public
__construct ([$name = 'my_form'])
  • $name: form name
addAction (line 374)

Add a form action

  • access: public
addAction ($label, $action, [$icon = 'fa:save'])
  • $label: Button label
  • $action: Button action
  • $icon: Button icon
addActionLink (line 395)

Add a form action link

  • access: public
addActionLink ($label, $action, [$icon = 'fa:save'])
  • $label: Button label
  • $action: Button action
  • $icon: Button icon
addButton (line 431)

Add a form button

  • access: public
addButton ($label, $action, [$icon = 'fa:save'])
  • $label: Button label
  • $action: JS Button action
  • $icon: Button icon
addContent (line 329)

Add a form content

  • access: public
addContent ($content,...)
  • $content,...: Form content
addField (line 180)

Add form field

  • access: public
addField ($field)
  • $field: Form field
addFields (line 294)

Add form fields

  • access: public
addFields ($fields,...)
  • $fields,...: Form fields
addHeaderAction (line 410)

Add a form header action

  • access: public
addHeaderAction ($label, $action, [$icon = 'fa:save'])
  • $label: Button label
  • $action: Button action
  • $icon: Button icon
appendPage (line 266)

Append a notebook page

  • access: public
appendPage ($title)
  • $title: Tab title
clear (line 223)

Clear form

  • access: public
clear ([$keepDefaults = FALSE])
  • $keepDefaults
delActions (line 455)

Clear actions row

  • access: public
delActions ()
delField (line 189)

Del form field

  • access: public
delField ($field)
  • $field: Form field
getActionButtons (line 469)

Return an array with action buttons

  • access: public
getActionButtons ()
getActions (line 249)

Return form actions

  • access: public
getActions ()
getData (line 241)

Get form data

  • access: public
getData ([$class = 'StdClass'])
  • $class: Object type of return data
getField (line 207)

Return form field

  • access: public
getField ($name)
  • $name: Field name
getFields (line 215)

Return form fields

  • access: public
getFields ()
getName (line 171)

Get form name

  • access: public
getName ()
setColumnClasses (line 477)
  • access: public
setColumnClasses ($key, $classes)
  • $key
  • $classes
setCurrentPage (line 118)

Define the current page to be shown

  • access: public
setCurrentPage ($i)
  • $i: An integer representing the page number (start at 0)
setData (line 232)

Set form data

  • access: public
setData ($object)
  • $object: Data object
setFields (line 198)

Set form fields

  • access: public
setFields ($fields)
  • $fields: Array of Form fields
setFieldSizes (line 91)

Set field sizes

  • access: public
setFieldSizes ($size)
  • $size
setFormTitle (line 100)

Add a form title

  • access: public
setFormTitle ($title)
  • $title: Form title
setHeaderProperty (line 154)

Define a header style property

  • access: public
setHeaderProperty ($name, $value)
  • $name: Property Name
  • $value: Property Value
setName (line 163)

Set form name

  • access: public
setName ($name)
  • $name: Form name
setPadding (line 109)

Set padding

  • access: public
setPadding ($padding)
  • $padding
setProperty (line 144)

Define a style property

  • access: public
setProperty ($name, $value)
  • $name: Property Name
  • $value: Property Value
setTabAction (line 285)

Define the action for the Notebook tab

  • access: public
setTabAction ($action)
  • $action: Action taken when the user clicks over Notebook tab (A TAction object)
setTabFunction (line 275)

Set tab click function

  • access: public
setTabFunction ($function)
  • $function
show (line 485)

Render form

  • access: public
show ()
validate (line 257)

Validate form data

  • access: public
validate ()
validateInlineArguments (line 354)

Validate argument type

  • access: public
validateInlineArguments ($args, $method)
  • $args: Array of arguments
  • $method: Generator method
__call (line 126)

Redirect calls to decorated object

  • access: public
__call ($method, $parameters)
  • $method
  • $parameters
__set (line 134)

Redirect assigns to decorated object

  • access: public
__set ($property, $value)
  • $property
  • $value