MIOLO25
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MForm
Diagrama de heranças da classe MForm
MBaseForm MContainerControl MDiv MControl MControl MComponent MComponent Form Form MCSSForm MCSSPForm MCompoundForm MDOMPDFReport MFormAJAX MIndexedForm MStepByStepForm MTabbedForm MTabbedForm2

Membros públicos

 __construct ($title='', $action='', $close='', $icon='')
 
 getTitle ()
 
 setTitle ($title)
 
 setClose ($action)
 
 setIcon ($icon)
 
 getFooter ()
 
 setFooter ($footer)
 
 setHelp ($href)
 
 getData ()
 
 getAjaxData ()
 
 setData ($data)
 
 getFieldValue ($name, $value=false)
 
 setFieldValue ($name, $value)
 
 setFieldValidator ($name, $value)
 
GetField ($name)
 
GetButton ($name)
 
GetPage ()
 
 setPage ($page)
 
 setFieldAttr ($name, $attr, $value)
 
 getFieldAttr ($name, $attr, $index=NULL)
 
 setButtonAttr ($name, $attr, $value)
 
 setFieldCSS ($name, $top, $left, $width=NULL, $position='absolute')
 
 setFormCSS ($height=0, $width=0, $top=0, $left=0, $buttons=0, $position='absolute')
 
 setBackgroundColor ($bgcolor)
 
 setAlign ($value)
 
 setWidth ($width=NULL)
 
 setHeight ($height=NULL)
 
 generateFooter ()
 
 generateInner ()
 
- Membros públicos herdados de MBaseForm
 __construct ($action='')
 
 __set ($name, $value)
 
 __get ($name)
 
 onLoad ()
 
 createFields ()
 
 isAjaxCall ()
 
 registerMethod ()
 
 addValidator ($validator)
 
 setValidators ($validators)
 
 setAjaxFields ($fields, $responseControl)
 
 isSubmitted ()
 
 setAlternate ($color0, $color1)
 
 setFocus ($fieldName)
 
 getFormFields ()
 
 getFormValue ($name, $value=NULL)
 
 setFormValue ($name, $value)
 
 onSubmit ($jscode)
 
 addJsCode ($jscode)
 
 setAction ($action)
 
 setFields ($fields)
 
 addField ($field, $hint=false)
 
 addFields ($fields)
 
 addButton ($button)
 
 setButtons ($buttons)
 
 setButtonLabel ( $index, $label)
 
 showReturn ( $state)
 
 setShowReturnButton ( $state)
 
 setShowPostButton ( $state)
 
 showReset ( $state)
 
 setShowResetButton ( $state)
 
 getShowHints ()
 
 setShowHints ( $state)
 
 showHints ( $state)
 
 getFieldList ()
 
 clearFields ()
 
 clearField ($name)
 
 clearButtons ()
 
 validate ()
 
 error ( $err)
 
 addError ($err)
 
 hasErrors ()
 
 addInfo ($info)
 
 hasInfos ()
 
 addAlert ($alert)
 
 hasAlerts ()
 
 collectInput ($data)
 
 setData (MBusiness $data)
 
getField ($name)
 
getButton ($name)
 
getPage ()
 
 setResponse ($controls, $element='', $generateFormLayout=false)
 
 getCloseWindow ()
 
 setLabelWidth ($width)
 
 setFieldsReadOnly ($readOnly=true)
 
 setFieldReadOnly ($field, $readOnly=true)
 
 submit_button ()
 
 generateErrors ()
 
 generateInfos ()
 
 generateAlerts ()
 
 generateBody ()
 
 generateLayoutFields (&$hidden)
 
 getFieldValidator ($name)
 
 generateLayoutField ($f, &$hidden=array())
 
 setJsValidationEnabled ($jsValidationEnabled)
 
 getJsValidationEnabled ()
 
 generateButtons ()
 
 generateHiddenFields ($hidden)
 
 generateScript ()
 
- Membros públicos herdados de MContainerControl
 __clone ()
 
 addControl ($control)
 
 insertControl ($control, $pos=0)
 
 setControl ($control, $pos=0)
 
 setControls ($controls)
 
 getControls ()
 
 getControl ($pos)
 
 getControlById ($id)
 
 findControlById ($id)
 
 setControlById ($control, $id)
 
 clearControls ()
 
- Membros públicos herdados de MDiv
 addAttribute ($attr, $value)
 
 generate ()
 
 generate ()
 
