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


        
                    
Method Summary
 static hideField ( $form,  $field) void
 static showField ( $form,  $field) void
 __construct ([$name $name = 'my_form']) BootstrapFormBuilder
 addAction ($label $label,  $action, [$icon $icon = 'fa:save']) void
 addButton ($label $label, $action $action, [$icon $icon = 'fa:save']) void
 addContent (mixed $content,...) void
 addField ( $field) void
 addFields (mixed $fields,...) void
 appendPage ($title $title) void
 clear () void
 delField ( $field) void
 getData ([$class $class = 'StdClass']) void
 getField ($name $name) void
 getFields () void
 getName () void
 setCurrentPage ($i $i) void
 setData ($object $object) void
 setFields ($fields $fields) void
 setFormTitle ($title $title) void
 setName ($name $name) void
 setProperty ($name $name, $value $value, [ $replace = TRUE]) void
 show () void
 validate () void
 validateInlineArguments ($args $args, $method $method) void
 __call ( $method,  $parameters) void
 __set ( $property,  $value) void
Methods
static hideField (line 538)
  • access: public
void hideField ( $form,  $field)
  • $form
  • $field
static showField (line 530)
  • access: public
void showField ( $form,  $field)
  • $form
  • $field
Constructor __construct (line 42)

Constructor method

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

Add a form action

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

Add a form button

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

Add a form content

  • access: public
void addContent (mixed $content,...)
  • mixed $content,...: Form content
addField (line 115)

Add form field

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

Add form fields

  • access: public
void addFields (mixed $fields,...)
  • mixed $fields,...: Form fields
appendPage (line 193)

Append a notebook page

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

Clear form

  • access: public
void clear ()
delField (line 124)

Del form field

  • access: public
void delField ( $field)
  • $field $field: Form field
getData (line 176)

Get form data

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

Return form field

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

Return form fields

  • access: public
void getFields ()
getName (line 106)

Get form name

  • access: public
void getName ()
setCurrentPage (line 63)

Define the current page to be shown

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

Set form data

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

Set form fields

  • access: public
void setFields ($fields $fields)
  • $fields $fields: Array of Form fields
setFormTitle (line 54)

Add a form title

  • access: public
void setFormTitle ($title $title)
  • $title $title: Form title
setName (line 98)

Set form name

  • access: public
void setName ($name $name)
  • $name $name: Form name
setProperty (line 89)

Define a field property

  • access: public
void setProperty ($name $name, $value $value, [ $replace = TRUE])
  • $name $name: Property Name
  • $value $value: Property Value
  • $replace
show (line 335)

Render form

  • access: public
void show ()
validate (line 184)

Validate form data

  • access: public
void validate ()
validateInlineArguments (line 263)

Validate argument type

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

Redirect calls to decorated object

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

Redirect assigns to decorated object

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