TABCOCONTEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = []
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_INTSYS_FISCAL
- db_table = 'TABCOCONT'
- pk_field = 'PLANO_CONT'
- sanitize = []
- security = []
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = []
Properties
- $ANALI_CONT : mixed
- $CAIXA_CONT : mixed
- $CLASS_CONT : mixed
- $CSPED_CONT : mixed
- $CTDFC_CONT : mixed
- $CUSTO_CONT : mixed
- $DESCR_CONT : mixed
- $HISTO_CONT : mixed
- $LCDPR_CONT : mixed
- $NATUR_CONT : mixed
- $NIV01_CONT : mixed
- $NIV02_CONT : mixed
- $NIV03_CONT : mixed
- $NIV04_CONT : mixed
- $NIV05_CONT : mixed
- $NIV06_CONT : mixed
- $NIV07_CONT : mixed
- $NIV08_CONT : mixed
- $NIV09_CONT : mixed
- $NIV10_CONT : mixed
- $NIV11_CONT : mixed
- $NIV12_CONT : mixed
- $NIV13_CONT : mixed
- $NIV14_CONT : mixed
- $NIVEL_CONT : mixed
- $PLANO_CONT : mixed
- $REDUZ_CONT : mixed
- $RURAL_CONT : mixed
- $TIPOC_CONT : mixed
- $VERCP_CONT : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getANALI_CONT() : mixed
- Get the value of ANALI_CONT
- getAuditlog() : mixed
- getCAIXA_CONT() : mixed
- Get the value of CAIXA_CONT
- getCLASS_CONT() : mixed
- Get the value of CLASS_CONT
- getConst() : mixed
- getConstObj() : mixed
- getCSPED_CONT() : mixed
- Get the value of CSPED_CONT
- getCTDFC_CONT() : mixed
- Get the value of CTDFC_CONT
- getCUSTO_CONT() : mixed
- Get the value of CUSTO_CONT
- getDatabase() : mixed
- getDBDriver() : mixed
- getDBTable() : mixed
- getDESCR_CONT() : mixed
- Get the value of DESCR_CONT
- getHISTO_CONT() : mixed
- Get the value of HISTO_CONT
- getLCDPR_CONT() : mixed
- Get the value of LCDPR_CONT
- getNATUR_CONT() : mixed
- Get the value of NATUR_CONT
- getNIV01_CONT() : mixed
- Get the value of NIV01_CONT
- getNIV02_CONT() : mixed
- Get the value of NIV02_CONT
- getNIV03_CONT() : mixed
- Get the value of NIV03_CONT
- getNIV04_CONT() : mixed
- Get the value of NIV04_CONT
- getNIV05_CONT() : mixed
- Get the value of NIV05_CONT
- getNIV06_CONT() : mixed
- Get the value of NIV06_CONT
- getNIV07_CONT() : mixed
- Get the value of NIV07_CONT
- getNIV08_CONT() : mixed
- Get the value of NIV08_CONT
- getNIV09_CONT() : mixed
- Get the value of NIV09_CONT
- getNIV10_CONT() : mixed
- Get the value of NIV10_CONT
- getNIV11_CONT() : mixed
- Get the value of NIV11_CONT
- getNIV12_CONT() : mixed
- Get the value of NIV12_CONT
- getNIV13_CONT() : mixed
- Get the value of NIV13_CONT
- getNIV14_CONT() : mixed
- Get the value of NIV14_CONT
- getNIVEL_CONT() : mixed
- Get the value of NIVEL_CONT
- getPLANO_CONT() : mixed
- Get the value of PLANO_CONT
- getREDUZ_CONT() : mixed
- Get the value of REDUZ_CONT
- getRURAL_CONT() : mixed
- Get the value of RURAL_CONT
- getTable() : mixed
- getTIPOC_CONT() : mixed
- Get the value of TIPOC_CONT
- getVERCP_CONT() : mixed
- Get the value of VERCP_CONT
- 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
- setANALI_CONT() : self
- Set the value of ANALI_CONT
- setCAIXA_CONT() : self
- Set the value of CAIXA_CONT
- setCLASS_CONT() : self
- Set the value of CLASS_CONT
- setCSPED_CONT() : self
- Set the value of CSPED_CONT
- setCTDFC_CONT() : self
- Set the value of CTDFC_CONT
- setCUSTO_CONT() : self
- Set the value of CUSTO_CONT
- setDESCR_CONT() : self
- Set the value of DESCR_CONT
- setHISTO_CONT() : self
- Set the value of HISTO_CONT
- setLCDPR_CONT() : self
- Set the value of LCDPR_CONT
- setNATUR_CONT() : self
- Set the value of NATUR_CONT
- setNIV01_CONT() : self
- Set the value of NIV01_CONT
- setNIV02_CONT() : self
- Set the value of NIV02_CONT
- setNIV03_CONT() : self
- Set the value of NIV03_CONT
- setNIV04_CONT() : self
- Set the value of NIV04_CONT
- setNIV05_CONT() : self
- Set the value of NIV05_CONT
- setNIV06_CONT() : self
- Set the value of NIV06_CONT
- setNIV07_CONT() : self
- Set the value of NIV07_CONT
- setNIV08_CONT() : self
- Set the value of NIV08_CONT
- setNIV09_CONT() : self
- Set the value of NIV09_CONT
- setNIV10_CONT() : self
- Set the value of NIV10_CONT
- setNIV11_CONT() : self
- Set the value of NIV11_CONT
- setNIV12_CONT() : self
- Set the value of NIV12_CONT
- setNIV13_CONT() : self
- Set the value of NIV13_CONT
- setNIV14_CONT() : self
- Set the value of NIV14_CONT
- setNIVEL_CONT() : self
- Set the value of NIVEL_CONT
- setPLANO_CONT() : self
- Set the value of PLANO_CONT
- setREDUZ_CONT() : self
- Set the value of REDUZ_CONT
- setRURAL_CONT() : self
- Set the value of RURAL_CONT
- setTIPOC_CONT() : self
- Set the value of TIPOC_CONT
- setVERCP_CONT() : self
- Set the value of VERCP_CONT
- 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_FISCAL
db_table
public
mixed
db_table
= 'TABCOCONT'
pk_field
public
mixed
pk_field
= 'PLANO_CONT'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= []
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= []
Properties
$ANALI_CONT
private
mixed
$ANALI_CONT
$CAIXA_CONT
private
mixed
$CAIXA_CONT
$CLASS_CONT
private
mixed
$CLASS_CONT
$CSPED_CONT
private
mixed
$CSPED_CONT
$CTDFC_CONT
private
mixed
$CTDFC_CONT
$CUSTO_CONT
private
mixed
$CUSTO_CONT
$DESCR_CONT
private
mixed
$DESCR_CONT
$HISTO_CONT
private
mixed
$HISTO_CONT
$LCDPR_CONT
private
mixed
$LCDPR_CONT
$NATUR_CONT
private
mixed
$NATUR_CONT
$NIV01_CONT
private
mixed
$NIV01_CONT
$NIV02_CONT
private
mixed
$NIV02_CONT
$NIV03_CONT
private
mixed
$NIV03_CONT
$NIV04_CONT
private
mixed
$NIV04_CONT
$NIV05_CONT
private
mixed
$NIV05_CONT
$NIV06_CONT
private
mixed
$NIV06_CONT
$NIV07_CONT
private
mixed
$NIV07_CONT
$NIV08_CONT
private
mixed
$NIV08_CONT
$NIV09_CONT
private
mixed
$NIV09_CONT
$NIV10_CONT
private
mixed
$NIV10_CONT
$NIV11_CONT
private
mixed
$NIV11_CONT
$NIV12_CONT
private
mixed
$NIV12_CONT
$NIV13_CONT
private
mixed
$NIV13_CONT
$NIV14_CONT
private
mixed
$NIV14_CONT
$NIVEL_CONT
private
mixed
$NIVEL_CONT
$PLANO_CONT
private
mixed
$PLANO_CONT
$REDUZ_CONT
private
mixed
$REDUZ_CONT
$RURAL_CONT
private
mixed
$RURAL_CONT
$TIPOC_CONT
private
mixed
$TIPOC_CONT
$VERCP_CONT
private
mixed
$VERCP_CONT
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 = []
getANALI_CONT()
Get the value of ANALI_CONT
public
getANALI_CONT() : mixed
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getCAIXA_CONT()
Get the value of CAIXA_CONT
public
getCAIXA_CONT() : mixed
getCLASS_CONT()
Get the value of CLASS_CONT
public
getCLASS_CONT() : 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
getCSPED_CONT()
Get the value of CSPED_CONT
public
getCSPED_CONT() : mixed
getCTDFC_CONT()
Get the value of CTDFC_CONT
public
getCTDFC_CONT() : mixed
getCUSTO_CONT()
Get the value of CUSTO_CONT
public
getCUSTO_CONT() : mixed
getDatabase()
public
getDatabase() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDESCR_CONT()
Get the value of DESCR_CONT
public
getDESCR_CONT() : mixed
getHISTO_CONT()
Get the value of HISTO_CONT
public
getHISTO_CONT() : mixed
getLCDPR_CONT()
Get the value of LCDPR_CONT
public
getLCDPR_CONT() : mixed
getNATUR_CONT()
Get the value of NATUR_CONT
public
getNATUR_CONT() : mixed
getNIV01_CONT()
Get the value of NIV01_CONT
public
getNIV01_CONT() : mixed
getNIV02_CONT()
Get the value of NIV02_CONT
public
getNIV02_CONT() : mixed
getNIV03_CONT()
Get the value of NIV03_CONT
public
getNIV03_CONT() : mixed
getNIV04_CONT()
Get the value of NIV04_CONT
public
getNIV04_CONT() : mixed
getNIV05_CONT()
Get the value of NIV05_CONT
public
getNIV05_CONT() : mixed
getNIV06_CONT()
Get the value of NIV06_CONT
public
getNIV06_CONT() : mixed
getNIV07_CONT()
Get the value of NIV07_CONT
public
getNIV07_CONT() : mixed
getNIV08_CONT()
Get the value of NIV08_CONT
public
getNIV08_CONT() : mixed
getNIV09_CONT()
Get the value of NIV09_CONT
public
getNIV09_CONT() : mixed
getNIV10_CONT()
Get the value of NIV10_CONT
public
getNIV10_CONT() : mixed
getNIV11_CONT()
Get the value of NIV11_CONT
public
getNIV11_CONT() : mixed
getNIV12_CONT()
Get the value of NIV12_CONT
public
getNIV12_CONT() : mixed
getNIV13_CONT()
Get the value of NIV13_CONT
public
getNIV13_CONT() : mixed
getNIV14_CONT()
Get the value of NIV14_CONT
public
getNIV14_CONT() : mixed
getNIVEL_CONT()
Get the value of NIVEL_CONT
public
getNIVEL_CONT() : mixed
getPLANO_CONT()
Get the value of PLANO_CONT
public
getPLANO_CONT() : mixed
getREDUZ_CONT()
Get the value of REDUZ_CONT
public
getREDUZ_CONT() : mixed
getRURAL_CONT()
Get the value of RURAL_CONT
public
getRURAL_CONT() : mixed
getTable()
public
getTable() : mixed
getTIPOC_CONT()
Get the value of TIPOC_CONT
public
getTIPOC_CONT() : mixed
getVERCP_CONT()
Get the value of VERCP_CONT
public
getVERCP_CONT() : 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
setANALI_CONT()
Set the value of ANALI_CONT
public
setANALI_CONT(mixed $ANALI_CONT) : self
Parameters
- $ANALI_CONT : mixed
Return values
selfsetCAIXA_CONT()
Set the value of CAIXA_CONT
public
setCAIXA_CONT(mixed $CAIXA_CONT) : self
Parameters
- $CAIXA_CONT : mixed
Return values
selfsetCLASS_CONT()
Set the value of CLASS_CONT
public
setCLASS_CONT(mixed $CLASS_CONT) : self
Parameters
- $CLASS_CONT : mixed
Return values
selfsetCSPED_CONT()
Set the value of CSPED_CONT
public
setCSPED_CONT(mixed $CSPED_CONT) : self
Parameters
- $CSPED_CONT : mixed
Return values
selfsetCTDFC_CONT()
Set the value of CTDFC_CONT
public
setCTDFC_CONT(mixed $CTDFC_CONT) : self
Parameters
- $CTDFC_CONT : mixed
Return values
selfsetCUSTO_CONT()
Set the value of CUSTO_CONT
public
setCUSTO_CONT(mixed $CUSTO_CONT) : self
Parameters
- $CUSTO_CONT : mixed
Return values
selfsetDESCR_CONT()
Set the value of DESCR_CONT
public
setDESCR_CONT(mixed $DESCR_CONT) : self
Parameters
- $DESCR_CONT : mixed
Return values
selfsetHISTO_CONT()
Set the value of HISTO_CONT
public
setHISTO_CONT(mixed $HISTO_CONT) : self
Parameters
- $HISTO_CONT : mixed
Return values
selfsetLCDPR_CONT()
Set the value of LCDPR_CONT
public
setLCDPR_CONT(mixed $LCDPR_CONT) : self
Parameters
- $LCDPR_CONT : mixed
Return values
selfsetNATUR_CONT()
Set the value of NATUR_CONT
public
setNATUR_CONT(mixed $NATUR_CONT) : self
Parameters
- $NATUR_CONT : mixed
Return values
selfsetNIV01_CONT()
Set the value of NIV01_CONT
public
setNIV01_CONT(mixed $NIV01_CONT) : self
Parameters
- $NIV01_CONT : mixed
Return values
selfsetNIV02_CONT()
Set the value of NIV02_CONT
public
setNIV02_CONT(mixed $NIV02_CONT) : self
Parameters
- $NIV02_CONT : mixed
Return values
selfsetNIV03_CONT()
Set the value of NIV03_CONT
public
setNIV03_CONT(mixed $NIV03_CONT) : self
Parameters
- $NIV03_CONT : mixed
Return values
selfsetNIV04_CONT()
Set the value of NIV04_CONT
public
setNIV04_CONT(mixed $NIV04_CONT) : self
Parameters
- $NIV04_CONT : mixed
Return values
selfsetNIV05_CONT()
Set the value of NIV05_CONT
public
setNIV05_CONT(mixed $NIV05_CONT) : self
Parameters
- $NIV05_CONT : mixed
Return values
selfsetNIV06_CONT()
Set the value of NIV06_CONT
public
setNIV06_CONT(mixed $NIV06_CONT) : self
Parameters
- $NIV06_CONT : mixed
Return values
selfsetNIV07_CONT()
Set the value of NIV07_CONT
public
setNIV07_CONT(mixed $NIV07_CONT) : self
Parameters
- $NIV07_CONT : mixed
Return values
selfsetNIV08_CONT()
Set the value of NIV08_CONT
public
setNIV08_CONT(mixed $NIV08_CONT) : self
Parameters
- $NIV08_CONT : mixed
Return values
selfsetNIV09_CONT()
Set the value of NIV09_CONT
public
setNIV09_CONT(mixed $NIV09_CONT) : self
Parameters
- $NIV09_CONT : mixed
Return values
selfsetNIV10_CONT()
Set the value of NIV10_CONT
public
setNIV10_CONT(mixed $NIV10_CONT) : self
Parameters
- $NIV10_CONT : mixed
Return values
selfsetNIV11_CONT()
Set the value of NIV11_CONT
public
setNIV11_CONT(mixed $NIV11_CONT) : self
Parameters
- $NIV11_CONT : mixed
Return values
selfsetNIV12_CONT()
Set the value of NIV12_CONT
public
setNIV12_CONT(mixed $NIV12_CONT) : self
Parameters
- $NIV12_CONT : mixed
Return values
selfsetNIV13_CONT()
Set the value of NIV13_CONT
public
setNIV13_CONT(mixed $NIV13_CONT) : self
Parameters
- $NIV13_CONT : mixed
Return values
selfsetNIV14_CONT()
Set the value of NIV14_CONT
public
setNIV14_CONT(mixed $NIV14_CONT) : self
Parameters
- $NIV14_CONT : mixed
Return values
selfsetNIVEL_CONT()
Set the value of NIVEL_CONT
public
setNIVEL_CONT(mixed $NIVEL_CONT) : self
Parameters
- $NIVEL_CONT : mixed
Return values
selfsetPLANO_CONT()
Set the value of PLANO_CONT
public
setPLANO_CONT(mixed $PLANO_CONT) : self
Parameters
- $PLANO_CONT : mixed
Return values
selfsetREDUZ_CONT()
Set the value of REDUZ_CONT
public
setREDUZ_CONT(mixed $REDUZ_CONT) : self
Parameters
- $REDUZ_CONT : mixed
Return values
selfsetRURAL_CONT()
Set the value of RURAL_CONT
public
setRURAL_CONT(mixed $RURAL_CONT) : self
Parameters
- $RURAL_CONT : mixed
Return values
selfsetTIPOC_CONT()
Set the value of TIPOC_CONT
public
setTIPOC_CONT(mixed $TIPOC_CONT) : self
Parameters
- $TIPOC_CONT : mixed
Return values
selfsetVERCP_CONT()
Set the value of VERCP_CONT
public
setVERCP_CONT(mixed $VERCP_CONT) : self
Parameters
- $VERCP_CONT : 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 = '*'