- Membros públicos herdados de MControl
 setName ($name)
 
 setId ($id)
 
 getId ()
 
 getName ()
 
 getUniqueId ()
 
 setClass ($cssClass, $add=TRUE)
 
 insertClass ( $cssClass)
 
 addStyleFile ( $styleFile)
 
 getClass ()
 
 addStyle ($name, $value)
 
 setStyle ($style)
 
 getStyle ()
 
 getBoxStyle ()
 
 setPosition ($left, $top, $position='absolute')
 
 setColor ($value)
 
 setVisibility ($value)
 
 setFont ($value)
 
 setAttribute ( $name, $value=null)
 
 getAttribute ( $name)
 
 setAttributes ($attr)
 
 attributes ( $mergeDuplicates=false)
 
 getAttributes ( $mergeDuplicates=false)
 
 setReadOnly ($status)
 
 setEnabled ($state)
 
 setJsHint ( $hint)
 
 setHint ( $hint)
 
 setCaption ($caption)
 
 setHTMLTitle ($title)
 
 eventHandler ()
 
 attachEventHandler ( $name, $handler, $param=NULL)
 
 addEvent ($event, $handler, $preventDefault=true)
 
 hasEvent ($event)
 
 generateEvent ()
 
 setContent ($inner)
 
 setInner ($inner)
 
 getInner ()
 
 getRender ( $method)
 
 getInnerToString ()
 
 getCSSP ()
 
 __toString ()
 
- Membros públicos herdados de MComponent
 getManager ()
 

Campos de Dados

 $formBox
 
 $title
 
 $help
 
 $footer
 
 $bgColor
 
 $align = NULL
 
- Campos de Dados herdados de MBaseForm
 $method
 
 $buttons
 
 $fields = array()
 
 $return
 
 $reset
 
 $styles
 
 $width
 
 $enctype
 
 $validations
 
 $defaultButton
 
 $errors
 
 $infos
 
 $alerts
 
 $layout
 
 $zebra = false
 
 $labelWidth = NULL
 
 $focus = ''
 
 $ajax
 
 $cp
 
 $cssForm = false
 
 $cssButtons
 
- Campos de Dados herdados de MContainerControl
 $controls
 
 $controlsId
 
- Campos de Dados herdados de MControl
 $id
 
 $uniqueId
 
 $enabled
 
 $style
 
 $attrs
 
 $attributes
 
 $maintainState
 
 $readonly
 
 $visible
 
 $caption
 
 $jsHint
 
 $hint
 
 $cssp
 
 $inner
 
 $parent
 
 $eventHandlers
 
 $painter
 
 $event
 
 $formId
 
const ALIGN_CENTER = 'center'
 
const ALIGN_LEFT = 'left'
 
const ALIGN_RIGHT = 'right'
 
const FORM_MODE_WHOLE_ROW = 0
 
const FORM_MODE_SHOW_SIDE = 1
 
const FORM_MODE_SHOW_ABOVE = 2
 
const FORM_MODE_SHOW_NBSP = 3
 
 $formMode
 
- Campos de Dados herdados de MComponent
 $manager
 
 $page
 
 $owner
 
 $name
 
 $className
 

Outros membros herdados

- Atributos Públicos Estáticos herdados de MBaseForm
static $showHints = true
 
static $fieldNum = 0
 
- Atributos Públicos Estáticos herdados de MControl
static $_number = 0
 
- Membros protegidos herdados de MBaseForm
 _getFormFieldValue ($field)
 
- Membros protegidos herdados de MContainerControl
 _AddControl ($control, $pos=0, $op='add')
 
- Membros protegidos herdados de MControl
 _addStyle ($name, $value)
 
- Atributos Protegidos herdados de MBaseForm
 $action
 

Descrição detalhada

A class for forms, extending from MBaseForm. This class acts as a Decorator for MBaseForm, adding a outer box for the form.

Autor
Vilson Cristiano Gärtner [vilso.nosp@m.n@so.nosp@m.lis.c.nosp@m.oop..nosp@m.br]
Ely Edison Matos [ely.m.nosp@m.atos.nosp@m.@ufjf.nosp@m..edu.nosp@m..br]

Maintainers:
Armando Taffarel Neto [taffa.nosp@m.rel@.nosp@m.solis.nosp@m..coo.nosp@m.p.br] Daniel Hartmann [danie.nosp@m.l@so.nosp@m.lis.c.nosp@m.oop..nosp@m.br]

