UsoCombustivelEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['DataHora']]
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'cad_combustivel_exe'
- pk_field = 'idComb'
- sanitize = []
- Estrutura = ['key' => 'rule']
- security = ['update' => 'src\models\UsoCombustivelSecurity::securityUpdate']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ['data' => ['required' => 'O campo Data é obrigatório.'], 'AnoAgricolaSafra' => ['required' => 'O campo Ano Safra é obrigatório.'], 'idBomba' => ['required' => 'O campo Bomba é obrigatório.'], 'qtidade' => ['required' => 'O campo Quantidade (Litro) é obrigatório.'], 'km' => ['required' => 'O campo Km/Horímetro no Abastecimento é obrigatório.']]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $AnoAgricola : mixed
- $AnoAgricolaSafra : mixed
- $custoUnitario : mixed
- $data : mixed
- $DataHora : mixed
- $DataHoraSYNC : mixed
- $dispositivo : mixed
- $horaAbastecimento : mixed
- $idAtivo : mixed
- $idBomba : mixed
- $idComb : mixed
- $idCTASmart : mixed
- $idDepartamento : mixed
- $idEntidade : mixed
- $idEntidadeCondutor : mixed
- $idEntidadeCondutorAnterior : mixed
- $idFazenda : mixed
- $idNegocio : mixed
- $idUsuario : mixed
- $ip : mixed
- $km : mixed
- $kmLancado : mixed
- $kmRodado : mixed
- $latitude : mixed
- $longitude : mixed
- $obs : mixed
- $placaVeiculo : mixed
- $qtidade : mixed
- $qtidadeReal : mixed
- $saldoBomba : mixed
- $tipo : mixed
- $tipoAtualizacao : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAnoAgricola() : mixed
- Get the value of AnoAgricola
- getAnoAgricolaSafra() : mixed
- Get the value of AnoAgricolaSafra
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getCustoUnitario() : mixed
- Get the value of custoUnitario
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDataHoraSYNC() : mixed
- Get the value of DataHoraSYNC
- getDBDriver() : mixed
- getDBTable() : mixed
- getDispositivo() : mixed
- Get the value of dispositivo
- getHoraAbastecimento() : mixed
- Get the value of horaAbastecimento
- getIdAtivo() : mixed
- Get the value of idAtivo
- getIdBomba() : mixed
- Get the value of idBomba
- getIdComb() : mixed
- Get the value of idComb
- getIdCTASmart() : mixed
- Get the value of idCTASmart
- getIdDepartamento() : mixed
- Get the value of idDepartamento
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdEntidadeCondutor() : mixed
- Get the value of idEntidadeCondutor
- getIdEntidadeCondutorAnterior() : mixed
- Get the value of idEntidadeCondutorAnterior
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdNegocio() : mixed
- Get the value of idNegocio
- getIdUsuario() : mixed
- Get the value of idUsuario
- getIp() : mixed
- Get the value of ip
- getKm() : mixed
- Get the value of km
- getKmLancado() : mixed
- Get the value of kmLancado
- getKmRodado() : mixed
- Get the value of kmRodado
- getLatitude() : mixed
- Get the value of latitude
- getLongitude() : mixed
- Get the value of longitude
- getObs() : mixed
- Get the value of obs
- getPlacaVeiculo() : mixed
- Get the value of placaVeiculo
- getQtidade() : mixed
- Get the value of qtidade
- getQtidadeReal() : mixed
- Get the value of qtidadeReal
- getSaldoBomba() : mixed
- Get the value of saldoBomba
- getTable() : mixed
- getTipo() : mixed
- Get the value of tipo
- getTipoAtualizacao() : mixed
- Get the value of tipoAtualizacao
- 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
- setAnoAgricola() : self
- Set the value of AnoAgricola
- setAnoAgricolaSafra() : self
- Set the value of AnoAgricolaSafra
- setCustoUnitario() : self
- Set the value of custoUnitario
- setData() : self
- Set the value of data
- setDataHora() : self
- Set the value of DataHora
- setDataHoraSYNC() : self
- Set the value of DataHoraSYNC
- setDispositivo() : self
- Set the value of dispositivo
- setHoraAbastecimento() : self
- Set the value of horaAbastecimento
- setIdAtivo() : self
- Set the value of idAtivo
- setIdBomba() : self
- Set the value of idBomba
- setIdComb() : self
- Set the value of idComb
- setIdCTASmart() : self
- Set the value of idCTASmart
- setIdDepartamento() : self
- Set the value of idDepartamento
- setIdEntidade() : self
- Set the value of idEntidade
- setIdEntidadeCondutor() : self
- Set the value of idEntidadeCondutor
- setIdEntidadeCondutorAnterior() : self
- Set the value of idEntidadeCondutorAnterior
- setIdFazenda() : self
- Set the value of idFazenda
- setIdNegocio() : self
- Set the value of idNegocio
- setIdUsuario() : self
- Set the value of idUsuario
- setIp() : self
- Set the value of ip
- setKm() : self
- Set the value of km
- setKmLancado() : self
- Set the value of kmLancado
- setKmRodado() : self
- Set the value of kmRodado
- setLatitude() : self
- Set the value of latitude
- setLongitude() : self
- Set the value of longitude
- setObs() : self
- Set the value of obs
- setPlacaVeiculo() : self
- Set the value of placaVeiculo
- setQtidade() : self
- Set the value of qtidade
- setQtidadeReal() : self
- Set the value of qtidadeReal
- setSaldoBomba() : self
- Set the value of saldoBomba
- setTipo() : self
- Set the value of tipo
- setTipoAtualizacao() : self
- Set the value of tipoAtualizacao
- 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' => ['DataHora']]
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'cad_combustivel_exe'
pk_field
public
mixed
pk_field
= 'idComb'
sanitize
Estrutura = ['key' => 'rule']
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['update' => 'src\models\UsoCombustivelSecurity::securityUpdate']
tracking
public
mixed
tracking
= true
validations
Estrutura = ['key' => ['keyRule' => 'Rule message']]
public
mixed
validations
= ['data' => ['required' => 'O campo Data é obrigatório.'], 'AnoAgricolaSafra' => ['required' => 'O campo Ano Safra é obrigatório.'], 'idBomba' => ['required' => 'O campo Bomba é obrigatório.'], 'qtidade' => ['required' => 'O campo Quantidade (Litro) é obrigatório.'], 'km' => ['required' => 'O campo Km/Horímetro no Abastecimento é obrigatório.']]
Properties
$AnoAgricola
private
mixed
$AnoAgricola
$AnoAgricolaSafra
private
mixed
$AnoAgricolaSafra
$custoUnitario
private
mixed
$custoUnitario
$data
private
mixed
$data
$DataHora
private
mixed
$DataHora
$DataHoraSYNC
private
mixed
$DataHoraSYNC
$dispositivo
private
mixed
$dispositivo
$horaAbastecimento
private
mixed
$horaAbastecimento
$idAtivo
private
mixed
$idAtivo
$idBomba
private
mixed
$idBomba
$idComb
private
mixed
$idComb
$idCTASmart
private
mixed
$idCTASmart
$idDepartamento
private
mixed
$idDepartamento
$idEntidade
private
mixed
$idEntidade
$idEntidadeCondutor
private
mixed
$idEntidadeCondutor
$idEntidadeCondutorAnterior
private
mixed
$idEntidadeCondutorAnterior
$idFazenda
private
mixed
$idFazenda
$idNegocio
private
mixed
$idNegocio
$idUsuario
private
mixed
$idUsuario
$ip
private
mixed
$ip
$km
private
mixed
$km
$kmLancado
private
mixed
$kmLancado
$kmRodado
private
mixed
$kmRodado
$latitude
private
mixed
$latitude
$longitude
private
mixed
$longitude
$obs
private
mixed
$obs
$placaVeiculo
private
mixed
$placaVeiculo
$qtidade
private
mixed
$qtidade
$qtidadeReal
private
mixed
$qtidadeReal
$saldoBomba
private
mixed
$saldoBomba
$tipo
private
mixed
$tipo
$tipoAtualizacao
private
mixed
$tipoAtualizacao
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 = []
getAnoAgricola()
Get the value of AnoAgricola
public
getAnoAgricola() : mixed
getAnoAgricolaSafra()
Get the value of AnoAgricolaSafra
public
getAnoAgricolaSafra() : mixed
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
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
getCustoUnitario()
Get the value of custoUnitario
public
getCustoUnitario() : mixed
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDataHoraSYNC()
Get the value of DataHoraSYNC
public
getDataHoraSYNC() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDispositivo()
Get the value of dispositivo
public
getDispositivo() : mixed
getHoraAbastecimento()
Get the value of horaAbastecimento
public
getHoraAbastecimento() : mixed
getIdAtivo()
Get the value of idAtivo
public
getIdAtivo() : mixed
getIdBomba()
Get the value of idBomba
public
getIdBomba() : mixed
getIdComb()
Get the value of idComb
public
getIdComb() : mixed
getIdCTASmart()
Get the value of idCTASmart
public
getIdCTASmart() : mixed
getIdDepartamento()
Get the value of idDepartamento
public
getIdDepartamento() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntidadeCondutor()
Get the value of idEntidadeCondutor
public
getIdEntidadeCondutor() : mixed
getIdEntidadeCondutorAnterior()
Get the value of idEntidadeCondutorAnterior
public
getIdEntidadeCondutorAnterior() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdNegocio()
Get the value of idNegocio
public
getIdNegocio() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getIp()
Get the value of ip
public
getIp() : mixed
getKm()
Get the value of km
public
getKm() : mixed
getKmLancado()
Get the value of kmLancado
public
getKmLancado() : mixed
getKmRodado()
Get the value of kmRodado
public
getKmRodado() : mixed
getLatitude()
Get the value of latitude
public
getLatitude() : mixed
getLongitude()
Get the value of longitude
public
getLongitude() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getPlacaVeiculo()
Get the value of placaVeiculo
public
getPlacaVeiculo() : mixed
getQtidade()
Get the value of qtidade
public
getQtidade() : mixed
getQtidadeReal()
Get the value of qtidadeReal
public
getQtidadeReal() : mixed
getSaldoBomba()
Get the value of saldoBomba
public
getSaldoBomba() : mixed
getTable()
public
getTable() : mixed
getTipo()
Get the value of tipo
public
getTipo() : mixed
getTipoAtualizacao()
Get the value of tipoAtualizacao
public
getTipoAtualizacao() : 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
setAnoAgricola()
Set the value of AnoAgricola
public
setAnoAgricola(mixed $AnoAgricola) : self
Parameters
- $AnoAgricola : mixed
Return values
selfsetAnoAgricolaSafra()
Set the value of AnoAgricolaSafra
public
setAnoAgricolaSafra(mixed $AnoAgricolaSafra) : self
Parameters
- $AnoAgricolaSafra : mixed
Return values
selfsetCustoUnitario()
Set the value of custoUnitario
public
setCustoUnitario(mixed $custoUnitario) : self
Parameters
- $custoUnitario : mixed
Return values
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDataHoraSYNC()
Set the value of DataHoraSYNC
public
setDataHoraSYNC(mixed $DataHoraSYNC) : self
Parameters
- $DataHoraSYNC : mixed
Return values
selfsetDispositivo()
Set the value of dispositivo
public
setDispositivo(mixed $dispositivo) : self
Parameters
- $dispositivo : mixed
Return values
selfsetHoraAbastecimento()
Set the value of horaAbastecimento
public
setHoraAbastecimento(mixed $horaAbastecimento) : self
Parameters
- $horaAbastecimento : mixed
Return values
selfsetIdAtivo()
Set the value of idAtivo
public
setIdAtivo(mixed $idAtivo) : self
Parameters
- $idAtivo : mixed
Return values
selfsetIdBomba()
Set the value of idBomba
public
setIdBomba(mixed $idBomba) : self
Parameters
- $idBomba : mixed
Return values
selfsetIdComb()
Set the value of idComb
public
setIdComb(mixed $idComb) : self
Parameters
- $idComb : mixed
Return values
selfsetIdCTASmart()
Set the value of idCTASmart
public
setIdCTASmart(mixed $idCTASmart) : self
Parameters
- $idCTASmart : mixed
Return values
selfsetIdDepartamento()
Set the value of idDepartamento
public
setIdDepartamento(mixed $idDepartamento) : self
Parameters
- $idDepartamento : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEntidadeCondutor()
Set the value of idEntidadeCondutor
public
setIdEntidadeCondutor(mixed $idEntidadeCondutor) : self
Parameters
- $idEntidadeCondutor : mixed
Return values
selfsetIdEntidadeCondutorAnterior()
Set the value of idEntidadeCondutorAnterior
public
setIdEntidadeCondutorAnterior(mixed $idEntidadeCondutorAnterior) : self
Parameters
- $idEntidadeCondutorAnterior : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdNegocio()
Set the value of idNegocio
public
setIdNegocio(mixed $idNegocio) : self
Parameters
- $idNegocio : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetIp()
Set the value of ip
public
setIp(mixed $ip) : self
Parameters
- $ip : mixed
Return values
selfsetKm()
Set the value of km
public
setKm(mixed $km) : self
Parameters
- $km : mixed
Return values
selfsetKmLancado()
Set the value of kmLancado
public
setKmLancado(mixed $kmLancado) : self
Parameters
- $kmLancado : mixed
Return values
selfsetKmRodado()
Set the value of kmRodado
public
setKmRodado(mixed $kmRodado) : self
Parameters
- $kmRodado : mixed
Return values
selfsetLatitude()
Set the value of latitude
public
setLatitude(mixed $latitude) : self
Parameters
- $latitude : mixed
Return values
selfsetLongitude()
Set the value of longitude
public
setLongitude(mixed $longitude) : self
Parameters
- $longitude : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetPlacaVeiculo()
Set the value of placaVeiculo
public
setPlacaVeiculo(mixed $placaVeiculo) : self
Parameters
- $placaVeiculo : mixed
Return values
selfsetQtidade()
Set the value of qtidade
public
setQtidade(mixed $qtidade) : self
Parameters
- $qtidade : mixed
Return values
selfsetQtidadeReal()
Set the value of qtidadeReal
public
setQtidadeReal(mixed $qtidadeReal) : self
Parameters
- $qtidadeReal : mixed
Return values
selfsetSaldoBomba()
Set the value of saldoBomba
public
setSaldoBomba(mixed $saldoBomba) : self
Parameters
- $saldoBomba : mixed
Return values
selfsetTipo()
Set the value of tipo
public
setTipo(mixed $tipo) : self
Parameters
- $tipo : mixed
Return values
selfsetTipoAtualizacao()
Set the value of tipoAtualizacao
public
setTipoAtualizacao(mixed $tipoAtualizacao) : self
Parameters
- $tipoAtualizacao : 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 = '*'