Documentation

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

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

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

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

getDatabase()

public getDatabase() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getHoraAbastecimento()

Get the value of horaAbastecimento

public getHoraAbastecimento() : mixed

getIdEntidadeCondutor()

Get the value of idEntidadeCondutor

public getIdEntidadeCondutor() : mixed

getIdEntidadeCondutorAnterior()

Get the value of idEntidadeCondutorAnterior

public getIdEntidadeCondutorAnterior() : mixed

getTable()

public getTable() : mixed

getTipoAtualizacao()

Get the value of tipoAtualizacao

public getTipoAtualizacao() : 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

setAnoAgricola()

Set the value of AnoAgricola

public setAnoAgricola(mixed $AnoAgricola) : self
Parameters
$AnoAgricola : mixed
Return values
self

setAnoAgricolaSafra()

Set the value of AnoAgricolaSafra

public setAnoAgricolaSafra(mixed $AnoAgricolaSafra) : self
Parameters
$AnoAgricolaSafra : mixed
Return values
self

setCustoUnitario()

Set the value of custoUnitario

public setCustoUnitario(mixed $custoUnitario) : self
Parameters
$custoUnitario : mixed
Return values
self

setData()

Set the value of data

public setData(mixed $data) : self
Parameters
$data : mixed
Return values
self

setDataHora()

Set the value of DataHora

public setDataHora(mixed $DataHora) : self
Parameters
$DataHora : mixed
Return values
self

setDataHoraSYNC()

Set the value of DataHoraSYNC

public setDataHoraSYNC(mixed $DataHoraSYNC) : self
Parameters
$DataHoraSYNC : mixed
Return values
self

setDispositivo()

Set the value of dispositivo

public setDispositivo(mixed $dispositivo) : self
Parameters
$dispositivo : mixed
Return values
self

setHoraAbastecimento()

Set the value of horaAbastecimento

public setHoraAbastecimento(mixed $horaAbastecimento) : self
Parameters
$horaAbastecimento : mixed
Return values
self

setIdAtivo()

Set the value of idAtivo

public setIdAtivo(mixed $idAtivo) : self
Parameters
$idAtivo : mixed
Return values
self

setIdBomba()

Set the value of idBomba

public setIdBomba(mixed $idBomba) : self
Parameters
$idBomba : mixed
Return values
self

setIdComb()

Set the value of idComb

public setIdComb(mixed $idComb) : self
Parameters
$idComb : mixed
Return values
self

setIdCTASmart()

Set the value of idCTASmart

public setIdCTASmart(mixed $idCTASmart) : self
Parameters
$idCTASmart : mixed
Return values
self

setIdDepartamento()

Set the value of idDepartamento

public setIdDepartamento(mixed $idDepartamento) : self
Parameters
$idDepartamento : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

public setIdEntidade(mixed $idEntidade) : self
Parameters
$idEntidade : mixed
Return values
self

setIdEntidadeCondutor()

Set the value of idEntidadeCondutor

public setIdEntidadeCondutor(mixed $idEntidadeCondutor) : self
Parameters
$idEntidadeCondutor : mixed
Return values
self

setIdEntidadeCondutorAnterior()

Set the value of idEntidadeCondutorAnterior

public setIdEntidadeCondutorAnterior(mixed $idEntidadeCondutorAnterior) : self
Parameters
$idEntidadeCondutorAnterior : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

public setIdFazenda(mixed $idFazenda) : self
Parameters
$idFazenda : mixed
Return values
self

setIdNegocio()

Set the value of idNegocio

public setIdNegocio(mixed $idNegocio) : self
Parameters
$idNegocio : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

public setIdUsuario(mixed $idUsuario) : self
Parameters
$idUsuario : mixed
Return values
self

setIp()

Set the value of ip

public setIp(mixed $ip) : self
Parameters
$ip : mixed
Return values
self

setKm()

Set the value of km

public setKm(mixed $km) : self
Parameters
$km : mixed
Return values
self

setKmLancado()

Set the value of kmLancado

public setKmLancado(mixed $kmLancado) : self
Parameters
$kmLancado : mixed
Return values
self

setKmRodado()

Set the value of kmRodado

public setKmRodado(mixed $kmRodado) : self
Parameters
$kmRodado : mixed
Return values
self

setLatitude()

Set the value of latitude

public setLatitude(mixed $latitude) : self
Parameters
$latitude : mixed
Return values
self

setLongitude()

Set the value of longitude

public setLongitude(mixed $longitude) : self
Parameters
$longitude : mixed
Return values
self

setObs()

Set the value of obs

public setObs(mixed $obs) : self
Parameters
$obs : mixed
Return values
self

setPlacaVeiculo()

Set the value of placaVeiculo

public setPlacaVeiculo(mixed $placaVeiculo) : self
Parameters
$placaVeiculo : mixed
Return values
self

setQtidade()

Set the value of qtidade

public setQtidade(mixed $qtidade) : self
Parameters
$qtidade : mixed
Return values
self

setQtidadeReal()

Set the value of qtidadeReal

public setQtidadeReal(mixed $qtidadeReal) : self
Parameters
$qtidadeReal : mixed
Return values
self

setSaldoBomba()

Set the value of saldoBomba

public setSaldoBomba(mixed $saldoBomba) : self
Parameters
$saldoBomba : mixed
Return values
self

setTipo()

Set the value of tipo

public setTipo(mixed $tipo) : self
Parameters
$tipo : mixed
Return values
self

setTipoAtualizacao()

Set the value of tipoAtualizacao

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