Desde
Creation date 2006/03/08

Organization:
SOLIS - Cooperativa de Soluções Livres
Copyright:
Copyright (c) 2006-2011 SOLIS - Cooperativa de Soluções Livres
License:
Licensed under GPLv2 (for further details read the COPYING file or http://www.gnu.org/licenses/gpl.html)

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $title = '',
$action = '',
$close = '',
$icon = '' )

This is the constructor of the Form class. It takes a title and an action url as optional parameters. The action URL is typically obtained by calling the MIOLO->getActionURL() method.

Parâmetros
$title(string) the form's title string
$action(string) the URL for the forms ACTION attribute.

Reimplementado de MDiv.

Reimplementado em MStepByStepForm, Form, MFormDialog, MCompoundForm e MCSSForm.

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

Documentação das funções

◆ generateFooter()

generateFooter ( )

Brief Description. Complete Description.

Retorna
(tipo) desc

Reimplementado de MBaseForm.

Reimplementado em MTabbedForm.

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ generateInner()

generateInner ( )

◆ getAjaxData()

getAjaxData ( )

Obtains form fields in a FormData object, including dynamically added fields.

Retorna
(Object) Form fields
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ GetButton()

& GetButton ( $name)

◆ getData()

getData ( )

Obtains form fields in a FormData object.

Retorna
(Object) Form fields

Reimplementado de MBaseForm.

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ GetField()

& GetField ( $name)

◆ getFieldAttr()

getFieldAttr ( $name,
$attr,
$index = NULL )

Get a form field's attribute value

Reimplementado de MBaseForm.

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ getFieldValue()

getFieldValue ( $name,
$value = false )

Obtains a form field's value

Reimplementado de MBaseForm.

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ getFooter()

getFooter ( )

Obtains the content title of this form's footer. Observe, that this can be anything other as a simple text string too, such as array of strings and an object implementing the Generate() method.

Retorna
(Mixed &) a reference to the footer of the form
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ GetPage()

◆ getTitle()

getTitle ( )

Obtains the content of this form's title. Observe, that this can be anything other as a simple text string too, such as array of strings and an object implementing the Generate() method.

Retorna
(Mixed &) a reference to the title of the form
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setAlign()

◆ setBackgroundColor()

◆ setButtonAttr()

setButtonAttr ( $name,
$attr,
$value )

Set a form field's attribute a value

Reimplementado de MBaseForm.

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setClose()

setClose ( $action)

Sets the form's close action

Parâmetros
(string)$action Form action
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setData()

◆ setFieldAttr()

setFieldAttr ( $name,
$attr,
$value )

Set a form field's attribute a value

Reimplementado de MBaseForm.

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setFieldCSS()

setFieldCSS ( $name,
$top,
$left,
$width = NULL,
$position = 'absolute' )

Set CSS for the field.

Parâmetros
(string)$name
(integer)$top
(integer)$left
(integer)$width
(string)$position
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setFieldValidator()

setFieldValidator ( $name,
$value )

Set a form field's validator

Reimplementado de MBaseForm.

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setFieldValue()

setFieldValue ( $name,
$value )

◆ setFooter()

setFooter ( $footer)

Form's footer. Sets the form's footer content.

Parâmetros
$footer(tipo) Footer content
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setFormCSS()

setFormCSS ( $height = 0,
$width = 0,
$top = 0,
$left = 0,
$buttons = 0,
$position = 'absolute' )

Set form CSS

Parâmetros
(integer)$height
(integer)$width
(integer)$top
(integer)$left
(integer)$buttons
(string)$position
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setHeight()

setHeight ( $height = NULL)

◆ setHelp()

setHelp ( $href)

Sets an URL to a help document. This document will be opened via JavaScript in a new window. If this URL is set, the form will display a help button in it's title bar.

Parâmetros
(string)$href URL
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setIcon()

setIcon ( $icon)

Sets the form's icon

Parâmetros
(string)$icon Icon URL
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setPage()

setPage ( $page)

◆ setTitle()

setTitle ( $title)

Set the form's title

Parâmetros
(string)$title Form title
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setWidth()

setWidth ( $width = NULL)

Documentação dos campos e atributos

◆ $align

◆ $bgColor

◆ $footer

◆ $formBox

◆ $help

◆ $title


A documentação para esta classe foi gerada a partir do seguinte ficheiro: