TABFPFICIEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = []
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_INTSYS
- db_table = 'TABFPFICI'
- pk_field = 'EMPRE_FICI'
- sanitize = []
- security = ['select' => 'src\models\TABFPFICISecurity::securitySelect']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = []
Properties
- $COMPE_FICI : mixed
- $EMPRE_FICI : mixed
- $EVENT_FICI : mixed
- $FUNCI_FICI : mixed
- $ITEMF_FICI : mixed
- $REFER_FICI : mixed
- $TPPGT_FICI : mixed
- $VALOR_FICI : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCOMPE_FICI() : mixed
- Get the value of COMPE_FICI
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDBDriver() : mixed
- getDBTable() : mixed
- getEMPRE_FICI() : mixed
- Get the value of EMPRE_FICI
- getEVENT_FICI() : mixed
- Get the value of EVENT_FICI
- getFUNCI_FICI() : mixed
- Get the value of FUNCI_FICI
- getITEMF_FICI() : mixed
- Get the value of ITEMF_FICI
- getREFER_FICI() : mixed
- Get the value of REFER_FICI
- getTable() : mixed
- getTPPGT_FICI() : mixed
- Get the value of TPPGT_FICI
- getVALOR_FICI() : mixed
- Get the value of VALOR_FICI
- hasField() : mixed
- insert() : null|Entity
- insert_or_select() : null|Entity
- Funcao que insere ou seleciona se existe
- insert_or_update() : array<string|int, mixed>
- Funcao que insere ou atualiza uma entidade no banco de dados
- securityDelete() : bool
- securityInsert() : bool
- securitySelect() : array<string|int, mixed>
- securityUpdate() : bool
- setCOMPE_FICI() : self
- Set the value of COMPE_FICI
- setEMPRE_FICI() : self
- Set the value of EMPRE_FICI
- setEVENT_FICI() : self
- Set the value of EVENT_FICI
- setFUNCI_FICI() : self
- Set the value of FUNCI_FICI
- setITEMF_FICI() : self
- Set the value of ITEMF_FICI
- setREFER_FICI() : self
- Set the value of REFER_FICI
- setTPPGT_FICI() : self
- Set the value of TPPGT_FICI
- setVALOR_FICI() : self
- Set the value of VALOR_FICI
- update() : mixed
- A função update pode atualizar uma Entity já instanciada, desde que a chave primária esteja setada, ou pode atualizar uma Entity vazia informando o valor da chave primária no segundo parâmetro (pk_value)
- validateFields() : bool
- where() : Collection
- Rudimentary ORM functions
Constants
auditlog
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
public
mixed
auditlog
= []
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_INTSYS
db_table
public
mixed
db_table
= 'TABFPFICI'
pk_field
public
mixed
pk_field
= 'EMPRE_FICI'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['select' => 'src\models\TABFPFICISecurity::securitySelect']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= []
Properties
$COMPE_FICI
private
mixed
$COMPE_FICI
$EMPRE_FICI
private
mixed
$EMPRE_FICI
$EVENT_FICI
private
mixed
$EVENT_FICI
$FUNCI_FICI
private
mixed
$FUNCI_FICI
$ITEMF_FICI
private
mixed
$ITEMF_FICI
$REFER_FICI
private
mixed
$REFER_FICI
$TPPGT_FICI
private
mixed
$TPPGT_FICI
$VALOR_FICI
private
mixed
$VALOR_FICI
Methods
__construct()
public
__construct([array<string|int, mixed> $values = [] ]) : mixed
Parameters
- $values : array<string|int, mixed> = []
delete()
public
delete(mixed $motivo) : mixed
Parameters
- $motivo : mixed
delete_where()
public
static delete_where(mixed $motivo[, mixed $where = [] ]) : mixed
Parameters
- $motivo : mixed
- $where : mixed = []
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getCOMPE_FICI()
Get the value of COMPE_FICI
public
getCOMPE_FICI() : mixed
getConst()
public
static getConst(string $field[, mixed $const_value = null ]) : mixed
Parameters
- $field : string
- $const_value : mixed = null
getConstObj()
public
static getConstObj(string $field[, mixed $const_value = null ]) : mixed
Parameters
- $field : string
- $const_value : mixed = null
getDatabase()
public
getDatabase() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getEMPRE_FICI()
Get the value of EMPRE_FICI
public
getEMPRE_FICI() : mixed
getEVENT_FICI()
Get the value of EVENT_FICI
public
getEVENT_FICI() : mixed
getFUNCI_FICI()
Get the value of FUNCI_FICI
public
getFUNCI_FICI() : mixed
getITEMF_FICI()
Get the value of ITEMF_FICI
public
getITEMF_FICI() : mixed
getREFER_FICI()
Get the value of REFER_FICI
public
getREFER_FICI() : mixed
getTable()
public
getTable() : mixed
getTPPGT_FICI()
Get the value of TPPGT_FICI
public
getTPPGT_FICI() : mixed
getVALOR_FICI()
Get the value of VALOR_FICI
public
getVALOR_FICI() : mixed
hasField()
public
static hasField(mixed $field) : mixed
Parameters
- $field : mixed
insert()
public
insert() : null|Entity
Return values
null|Entityinsert_or_select()
Funcao que insere ou seleciona se existe
public
insert_or_select([mixed $where = [] ]) : null|Entity
Parameters
- $where : mixed = []
Return values
null|Entityinsert_or_update()
Funcao que insere ou atualiza uma entidade no banco de dados
public
insert_or_update([mixed $where = [] ][, mixed $update_fields = ['*'] ]) : array<string|int, mixed>
Parameters
- $where : mixed = []
- $update_fields : mixed = ['*']
Return values
array<string|int, mixed>securityDelete()
public
securityDelete(mixed $table, mixed $where) : bool
Parameters
- $table : mixed
- $where : mixed
Return values
boolsecurityInsert()
public
securityInsert(mixed $fields) : bool
Parameters
- $fields : mixed
Return values
bool —return 'true' if the security function didn't find any security issue and 'false' otherwise
securitySelect()
public
securitySelect(mixed $table, mixed $fields, mixed $where) : array<string|int, mixed>
Parameters
- $table : mixed
- $fields : mixed
- $where : mixed
Return values
array<string|int, mixed> —return an array with information to be appended in the SQL select
securityUpdate()
public
securityUpdate(mixed $fields, mixed $where) : bool
Parameters
- $fields : mixed
- $where : mixed
Return values
bool —return 'true' if the security function didn't find any security issue and 'false' otherwise
setCOMPE_FICI()
Set the value of COMPE_FICI
public
setCOMPE_FICI(mixed $COMPE_FICI) : self
Parameters
- $COMPE_FICI : mixed
Return values
selfsetEMPRE_FICI()
Set the value of EMPRE_FICI
public
setEMPRE_FICI(mixed $EMPRE_FICI) : self
Parameters
- $EMPRE_FICI : mixed
Return values
selfsetEVENT_FICI()
Set the value of EVENT_FICI
public
setEVENT_FICI(mixed $EVENT_FICI) : self
Parameters
- $EVENT_FICI : mixed
Return values
selfsetFUNCI_FICI()
Set the value of FUNCI_FICI
public
setFUNCI_FICI(mixed $FUNCI_FICI) : self
Parameters
- $FUNCI_FICI : mixed
Return values
selfsetITEMF_FICI()
Set the value of ITEMF_FICI
public
setITEMF_FICI(mixed $ITEMF_FICI) : self
Parameters
- $ITEMF_FICI : mixed
Return values
selfsetREFER_FICI()
Set the value of REFER_FICI
public
setREFER_FICI(mixed $REFER_FICI) : self
Parameters
- $REFER_FICI : mixed
Return values
selfsetTPPGT_FICI()
Set the value of TPPGT_FICI
public
setTPPGT_FICI(mixed $TPPGT_FICI) : self
Parameters
- $TPPGT_FICI : mixed
Return values
selfsetVALOR_FICI()
Set the value of VALOR_FICI
public
setVALOR_FICI(mixed $VALOR_FICI) : self
Parameters
- $VALOR_FICI : mixed
Return values
selfupdate()
A função update pode atualizar uma Entity já instanciada, desde que a chave primária esteja setada, ou pode atualizar uma Entity vazia informando o valor da chave primária no segundo parâmetro (pk_value)
public
update(array<string|int, mixed> $values[, mixed $pk_value = null ]) : mixed
Parameters
- $values : array<string|int, mixed>
- $pk_value : mixed = null
validateFields()
public
validateFields([array<string|int, mixed> $fields = [] ]) : bool
Parameters
- $fields : array<string|int, mixed> = []
Return values
boolwhere()
Rudimentary ORM functions
public
static where([mixed $where = [] ][, mixed $select = '*' ]) : Collection
Parameters
- $where : mixed = []
- $select : mixed = '*'