MIOLO26
|
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 | |
__construct | ( | $data = NULL | ) |
MCustomField constructor.
object | $data | A stdClass instance to populate this object. |
__get | ( | $attr | ) |
Method created to allow the aliases sId, sName and sVisible for id, name and visible. This is to avoid problems with subdetail.
string | $attr | Attribute name. |
delete | ( | ) |
Delete a custom field.
|
static |
Generate the id to use on inputs.
string | $identifier | The identifier of the field, usually a table or form name. |
string | $id | Unique custom field id. |
string | $suffix | Suffix to be added to each field name. |
|
static |
getFieldHint | ( | ) |
getInputId | ( | ) |
getListSQL | ( | ) |
getListValues | ( | ) |
getParameterArgs | ( | ) |
hasSQLParameters | ( | ) |
insert | ( | ) |
Insert a custom field.
isEditable | ( | ) |
isRequired | ( | ) |
isVisible | ( | ) |
isVisivel | ( | ) |
|
static |
List the custom fields with the given identifier.
string | $identifier | The identifier of the field, usually a table or form name. |
|
static |
List the custom fields to show them on a grid.
string | $identifier | The identifier of the field, usually a table or form name. |
|
static |
parsePossibleParameters | ( | ) |
Obtem um array com parametros possiveis
populate | ( | ) |
Populate the object querying the database by the id.
replaceSQLParameters | ( | $sql | ) |
Substitui os coringas (?) de parametros do SQL, caso necessario
setData | ( | $data | ) |
Set the object attributes.
object | $data | A stdClass instance. |
update | ( | ) |
Update a custom field.
$defaultValue |
$editable |
$fieldFormat |
$filtroFormularioBusca |
$id |
$identifier |
$label |
$maxLength |
$minLength |
$name |
$paramNotFound |
$position |
$possibleParameters |
$possibleValues |
$regexp |
$required |
$suffix |
$visible |
const FORMAT_BOOLEAN = 'boolean' |
const FORMAT_DATE = 'date' |
const FORMAT_DECIMAL = 'decimal' |
const FORMAT_HIDDEN = 'oculto' |
const FORMAT_INTEGER = 'integer' |
const FORMAT_LIST = 'list' |
const FORMAT_LISTSQL = 'listsql' |
const FORMAT_LONG_TEXT = 'longText' |
const FORMAT_TEXT = 'text' |
Constants for field formats.