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 39)


	
			
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)
getId ()
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 816)
  • access: public
static hideField ($form, $field)
  • $form
  • $field
static showField (line 808)
  • access: public
static showField ($form, $field)
  • $form
  • $field
static wrapField (line 730)

Create a field wrapper

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

Constructor method

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

Add a form action

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

Add a form action link

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

Add a form button

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

Add a form content

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

Add form field

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

Add form fields

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

Add a form header action

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

Append a notebook page

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

Clear form

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

Clear actions row

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

Del form field

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

Return an array with action buttons

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

Return form actions

  • access: public
getActions ()
getContents (line 832)

Returns the element content as a string

  • access: public
getContents ()
getData (line 250)

Get form data

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

Return form field

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

Return form fields

  • access: public
getFields ()
getId (line 92)

Returns form id

  • access: public
getId ()
getName (line 180)

Get form name

  • access: public
getName ()
setColumnClasses (line 500)
  • access: public
setColumnClasses ($key, $classes)
  • $key
  • $classes
setCurrentPage (line 127)

Define the current page to be shown

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

Set form data

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

Set form fields

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

Set field sizes

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

Add a form title

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

Define a header style property

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

Set form name

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

Set padding

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

Define a style property

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

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 284)

Set tab click function

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

Render form

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

Validate form data

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

Validate argument type

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

Redirect calls to decorated object

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

Redirect assigns to decorated object

  • access: public
__set ($property, $value)
  • $property
  • $value
__toString (line 824)

Converts the object into a string

  • access: public
__toString ()