TABFPPRDMEntity
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 = 'TABFPPRDM'
- pk_field = 'EMPRE_PRDM'
- sanitize = []
- security = ['select' => 'src\models\TABFPPRDMSecurity::securitySelect']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ["EMPRE_PRDM" => ['required' => 'O campo EMPRE PRDM é requerido.'], "FUNCI_PRDM" => ['required' => 'O campo FUNCI PRDM é requerido.'], "COMPE_PRDM" => ['required' => 'O campo COMPE PRDM é requerido.'], "PAGTO_PRDM" => ['required' => 'O campo PAGTO PRDM é requerido.'], "NODIA_PRDM" => ['required' => 'O campo NODIA PRDM é requerido.'], "CODIG_PRDM" => ['required' => 'O campo CODIG PRDM PRDM é requerido.'], "IDTALHAOSYSCONAG" => ['required' => 'O campo ID TALHAO SYSCONAG é requerido.'], "IDSERVICOSYSCONAG" => ['required' => 'O campo ID SERVICO SYSCONAG é requerido.']]
Properties
- $CODIG_PRDM : mixed
- $COMPE_PRDM : mixed
- $DATAHORA : mixed
- $DATAL_PRDM : mixed
- $DESCRICAO : mixed
- $EMPRE_PRDM : mixed
- $FUNCI_PRDM : mixed
- $IDSERVICOSYSCONAG : mixed
- $IDSYSCONAG : mixed
- $IDTALHAOSYSCONAG : mixed
- $IDUSERSYS : mixed
- $LOCAL : mixed
- $LOCAL_PRDM : mixed
- $NODIA_PRDM : mixed
- $NOMESERVICOSYSCONAG : mixed
- $NOMETALHAOSYSCONAG : mixed
- $PAGTO_PRDM : mixed
- $QUANT_PRDM : mixed
- $TOTALANEXO : mixed
- $VALOR_PRDM : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCODIG_PRDM() : mixed
- Get the value of CODIG_PRDM
- getCOMPE_PRDM() : mixed
- Get the value of COMPE_PRDM
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDATAHORA() : mixed
- Get the value of DATAHORA
- getDATAL_PRDM() : mixed
- Get the value of DATAL_PRDM
- getDBDriver() : mixed
- getDBTable() : mixed
- getDESCRICAO() : mixed
- Get the value of DESCRICAO
- getEMPRE_PRDM() : mixed
- Get the value of EMPRE_PRDM
- getFUNCI_PRDM() : mixed
- Get the value of FUNCI_PRDM
- getIDSERVICOSYSCONAG() : mixed
- Get the value of IDSERVICOSYSCONAG
- getIDSYSCONAG() : mixed
- Get the value of IDSYSCONAG
- getIDTALHAOSYSCONAG() : mixed
- Get the value of IDTALHAOSYSCONAG
- getIDUSERSYS() : mixed
- Get the value of IDUSERSYS
- getLOCAL() : mixed
- Get the value of LOCAL
- getLOCAL_PRDM() : mixed
- Get the value of LOCAL_PRDM
- getNODIA_PRDM() : mixed
- Get the value of NODIA_PRDM
- getNOMESERVICOSYSCONAG() : mixed
- Get the value of NOMESERVICOSYSCONAG
- getNOMETALHAOSYSCONAG() : mixed
- Get the value of NOMETALHAOSYSCONAG
- getPAGTO_PRDM() : mixed
- Get the value of PAGTO_PRDM
- getQUANT_PRDM() : mixed
- Get the value of QUANT_PRDM
- getTable() : mixed
- getTOTALANEXO() : mixed
- Get the value of TOTALANEXO
- getVALOR_PRDM() : mixed
- Get the value of VALOR_PRDM
- 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
- setCODIG_PRDM() : self
- Set the value of CODIG_PRDM
- setCOMPE_PRDM() : self
- Set the value of COMPE_PRDM
- setDATAHORA() : self
- Set the value of DATAHORA
- setDATAL_PRDM() : self
- Set the value of DATAL_PRDM
- setDESCRICAO() : self
- Set the value of DESCRICAO
- setEMPRE_PRDM() : self
- Set the value of EMPRE_PRDM
- setFUNCI_PRDM() : self
- Set the value of FUNCI_PRDM
- setIDSERVICOSYSCONAG() : self
- Set the value of IDSERVICOSYSCONAG
- setIDSYSCONAG() : self
- Set the value of IDSYSCONAG
- setIDTALHAOSYSCONAG() : self
- Set the value of IDTALHAOSYSCONAG
- setIDUSERSYS() : self
- Set the value of IDUSERSYS
- setLOCAL() : self
- Set the value of LOCAL
- setLOCAL_PRDM() : self
- Set the value of LOCAL_PRDM
- setNODIA_PRDM() : self
- Set the value of NODIA_PRDM
- setNOMESERVICOSYSCONAG() : self
- Set the value of NOMESERVICOSYSCONAG
- setNOMETALHAOSYSCONAG() : self
- Set the value of NOMETALHAOSYSCONAG
- setPAGTO_PRDM() : self
- Set the value of PAGTO_PRDM
- setQUANT_PRDM() : self
- Set the value of QUANT_PRDM
- setTOTALANEXO() : self
- Set the value of TOTALANEXO
- setVALOR_PRDM() : self
- Set the value of VALOR_PRDM
- 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
= 'TABFPPRDM'
pk_field
public
mixed
pk_field
= 'EMPRE_PRDM'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['select' => 'src\models\TABFPPRDMSecurity::securitySelect']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= ["EMPRE_PRDM" => ['required' => 'O campo EMPRE PRDM é requerido.'], "FUNCI_PRDM" => ['required' => 'O campo FUNCI PRDM é requerido.'], "COMPE_PRDM" => ['required' => 'O campo COMPE PRDM é requerido.'], "PAGTO_PRDM" => ['required' => 'O campo PAGTO PRDM é requerido.'], "NODIA_PRDM" => ['required' => 'O campo NODIA PRDM é requerido.'], "CODIG_PRDM" => ['required' => 'O campo CODIG PRDM PRDM é requerido.'], "IDTALHAOSYSCONAG" => ['required' => 'O campo ID TALHAO SYSCONAG é requerido.'], "IDSERVICOSYSCONAG" => ['required' => 'O campo ID SERVICO SYSCONAG é requerido.']]
Properties
$CODIG_PRDM
private
mixed
$CODIG_PRDM
$COMPE_PRDM
private
mixed
$COMPE_PRDM
$DATAHORA
private
mixed
$DATAHORA
$DATAL_PRDM
private
mixed
$DATAL_PRDM
$DESCRICAO
private
mixed
$DESCRICAO
$EMPRE_PRDM
private
mixed
$EMPRE_PRDM
$FUNCI_PRDM
private
mixed
$FUNCI_PRDM
$IDSERVICOSYSCONAG
private
mixed
$IDSERVICOSYSCONAG
$IDSYSCONAG
private
mixed
$IDSYSCONAG
$IDTALHAOSYSCONAG
private
mixed
$IDTALHAOSYSCONAG
$IDUSERSYS
private
mixed
$IDUSERSYS
$LOCAL
private
mixed
$LOCAL
$LOCAL_PRDM
private
mixed
$LOCAL_PRDM
$NODIA_PRDM
private
mixed
$NODIA_PRDM
$NOMESERVICOSYSCONAG
private
mixed
$NOMESERVICOSYSCONAG
$NOMETALHAOSYSCONAG
private
mixed
$NOMETALHAOSYSCONAG
$PAGTO_PRDM
private
mixed
$PAGTO_PRDM
$QUANT_PRDM
private
mixed
$QUANT_PRDM
$TOTALANEXO
private
mixed
$TOTALANEXO
$VALOR_PRDM
private
mixed
$VALOR_PRDM
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
getCODIG_PRDM()
Get the value of CODIG_PRDM
public
getCODIG_PRDM() : mixed
getCOMPE_PRDM()
Get the value of COMPE_PRDM
public
getCOMPE_PRDM() : 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
getDATAHORA()
Get the value of DATAHORA
public
getDATAHORA() : mixed
getDATAL_PRDM()
Get the value of DATAL_PRDM
public
getDATAL_PRDM() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDESCRICAO()
Get the value of DESCRICAO
public
getDESCRICAO() : mixed
getEMPRE_PRDM()
Get the value of EMPRE_PRDM
public
getEMPRE_PRDM() : mixed
getFUNCI_PRDM()
Get the value of FUNCI_PRDM
public
getFUNCI_PRDM() : mixed
getIDSERVICOSYSCONAG()
Get the value of IDSERVICOSYSCONAG
public
getIDSERVICOSYSCONAG() : mixed
getIDSYSCONAG()
Get the value of IDSYSCONAG
public
getIDSYSCONAG() : mixed
getIDTALHAOSYSCONAG()
Get the value of IDTALHAOSYSCONAG
public
getIDTALHAOSYSCONAG() : mixed
getIDUSERSYS()
Get the value of IDUSERSYS
public
getIDUSERSYS() : mixed
getLOCAL()
Get the value of LOCAL
public
getLOCAL() : mixed
getLOCAL_PRDM()
Get the value of LOCAL_PRDM
public
getLOCAL_PRDM() : mixed
getNODIA_PRDM()
Get the value of NODIA_PRDM
public
getNODIA_PRDM() : mixed
getNOMESERVICOSYSCONAG()
Get the value of NOMESERVICOSYSCONAG
public
getNOMESERVICOSYSCONAG() : mixed
getNOMETALHAOSYSCONAG()
Get the value of NOMETALHAOSYSCONAG
public
getNOMETALHAOSYSCONAG() : mixed
getPAGTO_PRDM()
Get the value of PAGTO_PRDM
public
getPAGTO_PRDM() : mixed
getQUANT_PRDM()
Get the value of QUANT_PRDM
public
getQUANT_PRDM() : mixed
getTable()
public
getTable() : mixed
getTOTALANEXO()
Get the value of TOTALANEXO
public
getTOTALANEXO() : mixed
getVALOR_PRDM()
Get the value of VALOR_PRDM
public
getVALOR_PRDM() : 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
setCODIG_PRDM()
Set the value of CODIG_PRDM
public
setCODIG_PRDM(mixed $CODIG_PRDM) : self
Parameters
- $CODIG_PRDM : mixed
Return values
selfsetCOMPE_PRDM()
Set the value of COMPE_PRDM
public
setCOMPE_PRDM(mixed $COMPE_PRDM) : self
Parameters
- $COMPE_PRDM : mixed
Return values
selfsetDATAHORA()
Set the value of DATAHORA
public
setDATAHORA(mixed $DATAHORA) : self
Parameters
- $DATAHORA : mixed
Return values
selfsetDATAL_PRDM()
Set the value of DATAL_PRDM
public
setDATAL_PRDM(mixed $DATAL_PRDM) : self
Parameters
- $DATAL_PRDM : mixed
Return values
selfsetDESCRICAO()
Set the value of DESCRICAO
public
setDESCRICAO(mixed $DESCRICAO) : self
Parameters
- $DESCRICAO : mixed
Return values
selfsetEMPRE_PRDM()
Set the value of EMPRE_PRDM
public
setEMPRE_PRDM(mixed $EMPRE_PRDM) : self
Parameters
- $EMPRE_PRDM : mixed
Return values
selfsetFUNCI_PRDM()
Set the value of FUNCI_PRDM
public
setFUNCI_PRDM(mixed $FUNCI_PRDM) : self
Parameters
- $FUNCI_PRDM : mixed
Return values
selfsetIDSERVICOSYSCONAG()
Set the value of IDSERVICOSYSCONAG
public
setIDSERVICOSYSCONAG(mixed $IDSERVICOSYSCONAG) : self
Parameters
- $IDSERVICOSYSCONAG : mixed
Return values
selfsetIDSYSCONAG()
Set the value of IDSYSCONAG
public
setIDSYSCONAG(mixed $IDSYSCONAG) : self
Parameters
- $IDSYSCONAG : mixed
Return values
selfsetIDTALHAOSYSCONAG()
Set the value of IDTALHAOSYSCONAG
public
setIDTALHAOSYSCONAG(mixed $IDTALHAOSYSCONAG) : self
Parameters
- $IDTALHAOSYSCONAG : mixed
Return values
selfsetIDUSERSYS()
Set the value of IDUSERSYS
public
setIDUSERSYS(mixed $IDUSERSYS) : self
Parameters
- $IDUSERSYS : mixed
Return values
selfsetLOCAL()
Set the value of LOCAL
public
setLOCAL(mixed $LOCAL) : self
Parameters
- $LOCAL : mixed
Return values
selfsetLOCAL_PRDM()
Set the value of LOCAL_PRDM
public
setLOCAL_PRDM(mixed $LOCAL_PRDM) : self
Parameters
- $LOCAL_PRDM : mixed
Return values
selfsetNODIA_PRDM()
Set the value of NODIA_PRDM
public
setNODIA_PRDM(mixed $NODIA_PRDM) : self
Parameters
- $NODIA_PRDM : mixed
Return values
selfsetNOMESERVICOSYSCONAG()
Set the value of NOMESERVICOSYSCONAG
public
setNOMESERVICOSYSCONAG(mixed $NOMESERVICOSYSCONAG) : self
Parameters
- $NOMESERVICOSYSCONAG : mixed
Return values
selfsetNOMETALHAOSYSCONAG()
Set the value of NOMETALHAOSYSCONAG
public
setNOMETALHAOSYSCONAG(mixed $NOMETALHAOSYSCONAG) : self
Parameters
- $NOMETALHAOSYSCONAG : mixed
Return values
selfsetPAGTO_PRDM()
Set the value of PAGTO_PRDM
public
setPAGTO_PRDM(mixed $PAGTO_PRDM) : self
Parameters
- $PAGTO_PRDM : mixed
Return values
selfsetQUANT_PRDM()
Set the value of QUANT_PRDM
public
setQUANT_PRDM(mixed $QUANT_PRDM) : self
Parameters
- $QUANT_PRDM : mixed
Return values
selfsetTOTALANEXO()
Set the value of TOTALANEXO
public
setTOTALANEXO(mixed $TOTALANEXO) : self
Parameters
- $TOTALANEXO : mixed
Return values
selfsetVALOR_PRDM()
Set the value of VALOR_PRDM
public
setVALOR_PRDM(mixed $VALOR_PRDM) : self
Parameters
- $VALOR_PRDM : 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 = '*'