TABADEMPREntity
extends Entity
in package
Table of Contents
Constants
- auditlog = []
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_INTSYS
- db_table = 'TABADEMPR'
- pk_field = 'CODIG_EMPR'
- sanitize = []
- security = ['select' => 'src\models\TABADEMPRSecurity::securitySelect']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = []
Properties
- $BAIRR_EMPR : mixed
- $COBRA_EMPR : mixed
- $CODIG_EMPR : mixed
- $COMPL_EMPR : mixed
- $CPTHO_EMPR : mixed
- $CTATO_EMPR : mixed
- $DIAHO_EMPR : mixed
- $EMIBO_EMPR : mixed
- $EMINF_EMPR : mixed
- $EMIRE_EMPR : mixed
- $ENDER_EMPR : mixed
- $FANTA_EMPR : mixed
- $FIMHO_EMPR : mixed
- $INIHO_EMPR : mixed
- $LOGOT_EMPR : mixed
- $MUNIC_EMPR : mixed
- $NOCEP_EMPR : mixed
- $NOCRC_EMPR : mixed
- $NUMER_EMPR : mixed
- $PCCOF_EMPR : mixed
- $PCCSL_EMPR : mixed
- $PCINS_EMPR : mixed
- $PCIRR_EMPR : mixed
- $PCISS_EMPR : mixed
- $PCPIS_EMPR : mixed
- $PROFX_EMPR : mixed
- $SERFX_EMPR : mixed
- $TPEND_EMPR : mixed
- $VALHO_EMPR : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getBAIRR_EMPR() : mixed
- Get the value of BAIRR_EMPR
- getCOBRA_EMPR() : mixed
- Get the value of COBRA_EMPR
- getCODIG_EMPR() : mixed
- Get the value of CODIG_EMPR
- getCOMPL_EMPR() : mixed
- Get the value of COMPL_EMPR
- getConst() : mixed
- getConstObj() : mixed
- getCPTHO_EMPR() : mixed
- Get the value of CPTHO_EMPR
- getCTATO_EMPR() : mixed
- Get the value of CTATO_EMPR
- getDatabase() : mixed
- getDBDriver() : mixed
- getDBTable() : mixed
- getDIAHO_EMPR() : mixed
- Get the value of DIAHO_EMPR
- getEMIBO_EMPR() : mixed
- Get the value of EMIBO_EMPR
- getEMINF_EMPR() : mixed
- Get the value of EMINF_EMPR
- getEMIRE_EMPR() : mixed
- Get the value of EMIRE_EMPR
- getENDER_EMPR() : mixed
- Get the value of ENDER_EMPR
- getFANTA_EMPR() : mixed
- Get the value of FANTA_EMPR
- getFIMHO_EMPR() : mixed
- Get the value of FIMHO_EMPR
- getINIHO_EMPR() : mixed
- Get the value of INIHO_EMPR
- getLOGOT_EMPR() : mixed
- Get the value of LOGOT_EMPR
- getMUNIC_EMPR() : mixed
- Get the value of MUNIC_EMPR
- getNOCEP_EMPR() : mixed
- Get the value of NOCEP_EMPR
- getNOCRC_EMPR() : mixed
- Get the value of NOCRC_EMPR
- getNUMER_EMPR() : mixed
- Get the value of NUMER_EMPR
- getPCCOF_EMPR() : mixed
- Get the value of PCCOF_EMPR
- getPCCSL_EMPR() : mixed
- Get the value of PCCSL_EMPR
- getPCINS_EMPR() : mixed
- Get the value of PCINS_EMPR
- getPCIRR_EMPR() : mixed
- Get the value of PCIRR_EMPR
- getPCISS_EMPR() : mixed
- Get the value of PCISS_EMPR
- getPCPIS_EMPR() : mixed
- Get the value of PCPIS_EMPR
- getPROFX_EMPR() : mixed
- Get the value of PROFX_EMPR
- getSERFX_EMPR() : mixed
- Get the value of SERFX_EMPR
- getTable() : mixed
- getTPEND_EMPR() : mixed
- Get the value of TPEND_EMPR
- getVALHO_EMPR() : mixed
- Get the value of VALHO_EMPR
- 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
- setBAIRR_EMPR() : self
- Set the value of BAIRR_EMPR
- setCOBRA_EMPR() : self
- Set the value of COBRA_EMPR
- setCODIG_EMPR() : self
- Set the value of CODIG_EMPR
- setCOMPL_EMPR() : self
- Set the value of COMPL_EMPR
- setCPTHO_EMPR() : self
- Set the value of CPTHO_EMPR
- setCTATO_EMPR() : self
- Set the value of CTATO_EMPR
- setDIAHO_EMPR() : self
- Set the value of DIAHO_EMPR
- setEMIBO_EMPR() : self
- Set the value of EMIBO_EMPR
- setEMINF_EMPR() : self
- Set the value of EMINF_EMPR
- setEMIRE_EMPR() : self
- Set the value of EMIRE_EMPR
- setENDER_EMPR() : self
- Set the value of ENDER_EMPR
- setFANTA_EMPR() : self
- Set the value of FANTA_EMPR
- setFIMHO_EMPR() : self
- Set the value of FIMHO_EMPR
- setINIHO_EMPR() : self
- Set the value of INIHO_EMPR
- setLOGOT_EMPR() : self
- Set the value of LOGOT_EMPR
- setMUNIC_EMPR() : self
- Set the value of MUNIC_EMPR
- setNOCEP_EMPR() : self
- Set the value of NOCEP_EMPR
- setNOCRC_EMPR() : self
- Set the value of NOCRC_EMPR
- setNUMER_EMPR() : self
- Set the value of NUMER_EMPR
- setPCCOF_EMPR() : self
- Set the value of PCCOF_EMPR
- setPCCSL_EMPR() : self
- Set the value of PCCSL_EMPR
- setPCINS_EMPR() : self
- Set the value of PCINS_EMPR
- setPCIRR_EMPR() : self
- Set the value of PCIRR_EMPR
- setPCISS_EMPR() : self
- Set the value of PCISS_EMPR
- setPCPIS_EMPR() : self
- Set the value of PCPIS_EMPR
- setPROFX_EMPR() : self
- Set the value of PROFX_EMPR
- setSERFX_EMPR() : self
- Set the value of SERFX_EMPR
- setTPEND_EMPR() : self
- Set the value of TPEND_EMPR
- setVALHO_EMPR() : self
- Set the value of VALHO_EMPR
- 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
= 'TABADEMPR'
pk_field
public
mixed
pk_field
= 'CODIG_EMPR'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['select' => 'src\models\TABADEMPRSecurity::securitySelect']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= []
Properties
$BAIRR_EMPR
private
mixed
$BAIRR_EMPR
$COBRA_EMPR
private
mixed
$COBRA_EMPR
$CODIG_EMPR
private
mixed
$CODIG_EMPR
$COMPL_EMPR
private
mixed
$COMPL_EMPR
$CPTHO_EMPR
private
mixed
$CPTHO_EMPR
$CTATO_EMPR
private
mixed
$CTATO_EMPR
$DIAHO_EMPR
private
mixed
$DIAHO_EMPR
$EMIBO_EMPR
private
mixed
$EMIBO_EMPR
$EMINF_EMPR
private
mixed
$EMINF_EMPR
$EMIRE_EMPR
private
mixed
$EMIRE_EMPR
$ENDER_EMPR
private
mixed
$ENDER_EMPR
$FANTA_EMPR
private
mixed
$FANTA_EMPR
$FIMHO_EMPR
private
mixed
$FIMHO_EMPR
$INIHO_EMPR
private
mixed
$INIHO_EMPR
$LOGOT_EMPR
private
mixed
$LOGOT_EMPR
$MUNIC_EMPR
private
mixed
$MUNIC_EMPR
$NOCEP_EMPR
private
mixed
$NOCEP_EMPR
$NOCRC_EMPR
private
mixed
$NOCRC_EMPR
$NUMER_EMPR
private
mixed
$NUMER_EMPR
$PCCOF_EMPR
private
mixed
$PCCOF_EMPR
$PCCSL_EMPR
private
mixed
$PCCSL_EMPR
$PCINS_EMPR
private
mixed
$PCINS_EMPR
$PCIRR_EMPR
private
mixed
$PCIRR_EMPR
$PCISS_EMPR
private
mixed
$PCISS_EMPR
$PCPIS_EMPR
private
mixed
$PCPIS_EMPR
$PROFX_EMPR
private
mixed
$PROFX_EMPR
$SERFX_EMPR
private
mixed
$SERFX_EMPR
$TPEND_EMPR
private
mixed
$TPEND_EMPR
$VALHO_EMPR
private
mixed
$VALHO_EMPR
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
getBAIRR_EMPR()
Get the value of BAIRR_EMPR
public
getBAIRR_EMPR() : mixed
getCOBRA_EMPR()
Get the value of COBRA_EMPR
public
getCOBRA_EMPR() : mixed
getCODIG_EMPR()
Get the value of CODIG_EMPR
public
getCODIG_EMPR() : mixed
getCOMPL_EMPR()
Get the value of COMPL_EMPR
public
getCOMPL_EMPR() : 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
getCPTHO_EMPR()
Get the value of CPTHO_EMPR
public
getCPTHO_EMPR() : mixed
getCTATO_EMPR()
Get the value of CTATO_EMPR
public
getCTATO_EMPR() : mixed
getDatabase()
public
getDatabase() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDIAHO_EMPR()
Get the value of DIAHO_EMPR
public
getDIAHO_EMPR() : mixed
getEMIBO_EMPR()
Get the value of EMIBO_EMPR
public
getEMIBO_EMPR() : mixed
getEMINF_EMPR()
Get the value of EMINF_EMPR
public
getEMINF_EMPR() : mixed
getEMIRE_EMPR()
Get the value of EMIRE_EMPR
public
getEMIRE_EMPR() : mixed
getENDER_EMPR()
Get the value of ENDER_EMPR
public
getENDER_EMPR() : mixed
getFANTA_EMPR()
Get the value of FANTA_EMPR
public
getFANTA_EMPR() : mixed
getFIMHO_EMPR()
Get the value of FIMHO_EMPR
public
getFIMHO_EMPR() : mixed
getINIHO_EMPR()
Get the value of INIHO_EMPR
public
getINIHO_EMPR() : mixed
getLOGOT_EMPR()
Get the value of LOGOT_EMPR
public
getLOGOT_EMPR() : mixed
getMUNIC_EMPR()
Get the value of MUNIC_EMPR
public
getMUNIC_EMPR() : mixed
getNOCEP_EMPR()
Get the value of NOCEP_EMPR
public
getNOCEP_EMPR() : mixed
getNOCRC_EMPR()
Get the value of NOCRC_EMPR
public
getNOCRC_EMPR() : mixed
getNUMER_EMPR()
Get the value of NUMER_EMPR
public
getNUMER_EMPR() : mixed
getPCCOF_EMPR()
Get the value of PCCOF_EMPR
public
getPCCOF_EMPR() : mixed
getPCCSL_EMPR()
Get the value of PCCSL_EMPR
public
getPCCSL_EMPR() : mixed
getPCINS_EMPR()
Get the value of PCINS_EMPR
public
getPCINS_EMPR() : mixed
getPCIRR_EMPR()
Get the value of PCIRR_EMPR
public
getPCIRR_EMPR() : mixed
getPCISS_EMPR()
Get the value of PCISS_EMPR
public
getPCISS_EMPR() : mixed
getPCPIS_EMPR()
Get the value of PCPIS_EMPR
public
getPCPIS_EMPR() : mixed
getPROFX_EMPR()
Get the value of PROFX_EMPR
public
getPROFX_EMPR() : mixed
getSERFX_EMPR()
Get the value of SERFX_EMPR
public
getSERFX_EMPR() : mixed
getTable()
public
getTable() : mixed
getTPEND_EMPR()
Get the value of TPEND_EMPR
public
getTPEND_EMPR() : mixed
getVALHO_EMPR()
Get the value of VALHO_EMPR
public
getVALHO_EMPR() : 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
setBAIRR_EMPR()
Set the value of BAIRR_EMPR
public
setBAIRR_EMPR(mixed $BAIRR_EMPR) : self
Parameters
- $BAIRR_EMPR : mixed
Return values
selfsetCOBRA_EMPR()
Set the value of COBRA_EMPR
public
setCOBRA_EMPR(mixed $COBRA_EMPR) : self
Parameters
- $COBRA_EMPR : mixed
Return values
selfsetCODIG_EMPR()
Set the value of CODIG_EMPR
public
setCODIG_EMPR(mixed $CODIG_EMPR) : self
Parameters
- $CODIG_EMPR : mixed
Return values
selfsetCOMPL_EMPR()
Set the value of COMPL_EMPR
public
setCOMPL_EMPR(mixed $COMPL_EMPR) : self
Parameters
- $COMPL_EMPR : mixed
Return values
selfsetCPTHO_EMPR()
Set the value of CPTHO_EMPR
public
setCPTHO_EMPR(mixed $CPTHO_EMPR) : self
Parameters
- $CPTHO_EMPR : mixed
Return values
selfsetCTATO_EMPR()
Set the value of CTATO_EMPR
public
setCTATO_EMPR(mixed $CTATO_EMPR) : self
Parameters
- $CTATO_EMPR : mixed
Return values
selfsetDIAHO_EMPR()
Set the value of DIAHO_EMPR
public
setDIAHO_EMPR(mixed $DIAHO_EMPR) : self
Parameters
- $DIAHO_EMPR : mixed
Return values
selfsetEMIBO_EMPR()
Set the value of EMIBO_EMPR
public
setEMIBO_EMPR(mixed $EMIBO_EMPR) : self
Parameters
- $EMIBO_EMPR : mixed
Return values
selfsetEMINF_EMPR()
Set the value of EMINF_EMPR
public
setEMINF_EMPR(mixed $EMINF_EMPR) : self
Parameters
- $EMINF_EMPR : mixed
Return values
selfsetEMIRE_EMPR()
Set the value of EMIRE_EMPR
public
setEMIRE_EMPR(mixed $EMIRE_EMPR) : self
Parameters
- $EMIRE_EMPR : mixed
Return values
selfsetENDER_EMPR()
Set the value of ENDER_EMPR
public
setENDER_EMPR(mixed $ENDER_EMPR) : self
Parameters
- $ENDER_EMPR : mixed
Return values
selfsetFANTA_EMPR()
Set the value of FANTA_EMPR
public
setFANTA_EMPR(mixed $FANTA_EMPR) : self
Parameters
- $FANTA_EMPR : mixed
Return values
selfsetFIMHO_EMPR()
Set the value of FIMHO_EMPR
public
setFIMHO_EMPR(mixed $FIMHO_EMPR) : self
Parameters
- $FIMHO_EMPR : mixed
Return values
selfsetINIHO_EMPR()
Set the value of INIHO_EMPR
public
setINIHO_EMPR(mixed $INIHO_EMPR) : self
Parameters
- $INIHO_EMPR : mixed
Return values
selfsetLOGOT_EMPR()
Set the value of LOGOT_EMPR
public
setLOGOT_EMPR(mixed $LOGOT_EMPR) : self
Parameters
- $LOGOT_EMPR : mixed
Return values
selfsetMUNIC_EMPR()
Set the value of MUNIC_EMPR
public
setMUNIC_EMPR(mixed $MUNIC_EMPR) : self
Parameters
- $MUNIC_EMPR : mixed
Return values
selfsetNOCEP_EMPR()
Set the value of NOCEP_EMPR
public
setNOCEP_EMPR(mixed $NOCEP_EMPR) : self
Parameters
- $NOCEP_EMPR : mixed
Return values
selfsetNOCRC_EMPR()
Set the value of NOCRC_EMPR
public
setNOCRC_EMPR(mixed $NOCRC_EMPR) : self
Parameters
- $NOCRC_EMPR : mixed
Return values
selfsetNUMER_EMPR()
Set the value of NUMER_EMPR
public
setNUMER_EMPR(mixed $NUMER_EMPR) : self
Parameters
- $NUMER_EMPR : mixed
Return values
selfsetPCCOF_EMPR()
Set the value of PCCOF_EMPR
public
setPCCOF_EMPR(mixed $PCCOF_EMPR) : self
Parameters
- $PCCOF_EMPR : mixed
Return values
selfsetPCCSL_EMPR()
Set the value of PCCSL_EMPR
public
setPCCSL_EMPR(mixed $PCCSL_EMPR) : self
Parameters
- $PCCSL_EMPR : mixed
Return values
selfsetPCINS_EMPR()
Set the value of PCINS_EMPR
public
setPCINS_EMPR(mixed $PCINS_EMPR) : self
Parameters
- $PCINS_EMPR : mixed
Return values
selfsetPCIRR_EMPR()
Set the value of PCIRR_EMPR
public
setPCIRR_EMPR(mixed $PCIRR_EMPR) : self
Parameters
- $PCIRR_EMPR : mixed
Return values
selfsetPCISS_EMPR()
Set the value of PCISS_EMPR
public
setPCISS_EMPR(mixed $PCISS_EMPR) : self
Parameters
- $PCISS_EMPR : mixed
Return values
selfsetPCPIS_EMPR()
Set the value of PCPIS_EMPR
public
setPCPIS_EMPR(mixed $PCPIS_EMPR) : self
Parameters
- $PCPIS_EMPR : mixed
Return values
selfsetPROFX_EMPR()
Set the value of PROFX_EMPR
public
setPROFX_EMPR(mixed $PROFX_EMPR) : self
Parameters
- $PROFX_EMPR : mixed
Return values
selfsetSERFX_EMPR()
Set the value of SERFX_EMPR
public
setSERFX_EMPR(mixed $SERFX_EMPR) : self
Parameters
- $SERFX_EMPR : mixed
Return values
selfsetTPEND_EMPR()
Set the value of TPEND_EMPR
public
setTPEND_EMPR(mixed $TPEND_EMPR) : self
Parameters
- $TPEND_EMPR : mixed
Return values
selfsetVALHO_EMPR()
Set the value of VALHO_EMPR
public
setVALHO_EMPR(mixed $VALHO_EMPR) : self
Parameters
- $VALHO_EMPR : 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 = '*'