MIOLO26
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MCustomField26

Membros públicos

 __construct ($data=NULL)
 
 getInputId ()
 
 setData ($data)
 
 insert ()
 
 update ()
 
 delete ()
 
 populate ()
 
 isRequired ()
 
 isEditable ()
 
 isVisible ()
 
 isVisivel ()
 
 __get ($attr)
 
 hasSQLParameters ()
 
 parsePossibleParameters ()
 
 getParameterArgs ()
 
 replaceSQLParameters ($sql)
 
 getListSQL ()
 
 getFieldHint ()
 
 getListValues ()
 

Membros públicos estáticos

static generateInputId ($identifier, $id, $suffix='')
 
static listByIdentifier ($identifier)
 
static listForGrid ($identifier='')
 
static listFormatFields ()
 
static getFieldByTableColumn ($table, $column)
 

Campos de Dados

const FORMAT_TEXT = 'text'
 
const FORMAT_LONG_TEXT = 'longText'
 
const FORMAT_INTEGER = 'integer'
 
const FORMAT_DECIMAL = 'decimal'
 
const FORMAT_LIST = 'list'
 
const FORMAT_LISTSQL = 'listsql'
 
const FORMAT_DATE = 'date'
 
const FORMAT_BOOLEAN = 'boolean'
 
const FORMAT_HIDDEN = 'oculto'
 
 $id
 
 $identifier
 
 $name
 
 $label
 
 $fieldFormat
 
 $possibleValues
 
 $regexp
 
 $minLength
 
 $maxLength
 
 $required
 
 $position
 
 $defaultValue
 
 $editable
 
 $visible
 
 $suffix
 
 $possibleParameters
 
 $paramNotFound
 
 $filtroFormularioBusca
 

Descrição detalhada

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $data = NULL)

MCustomField constructor.

Parâmetros
object$dataA stdClass instance to populate this object.

Documentação das funções

◆ __get()

__get ( $attr)

Method created to allow the aliases sId, sName and sVisible for id, name and visible. This is to avoid problems with subdetail.

Parâmetros
string$attrAttribute name.
Retorna
mixed Value.

◆ delete()

delete ( )

Delete a custom field.

Retorna
object Result of the removal.

◆ generateInputId()

static generateInputId ( $identifier,
$id,
$suffix = '' )
static

Generate the id to use on inputs.

Parâmetros
string$identifierThe identifier of the field, usually a table or form name.
string$idUnique custom field id.
string$suffixSuffix to be added to each field name.
Retorna
string Input id.

◆ getFieldByTableColumn()

static getFieldByTableColumn ( $table,
$column )
static

◆ getFieldHint()

getFieldHint ( )

◆ getInputId()

getInputId ( )
Retorna
string Get the id to use on inputs.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/ui/controls/mform.class.php.

◆ getListSQL()

getListSQL ( )
Retorna
array

◆ getListValues()

getListValues ( )
Retorna
array

◆ getParameterArgs()

getParameterArgs ( )
Retorna
array

◆ hasSQLParameters()

hasSQLParameters ( )
Retorna
boolean

◆ insert()

insert ( )

Insert a custom field.

Retorna
object Result of the insertion.

◆ isEditable()

isEditable ( )
Retorna
boolean Whether the editable attribute has the database true value.

◆ isRequired()

isRequired ( )
Retorna
boolean Whether the required attribute has the database true value.

◆ isVisible()

isVisible ( )
Retorna
boolean Whether the visible attribute has the database true value.

◆ isVisivel()

isVisivel ( )

◆ listByIdentifier()

static listByIdentifier ( $identifier)
static

List the custom fields with the given identifier.

Parâmetros
string$identifierThe identifier of the field, usually a table or form name.
Retorna
array Array of MCustomField instances.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/ui/controls/mform.class.php.

◆ listForGrid()

static listForGrid ( $identifier = '')
static

List the custom fields to show them on a grid.

Parâmetros
string$identifierThe identifier of the field, usually a table or form name.
Retorna
array Matrix of strings with the custom fields data.

◆ listFormatFields()

static listFormatFields ( )
static
Retorna
array List the possible format fields to use on formatField attribute.

◆ parsePossibleParameters()

parsePossibleParameters ( )

Obtem um array com parametros possiveis

Retorna
array

◆ populate()

populate ( )

Populate the object querying the database by the id.

◆ replaceSQLParameters()

replaceSQLParameters ( $sql)

Substitui os coringas (?) de parametros do SQL, caso necessario

Retorna
string

◆ setData()

setData ( $data)

Set the object attributes.

Parâmetros
object$dataA stdClass instance.

◆ update()

update ( )

Update a custom field.

Retorna
object Result of the update.

Documentação dos campos e atributos

◆ $defaultValue

$defaultValue

◆ $editable

$editable

◆ $fieldFormat

$fieldFormat

◆ $filtroFormularioBusca

$filtroFormularioBusca

◆ $id

$id

◆ $identifier

$identifier

◆ $label

$label

◆ $maxLength

$maxLength

◆ $minLength

$minLength

◆ $name

$name

◆ $paramNotFound

$paramNotFound

◆ $position

$position

◆ $possibleParameters

$possibleParameters

◆ $possibleValues

$possibleValues

◆ $regexp

$regexp

◆ $required

$required

◆ $suffix

$suffix

◆ $visible

$visible

◆ FORMAT_BOOLEAN

◆ FORMAT_DATE

◆ FORMAT_DECIMAL

◆ FORMAT_HIDDEN

const FORMAT_HIDDEN = 'oculto'

◆ FORMAT_INTEGER

◆ FORMAT_LIST

◆ FORMAT_LISTSQL

◆ FORMAT_LONG_TEXT

◆ FORMAT_TEXT

const FORMAT_TEXT = 'text'

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