TABFPCARGEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = []
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_INTSYS
- db_table = 'TABFPCARG'
- pk_field = 'CODIG_CARG'
- sanitize = []
- security = []
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = []
Properties
- $ACUMU_CARG : mixed
- $ATIVI_CARG : mixed
- $CODIG_CARG : mixed
- $DESCR_CARG : mixed
- $DTLEI_CARG : mixed
- $ESPEC_CARG : mixed
- $EXCLU_CARG : mixed
- $NOCBO_CARG : mixed
- $NOLEI_CARG : mixed
- $S1040_CARG : mixed
- $SALAR_CARG : mixed
- $SALRA_CARG : mixed
- $STLEI_CARG : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getACUMU_CARG() : mixed
- Get the value of ACUMU_CARG
- getATIVI_CARG() : mixed
- Get the value of ATIVI_CARG
- getAuditlog() : mixed
- getCODIG_CARG() : mixed
- Get the value of CODIG_CARG
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDBDriver() : mixed
- getDBTable() : mixed
- getDESCR_CARG() : mixed
- Get the value of DESCR_CARG
- getDTLEI_CARG() : mixed
- Get the value of DTLEI_CARG
- getESPEC_CARG() : mixed
- Get the value of ESPEC_CARG
- getEXCLU_CARG() : mixed
- Get the value of EXCLU_CARG
- getNOCBO_CARG() : mixed
- Get the value of NOCBO_CARG
- getNOLEI_CARG() : mixed
- Get the value of NOLEI_CARG
- getS1040_CARG() : mixed
- Get the value of S1040_CARG
- getSALAR_CARG() : mixed
- Get the value of SALAR_CARG
- getSALRA_CARG() : mixed
- Get the value of SALRA_CARG
- getSTLEI_CARG() : mixed
- Get the value of STLEI_CARG
- getTable() : mixed
- 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
- setACUMU_CARG() : self
- Set the value of ACUMU_CARG
- setATIVI_CARG() : self
- Set the value of ATIVI_CARG
- setCODIG_CARG() : self
- Set the value of CODIG_CARG
- setDESCR_CARG() : self
- Set the value of DESCR_CARG
- setDTLEI_CARG() : self
- Set the value of DTLEI_CARG
- setESPEC_CARG() : self
- Set the value of ESPEC_CARG
- setEXCLU_CARG() : self
- Set the value of EXCLU_CARG
- setNOCBO_CARG() : self
- Set the value of NOCBO_CARG
- setNOLEI_CARG() : self
- Set the value of NOLEI_CARG
- setS1040_CARG() : self
- Set the value of S1040_CARG
- setSALAR_CARG() : self
- Set the value of SALAR_CARG
- setSALRA_CARG() : self
- Set the value of SALRA_CARG
- setSTLEI_CARG() : self
- Set the value of STLEI_CARG
- 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
= 'TABFPCARG'
pk_field
public
mixed
pk_field
= 'CODIG_CARG'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= []
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= []
Properties
$ACUMU_CARG
private
mixed
$ACUMU_CARG
$ATIVI_CARG
private
mixed
$ATIVI_CARG
$CODIG_CARG
private
mixed
$CODIG_CARG
$DESCR_CARG
private
mixed
$DESCR_CARG
$DTLEI_CARG
private
mixed
$DTLEI_CARG
$ESPEC_CARG
private
mixed
$ESPEC_CARG
$EXCLU_CARG
private
mixed
$EXCLU_CARG
$NOCBO_CARG
private
mixed
$NOCBO_CARG
$NOLEI_CARG
private
mixed
$NOLEI_CARG
$S1040_CARG
private
mixed
$S1040_CARG
$SALAR_CARG
private
mixed
$SALAR_CARG
$SALRA_CARG
private
mixed
$SALRA_CARG
$STLEI_CARG
private
mixed
$STLEI_CARG
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 = []
getACUMU_CARG()
Get the value of ACUMU_CARG
public
getACUMU_CARG() : mixed
getATIVI_CARG()
Get the value of ATIVI_CARG
public
getATIVI_CARG() : mixed
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getCODIG_CARG()
Get the value of CODIG_CARG
public
getCODIG_CARG() : 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
getDESCR_CARG()
Get the value of DESCR_CARG
public
getDESCR_CARG() : mixed
getDTLEI_CARG()
Get the value of DTLEI_CARG
public
getDTLEI_CARG() : mixed
getESPEC_CARG()
Get the value of ESPEC_CARG
public
getESPEC_CARG() : mixed
getEXCLU_CARG()
Get the value of EXCLU_CARG
public
getEXCLU_CARG() : mixed
getNOCBO_CARG()
Get the value of NOCBO_CARG
public
getNOCBO_CARG() : mixed
getNOLEI_CARG()
Get the value of NOLEI_CARG
public
getNOLEI_CARG() : mixed
getS1040_CARG()
Get the value of S1040_CARG
public
getS1040_CARG() : mixed
getSALAR_CARG()
Get the value of SALAR_CARG
public
getSALAR_CARG() : mixed
getSALRA_CARG()
Get the value of SALRA_CARG
public
getSALRA_CARG() : mixed
getSTLEI_CARG()
Get the value of STLEI_CARG
public
getSTLEI_CARG() : mixed
getTable()
public
getTable() : 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
setACUMU_CARG()
Set the value of ACUMU_CARG
public
setACUMU_CARG(mixed $ACUMU_CARG) : self
Parameters
- $ACUMU_CARG : mixed
Return values
selfsetATIVI_CARG()
Set the value of ATIVI_CARG
public
setATIVI_CARG(mixed $ATIVI_CARG) : self
Parameters
- $ATIVI_CARG : mixed
Return values
selfsetCODIG_CARG()
Set the value of CODIG_CARG
public
setCODIG_CARG(mixed $CODIG_CARG) : self
Parameters
- $CODIG_CARG : mixed
Return values
selfsetDESCR_CARG()
Set the value of DESCR_CARG
public
setDESCR_CARG(mixed $DESCR_CARG) : self
Parameters
- $DESCR_CARG : mixed
Return values
selfsetDTLEI_CARG()
Set the value of DTLEI_CARG
public
setDTLEI_CARG(mixed $DTLEI_CARG) : self
Parameters
- $DTLEI_CARG : mixed
Return values
selfsetESPEC_CARG()
Set the value of ESPEC_CARG
public
setESPEC_CARG(mixed $ESPEC_CARG) : self
Parameters
- $ESPEC_CARG : mixed
Return values
selfsetEXCLU_CARG()
Set the value of EXCLU_CARG
public
setEXCLU_CARG(mixed $EXCLU_CARG) : self
Parameters
- $EXCLU_CARG : mixed
Return values
selfsetNOCBO_CARG()
Set the value of NOCBO_CARG
public
setNOCBO_CARG(mixed $NOCBO_CARG) : self
Parameters
- $NOCBO_CARG : mixed
Return values
selfsetNOLEI_CARG()
Set the value of NOLEI_CARG
public
setNOLEI_CARG(mixed $NOLEI_CARG) : self
Parameters
- $NOLEI_CARG : mixed
Return values
selfsetS1040_CARG()
Set the value of S1040_CARG
public
setS1040_CARG(mixed $S1040_CARG) : self
Parameters
- $S1040_CARG : mixed
Return values
selfsetSALAR_CARG()
Set the value of SALAR_CARG
public
setSALAR_CARG(mixed $SALAR_CARG) : self
Parameters
- $SALAR_CARG : mixed
Return values
selfsetSALRA_CARG()
Set the value of SALRA_CARG
public
setSALRA_CARG(mixed $SALRA_CARG) : self
Parameters
- $SALRA_CARG : mixed
Return values
selfsetSTLEI_CARG()
Set the value of STLEI_CARG
public
setSTLEI_CARG(mixed $STLEI_CARG) : self
Parameters
- $STLEI_CARG : 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 = '*'