base class for controls which uses a datasource to fill their contents.
| package |
jelix |
|---|---|
| subpackage |
forms |
__construct(string $ref)
stringthe identifiant of the control
_getLabel( $value)
check() : integer|null
It is the responsability of the implementation to fill the "errors" or "data" properties of the container.
integer|nullnull if it is ok, or one of jForms::ERRDATA_* constants when there is an error
deactivate( $deactivation = true)
getAttribute( $name)
getDisplayValue( $value)
getWidgetType() : string
| since | 1.6.14 |
|---|---|
stringthe default widget type to use to render the control
isActivated() : boolean
booleantrue if it is activated
isContainer()
isHtmlContent()
| since | 1.2 |
|---|---|
isReadOnly() : boolean
booleantrue if it is readonly
setAttribute( $name, $value)
setData( $value)
setDataFromDao( $value, $daoDatatype)
setReadOnly( $r = true)
type : string
| var |
a type name that identify the control type |
|---|
string
defaultValue : mixed
| var |
the value when the form is created (and not initialized by a data source |
|---|
mixed
ref : string
| var |
the identifiant of the control |
|---|
string
datatype : \jDatatype
required : boolean
| var |
true if the control should be filled by the user |
|---|
boolean
label : string
| var |
the label |
|---|
string
help : string
| var |
the message for the help on the control (typically help displayed in a popup) |
|---|
string
hint : string
| var |
the message for tips on the control (typically the tooltip value) |
|---|
string
alertInvalid : string
| var |
the message when the value is invalid |
|---|
string
alertRequired : string
| var |
the message when there is no value and it is required |
|---|
string
initialReadOnly : boolean
| var |
indicate if the control is in read only mode |
|---|
boolean
initialActivation : boolean
| var |
|---|
boolean
emptyValueLabel : string
| var |
label displayed when only values are displayed, and when there is no value |
|---|
string
container : \jFormsDataContainer
attributes : array
| var |
miscellaneous values attached to the control |
|---|
array