Documentation

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 = []

security

Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>

public mixed security = []

tracking

public mixed tracking = true

Properties

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_or_select()

Funcao que insere ou seleciona se existe

public insert_or_select([mixed $where = [] ]) : null|Entity
Parameters
$where : mixed = []
Return values
null|Entity

insert_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
bool

securityInsert()

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
self

setCAIXA_CONT()

Set the value of CAIXA_CONT

public setCAIXA_CONT(mixed $CAIXA_CONT) : self
Parameters
$CAIXA_CONT : mixed
Return values
self

setCLASS_CONT()

Set the value of CLASS_CONT

public setCLASS_CONT(mixed $CLASS_CONT) : self
Parameters
$CLASS_CONT : mixed
Return values
self

setCSPED_CONT()

Set the value of CSPED_CONT

public setCSPED_CONT(mixed $CSPED_CONT) : self
Parameters
$CSPED_CONT : mixed
Return values
self

setCTDFC_CONT()

Set the value of CTDFC_CONT

public setCTDFC_CONT(mixed $CTDFC_CONT) : self
Parameters
$CTDFC_CONT : mixed
Return values
self

setCUSTO_CONT()

Set the value of CUSTO_CONT

public setCUSTO_CONT(mixed $CUSTO_CONT) : self
Parameters
$CUSTO_CONT : mixed
Return values
self

setDESCR_CONT()

Set the value of DESCR_CONT

public setDESCR_CONT(mixed $DESCR_CONT) : self
Parameters
$DESCR_CONT : mixed
Return values
self

setHISTO_CONT()

Set the value of HISTO_CONT

public setHISTO_CONT(mixed $HISTO_CONT) : self
Parameters
$HISTO_CONT : mixed
Return values
self

setLCDPR_CONT()

Set the value of LCDPR_CONT

public setLCDPR_CONT(mixed $LCDPR_CONT) : self
Parameters
$LCDPR_CONT : mixed
Return values
self

setNATUR_CONT()

Set the value of NATUR_CONT

public setNATUR_CONT(mixed $NATUR_CONT) : self
Parameters
$NATUR_CONT : mixed
Return values
self

setNIV01_CONT()

Set the value of NIV01_CONT

public setNIV01_CONT(mixed $NIV01_CONT) : self
Parameters
$NIV01_CONT : mixed
Return values
self

setNIV02_CONT()

Set the value of NIV02_CONT

public setNIV02_CONT(mixed $NIV02_CONT) : self
Parameters
$NIV02_CONT : mixed
Return values
self

setNIV03_CONT()

Set the value of NIV03_CONT

public setNIV03_CONT(mixed $NIV03_CONT) : self
Parameters
$NIV03_CONT : mixed
Return values
self

setNIV04_CONT()

Set the value of NIV04_CONT

public setNIV04_CONT(mixed $NIV04_CONT) : self
Parameters
$NIV04_CONT : mixed
Return values
self

setNIV05_CONT()

Set the value of NIV05_CONT

public setNIV05_CONT(mixed $NIV05_CONT) : self
Parameters
$NIV05_CONT : mixed
Return values
self

setNIV06_CONT()

Set the value of NIV06_CONT

public setNIV06_CONT(mixed $NIV06_CONT) : self
Parameters
$NIV06_CONT : mixed
Return values
self

setNIV07_CONT()

Set the value of NIV07_CONT

public setNIV07_CONT(mixed $NIV07_CONT) : self
Parameters
$NIV07_CONT : mixed
Return values
self

setNIV08_CONT()

Set the value of NIV08_CONT

public setNIV08_CONT(mixed $NIV08_CONT) : self
Parameters
$NIV08_CONT : mixed
Return values
self

setNIV09_CONT()

Set the value of NIV09_CONT

public setNIV09_CONT(mixed $NIV09_CONT) : self
Parameters
$NIV09_CONT : mixed
Return values
self

setNIV10_CONT()

Set the value of NIV10_CONT

public setNIV10_CONT(mixed $NIV10_CONT) : self
Parameters
$NIV10_CONT : mixed
Return values
self

setNIV11_CONT()

Set the value of NIV11_CONT

public setNIV11_CONT(mixed $NIV11_CONT) : self
Parameters
$NIV11_CONT : mixed
Return values
self

setNIV12_CONT()

Set the value of NIV12_CONT

public setNIV12_CONT(mixed $NIV12_CONT) : self
Parameters
$NIV12_CONT : mixed
Return values
self

setNIV13_CONT()

Set the value of NIV13_CONT

public setNIV13_CONT(mixed $NIV13_CONT) : self
Parameters
$NIV13_CONT : mixed
Return values
self

setNIV14_CONT()

Set the value of NIV14_CONT

public setNIV14_CONT(mixed $NIV14_CONT) : self
Parameters
$NIV14_CONT : mixed
Return values
self

setNIVEL_CONT()

Set the value of NIVEL_CONT

public setNIVEL_CONT(mixed $NIVEL_CONT) : self
Parameters
$NIVEL_CONT : mixed
Return values
self

setPLANO_CONT()

Set the value of PLANO_CONT

public setPLANO_CONT(mixed $PLANO_CONT) : self
Parameters
$PLANO_CONT : mixed
Return values
self

setREDUZ_CONT()

Set the value of REDUZ_CONT

public setREDUZ_CONT(mixed $REDUZ_CONT) : self
Parameters
$REDUZ_CONT : mixed
Return values
self

setRURAL_CONT()

Set the value of RURAL_CONT

public setRURAL_CONT(mixed $RURAL_CONT) : self
Parameters
$RURAL_CONT : mixed
Return values
self

setTIPOC_CONT()

Set the value of TIPOC_CONT

public setTIPOC_CONT(mixed $TIPOC_CONT) : self
Parameters
$TIPOC_CONT : mixed
Return values
self

setVERCP_CONT()

Set the value of VERCP_CONT

public setVERCP_CONT(mixed $VERCP_CONT) : self
Parameters
$VERCP_CONT : mixed
Return values
self

update()

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
bool

where()

Rudimentary ORM functions

public static where([mixed $where = [] ][, mixed $select = '*' ]) : Collection
Parameters
$where : mixed = []
$select : mixed = '*'
Return values
Collection

        
On this page

Search results