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 TMultiField

Description

Implements interfaces:

MultiField Widget: Takes a group of input fields and gives them the possibility to register many occurrences

Located in /widget/form/TMultiField.php (line 29)

TField
   |
   --TMultiField
Variable Summary
mixed $formName
mixed $id
mixed $name
Method Summary
static clearField ($form_name, $field)
static disableField ($form_name, $field)
static enableField ($form_name, $field)
__construct ($name)
addField ($name, $text, $object, $size, [$mandatory = FALSE])
setClass ($class)
setFormName ($name)
setHeight ($height)
setOrientation ($orientation)
setValue ($objects)
show ()
Variables
mixed $formName (line 39)
  • access: protected

Redefinition of:
TField::$formName
mixed $id (line 37)
  • access: protected

Redefinition of:
TField::$id
mixed $name (line 38)
  • access: protected

Redefinition of:
TField::$name

Inherited Variables

Inherited from TField

TField::$editable
TField::$label
TField::$size
TField::$tag
TField::$value
Methods
static clearField (line 254)

Clear the field

  • access: public
static clearField ($form_name, $field)
  • $form_name: Form name
  • $field: Field name

Redefinition of:
TField::clearField()
Clear the field
static disableField (line 244)

Disable the field

  • access: public
static disableField ($form_name, $field)
  • $form_name: Form name
  • $field: Field name

Redefinition of:
TField::disableField()
Disable the field
static enableField (line 234)

Enable the field

  • access: public
static enableField ($form_name, $field)
  • $form_name: Form name
  • $field: Field name

Redefinition of:
TField::enableField()
Enable the field
Constructor __construct (line 45)

Class Constructor

  • access: public
__construct ($name)
  • $name: Name of the widget

Redefinition of:
TField::__construct()
Class Constructor
addField (line 92)

Add a field to the MultiField

  • access: public
addField ($name, $text, $object, $size, [$mandatory = FALSE])
  • $name: Widget's name
  • $text: Widget's label
  • $object: Widget
  • $size: Widget's size
  • $mandatory: Mandatory field
getClass (line 122)

Returns the class defined by the setClass() method

  • return: class for the Active Records returned by this component
  • access: public
getClass ()
getPostData (line 177)

Return the post data

  • access: public
getPostData ()

Redefinition of:
TField::getPostData()
Return the post data
setClass (line 113)

Define the class for the Active Records returned by this component

  • access: public
setClass ($class)
  • $class: Class Name
setFormName (line 70)

Define the name of the form to wich the multifield is attached

  • access: public
setFormName ($name)
  • $name: A string containing the name of the form

Redefinition of:
TField::setFormName()
Define the name of the form to wich the field is attached
setHeight (line 224)

Define the MultiField height

  • access: public
setHeight ($height)
  • $height: Height in pixels
setOrientation (line 60)

Define form orientation

  • access: public
setOrientation ($orientation)
  • $orientation: (vertical, horizontal)
setValue (line 131)

Define the MultiField content

  • access: public
setValue ($objects)
  • $objects: A Collection of Active Records

Redefinition of:
TField::setValue()
Define the field's value

Implementation of:
AdiantiWidgetInterface::setValue()
show (line 262)

Show the widget at the screen

  • access: public
show ()

Implementation of:
AdiantiWidgetInterface::show()

Inherited Methods

Inherited From TField

TField::__construct()
TField::addValidation()
TField::clearField()
TField::disableField()
TField::enableField()
TField::getContents()
TField::getEditable()
TField::getFormName()
TField::getId()
TField::getLabel()
TField::getName()
TField::getPostData()
TField::getProperty()
TField::getSize()
TField::getValidations()
TField::getValue()
TField::isRequired()
TField::setEditable()
TField::setFormName()
TField::setId()
TField::setLabel()
TField::setName()
TField::setProperty()
TField::setSize()
TField::setTip()
TField::setValue()
TField::validate()
TField::__call()
TField::__clone()
TField::__get()
TField::__set()