Documentation

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

security

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

public mixed security = ['select' => 'src\models\TABFPPRDMSecurity::securitySelect']

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

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_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_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

setCODIG_PRDM()

Set the value of CODIG_PRDM

public setCODIG_PRDM(mixed $CODIG_PRDM) : self
Parameters
$CODIG_PRDM : mixed
Return values
self

setCOMPE_PRDM()

Set the value of COMPE_PRDM

public setCOMPE_PRDM(mixed $COMPE_PRDM) : self
Parameters
$COMPE_PRDM : mixed
Return values
self

setDATAHORA()

Set the value of DATAHORA

public setDATAHORA(mixed $DATAHORA) : self
Parameters
$DATAHORA : mixed
Return values
self

setDATAL_PRDM()

Set the value of DATAL_PRDM

public setDATAL_PRDM(mixed $DATAL_PRDM) : self
Parameters
$DATAL_PRDM : mixed
Return values
self

setDESCRICAO()

Set the value of DESCRICAO

public setDESCRICAO(mixed $DESCRICAO) : self
Parameters
$DESCRICAO : mixed
Return values
self

setEMPRE_PRDM()

Set the value of EMPRE_PRDM

public setEMPRE_PRDM(mixed $EMPRE_PRDM) : self
Parameters
$EMPRE_PRDM : mixed
Return values
self

setFUNCI_PRDM()

Set the value of FUNCI_PRDM

public setFUNCI_PRDM(mixed $FUNCI_PRDM) : self
Parameters
$FUNCI_PRDM : mixed
Return values
self

setIDSERVICOSYSCONAG()

Set the value of IDSERVICOSYSCONAG

public setIDSERVICOSYSCONAG(mixed $IDSERVICOSYSCONAG) : self
Parameters
$IDSERVICOSYSCONAG : mixed
Return values
self

setIDSYSCONAG()

Set the value of IDSYSCONAG

public setIDSYSCONAG(mixed $IDSYSCONAG) : self
Parameters
$IDSYSCONAG : mixed
Return values
self

setIDTALHAOSYSCONAG()

Set the value of IDTALHAOSYSCONAG

public setIDTALHAOSYSCONAG(mixed $IDTALHAOSYSCONAG) : self
Parameters
$IDTALHAOSYSCONAG : mixed
Return values
self

setIDUSERSYS()

Set the value of IDUSERSYS

public setIDUSERSYS(mixed $IDUSERSYS) : self
Parameters
$IDUSERSYS : mixed
Return values
self

setLOCAL()

Set the value of LOCAL

public setLOCAL(mixed $LOCAL) : self
Parameters
$LOCAL : mixed
Return values
self

setLOCAL_PRDM()

Set the value of LOCAL_PRDM

public setLOCAL_PRDM(mixed $LOCAL_PRDM) : self
Parameters
$LOCAL_PRDM : mixed
Return values
self

setNODIA_PRDM()

Set the value of NODIA_PRDM

public setNODIA_PRDM(mixed $NODIA_PRDM) : self
Parameters
$NODIA_PRDM : mixed
Return values
self

setNOMESERVICOSYSCONAG()

Set the value of NOMESERVICOSYSCONAG

public setNOMESERVICOSYSCONAG(mixed $NOMESERVICOSYSCONAG) : self
Parameters
$NOMESERVICOSYSCONAG : mixed
Return values
self

setNOMETALHAOSYSCONAG()

Set the value of NOMETALHAOSYSCONAG

public setNOMETALHAOSYSCONAG(mixed $NOMETALHAOSYSCONAG) : self
Parameters
$NOMETALHAOSYSCONAG : mixed
Return values
self

setPAGTO_PRDM()

Set the value of PAGTO_PRDM

public setPAGTO_PRDM(mixed $PAGTO_PRDM) : self
Parameters
$PAGTO_PRDM : mixed
Return values
self

setQUANT_PRDM()

Set the value of QUANT_PRDM

public setQUANT_PRDM(mixed $QUANT_PRDM) : self
Parameters
$QUANT_PRDM : mixed
Return values
self

setTOTALANEXO()

Set the value of TOTALANEXO

public setTOTALANEXO(mixed $TOTALANEXO) : self
Parameters
$TOTALANEXO : mixed
Return values
self

setVALOR_PRDM()

Set the value of VALOR_PRDM

public setVALOR_PRDM(mixed $VALOR_PRDM) : self
Parameters
$VALOR_PRDM : 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