TABFPCHEQEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['*']]
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_INTSYS
- db_table = 'TABFPCHEQ'
- pk_field = 'EMPRE_CHEQ'
- sanitize = []
- security = ['select' => 'src\models\TABFPCHEQSecurity::securitySelect']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = []
Properties
- $AGENC_CHEQ : mixed
- $BANCO_CHEQ : mixed
- $CONTA_CHEQ : mixed
- $DTCRE_CHEQ : mixed
- $DTEMI_CHEQ : mixed
- $EMPRE_CHEQ : mixed
- $FAVOR_CHEQ : mixed
- $FUNCI_CHEQ : mixed
- $NUMER_CHEQ : mixed
- $REFER_CHEQ : mixed
- $SEQUE_CHEQ : mixed
- $STATU_CHEQ : mixed
- $VALOR_CHEQ : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAGENC_CHEQ() : mixed
- Get the value of AGENC_CHEQ
- getAuditlog() : mixed
- getBANCO_CHEQ() : mixed
- Get the value of BANCO_CHEQ
- getConst() : mixed
- getConstObj() : mixed
- getCONTA_CHEQ() : mixed
- Get the value of CONTA_CHEQ
- getDatabase() : mixed
- getDBDriver() : mixed
- getDBTable() : mixed
- getDTCRE_CHEQ() : mixed
- Get the value of DTCRE_CHEQ
- getDTEMI_CHEQ() : mixed
- Get the value of DTEMI_CHEQ
- getEMPRE_CHEQ() : mixed
- Get the value of EMPRE_CHEQ
- getFAVOR_CHEQ() : mixed
- Get the value of FAVOR_CHEQ
- getFUNCI_CHEQ() : mixed
- Get the value of FUNCI_CHEQ
- getNUMER_CHEQ() : mixed
- Get the value of NUMER_CHEQ
- getREFER_CHEQ() : mixed
- Get the value of REFER_CHEQ
- getSEQUE_CHEQ() : mixed
- Get the value of SEQUE_CHEQ
- getSTATU_CHEQ() : mixed
- Get the value of STATU_CHEQ
- getTable() : mixed
- getVALOR_CHEQ() : mixed
- Get the value of VALOR_CHEQ
- 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
- setAGENC_CHEQ() : self
- Set the value of AGENC_CHEQ
- setBANCO_CHEQ() : self
- Set the value of BANCO_CHEQ
- setCONTA_CHEQ() : self
- Set the value of CONTA_CHEQ
- setDTCRE_CHEQ() : self
- Set the value of DTCRE_CHEQ
- setDTEMI_CHEQ() : self
- Set the value of DTEMI_CHEQ
- setEMPRE_CHEQ() : self
- Set the value of EMPRE_CHEQ
- setFAVOR_CHEQ() : self
- Set the value of FAVOR_CHEQ
- setFUNCI_CHEQ() : self
- Set the value of FUNCI_CHEQ
- setNUMER_CHEQ() : self
- Set the value of NUMER_CHEQ
- setREFER_CHEQ() : self
- Set the value of REFER_CHEQ
- setSEQUE_CHEQ() : self
- Set the value of SEQUE_CHEQ
- setSTATU_CHEQ() : self
- Set the value of STATU_CHEQ
- setVALOR_CHEQ() : self
- Set the value of VALOR_CHEQ
- 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
= ['exclude_fields' => ['*']]
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_INTSYS
db_table
public
mixed
db_table
= 'TABFPCHEQ'
pk_field
public
mixed
pk_field
= 'EMPRE_CHEQ'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['select' => 'src\models\TABFPCHEQSecurity::securitySelect']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= []
Properties
$AGENC_CHEQ
private
mixed
$AGENC_CHEQ
$BANCO_CHEQ
private
mixed
$BANCO_CHEQ
$CONTA_CHEQ
private
mixed
$CONTA_CHEQ
$DTCRE_CHEQ
private
mixed
$DTCRE_CHEQ
$DTEMI_CHEQ
private
mixed
$DTEMI_CHEQ
$EMPRE_CHEQ
private
mixed
$EMPRE_CHEQ
$FAVOR_CHEQ
private
mixed
$FAVOR_CHEQ
$FUNCI_CHEQ
private
mixed
$FUNCI_CHEQ
$NUMER_CHEQ
private
mixed
$NUMER_CHEQ
$REFER_CHEQ
private
mixed
$REFER_CHEQ
$SEQUE_CHEQ
private
mixed
$SEQUE_CHEQ
$STATU_CHEQ
private
mixed
$STATU_CHEQ
$VALOR_CHEQ
private
mixed
$VALOR_CHEQ
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 = []
getAGENC_CHEQ()
Get the value of AGENC_CHEQ
public
getAGENC_CHEQ() : mixed
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getBANCO_CHEQ()
Get the value of BANCO_CHEQ
public
getBANCO_CHEQ() : 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
getCONTA_CHEQ()
Get the value of CONTA_CHEQ
public
getCONTA_CHEQ() : mixed
getDatabase()
public
getDatabase() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDTCRE_CHEQ()
Get the value of DTCRE_CHEQ
public
getDTCRE_CHEQ() : mixed
getDTEMI_CHEQ()
Get the value of DTEMI_CHEQ
public
getDTEMI_CHEQ() : mixed
getEMPRE_CHEQ()
Get the value of EMPRE_CHEQ
public
getEMPRE_CHEQ() : mixed
getFAVOR_CHEQ()
Get the value of FAVOR_CHEQ
public
getFAVOR_CHEQ() : mixed
getFUNCI_CHEQ()
Get the value of FUNCI_CHEQ
public
getFUNCI_CHEQ() : mixed
getNUMER_CHEQ()
Get the value of NUMER_CHEQ
public
getNUMER_CHEQ() : mixed
getREFER_CHEQ()
Get the value of REFER_CHEQ
public
getREFER_CHEQ() : mixed
getSEQUE_CHEQ()
Get the value of SEQUE_CHEQ
public
getSEQUE_CHEQ() : mixed
getSTATU_CHEQ()
Get the value of STATU_CHEQ
public
getSTATU_CHEQ() : mixed
getTable()
public
getTable() : mixed
getVALOR_CHEQ()
Get the value of VALOR_CHEQ
public
getVALOR_CHEQ() : 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
setAGENC_CHEQ()
Set the value of AGENC_CHEQ
public
setAGENC_CHEQ(mixed $AGENC_CHEQ) : self
Parameters
- $AGENC_CHEQ : mixed
Return values
selfsetBANCO_CHEQ()
Set the value of BANCO_CHEQ
public
setBANCO_CHEQ(mixed $BANCO_CHEQ) : self
Parameters
- $BANCO_CHEQ : mixed
Return values
selfsetCONTA_CHEQ()
Set the value of CONTA_CHEQ
public
setCONTA_CHEQ(mixed $CONTA_CHEQ) : self
Parameters
- $CONTA_CHEQ : mixed
Return values
selfsetDTCRE_CHEQ()
Set the value of DTCRE_CHEQ
public
setDTCRE_CHEQ(mixed $DTCRE_CHEQ) : self
Parameters
- $DTCRE_CHEQ : mixed
Return values
selfsetDTEMI_CHEQ()
Set the value of DTEMI_CHEQ
public
setDTEMI_CHEQ(mixed $DTEMI_CHEQ) : self
Parameters
- $DTEMI_CHEQ : mixed
Return values
selfsetEMPRE_CHEQ()
Set the value of EMPRE_CHEQ
public
setEMPRE_CHEQ(mixed $EMPRE_CHEQ) : self
Parameters
- $EMPRE_CHEQ : mixed
Return values
selfsetFAVOR_CHEQ()
Set the value of FAVOR_CHEQ
public
setFAVOR_CHEQ(mixed $FAVOR_CHEQ) : self
Parameters
- $FAVOR_CHEQ : mixed
Return values
selfsetFUNCI_CHEQ()
Set the value of FUNCI_CHEQ
public
setFUNCI_CHEQ(mixed $FUNCI_CHEQ) : self
Parameters
- $FUNCI_CHEQ : mixed
Return values
selfsetNUMER_CHEQ()
Set the value of NUMER_CHEQ
public
setNUMER_CHEQ(mixed $NUMER_CHEQ) : self
Parameters
- $NUMER_CHEQ : mixed
Return values
selfsetREFER_CHEQ()
Set the value of REFER_CHEQ
public
setREFER_CHEQ(mixed $REFER_CHEQ) : self
Parameters
- $REFER_CHEQ : mixed
Return values
selfsetSEQUE_CHEQ()
Set the value of SEQUE_CHEQ
public
setSEQUE_CHEQ(mixed $SEQUE_CHEQ) : self
Parameters
- $SEQUE_CHEQ : mixed
Return values
selfsetSTATU_CHEQ()
Set the value of STATU_CHEQ
public
setSTATU_CHEQ(mixed $STATU_CHEQ) : self
Parameters
- $STATU_CHEQ : mixed
Return values
selfsetVALOR_CHEQ()
Set the value of VALOR_CHEQ
public
setVALOR_CHEQ(mixed $VALOR_CHEQ) : self
Parameters
- $VALOR_CHEQ : 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 = '*'