CadCombustivelEntradaEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['object_rel' => 'idEntradaComb', 'exclude_fields' => ['DataHora']]
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'cad_combustivel_entrada'
- pk_field = 'idEntradaComb'
- sanitize = []
- security = ['update' => 'src\models\CadCombustivelEntradaSecurity::securityUpdate', 'delete' => 'src\models\CadCombustivelEntradaSecurity::securityDelete']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ["idEntidade" => ['required' => 'O campo Responsável é obrigatório.'], "data" => ['required' => 'O campo Data da Entrega é obrigatório.'], "idBomba" => ['required' => 'O campo Bomba é obrigatório.']]
Properties
- $data : mixed
- $DataHora : mixed
- $idBomba : mixed
- $idContasPagar : mixed
- $idEntidade : mixed
- $idEntrada : mixed
- $idEntradaComb : mixed
- $idEntrega : mixed
- $idUsuario : mixed
- $obs : mixed
- $qtidadeLitros : mixed
- $saldoBomba : mixed
- $valorTotal : mixed
- $valorUnitario : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getIdBomba() : mixed
- Get the value of idBomba
- getIdContasPagar() : mixed
- Get the value of idContasPagar
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdEntrada() : mixed
- Get the value of idEntrada
- getIdEntradaComb() : mixed
- Get the value of idEntradaComb
- getIdEntrega() : mixed
- Get the value of idEntrega
- getIdUsuario() : mixed
- Get the value of idUsuario
- getObs() : mixed
- Get the value of obs
- getQtidadeLitros() : mixed
- Get the value of qtidadeLitros
- getSaldoBomba() : mixed
- Get the value of saldoBomba
- getTable() : mixed
- getValorTotal() : mixed
- Get the value of valorTotal
- getValorUnitario() : mixed
- Get the value of valorUnitario
- 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
- setData() : self
- Set the value of data
- setDataHora() : self
- Set the value of DataHora
- setIdBomba() : self
- Set the value of idBomba
- setIdContasPagar() : self
- Set the value of idContasPagar
- setIdEntidade() : self
- Set the value of idEntidade
- setIdEntrada() : self
- Set the value of idEntrada
- setIdEntradaComb() : self
- Set the value of idEntradaComb
- setIdEntrega() : self
- Set the value of idEntrega
- setIdUsuario() : self
- Set the value of idUsuario
- setObs() : self
- Set the value of obs
- setQtidadeLitros() : self
- Set the value of qtidadeLitros
- setSaldoBomba() : self
- Set the value of saldoBomba
- setValorTotal() : self
- Set the value of valorTotal
- setValorUnitario() : self
- Set the value of valorUnitario
- 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
= ['object_rel' => 'idEntradaComb', '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_entrada'
pk_field
public
mixed
pk_field
= 'idEntradaComb'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['update' => 'src\models\CadCombustivelEntradaSecurity::securityUpdate', 'delete' => 'src\models\CadCombustivelEntradaSecurity::securityDelete']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= ["idEntidade" => ['required' => 'O campo Responsável é obrigatório.'], "data" => ['required' => 'O campo Data da Entrega é obrigatório.'], "idBomba" => ['required' => 'O campo Bomba é obrigatório.']]
Properties
$data
private
mixed
$data
$DataHora
private
mixed
$DataHora
$idBomba
private
mixed
$idBomba
$idContasPagar
private
mixed
$idContasPagar
$idEntidade
private
mixed
$idEntidade
$idEntrada
private
mixed
$idEntrada
$idEntradaComb
private
mixed
$idEntradaComb
$idEntrega
private
mixed
$idEntrega
$idUsuario
private
mixed
$idUsuario
$obs
private
mixed
$obs
$qtidadeLitros
private
mixed
$qtidadeLitros
$saldoBomba
private
mixed
$saldoBomba
$valorTotal
private
mixed
$valorTotal
$valorUnitario
private
mixed
$valorUnitario
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
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
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getIdBomba()
Get the value of idBomba
public
getIdBomba() : mixed
getIdContasPagar()
Get the value of idContasPagar
public
getIdContasPagar() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntrada()
Get the value of idEntrada
public
getIdEntrada() : mixed
getIdEntradaComb()
Get the value of idEntradaComb
public
getIdEntradaComb() : mixed
getIdEntrega()
Get the value of idEntrega
public
getIdEntrega() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getQtidadeLitros()
Get the value of qtidadeLitros
public
getQtidadeLitros() : mixed
getSaldoBomba()
Get the value of saldoBomba
public
getSaldoBomba() : mixed
getTable()
public
getTable() : mixed
getValorTotal()
Get the value of valorTotal
public
getValorTotal() : mixed
getValorUnitario()
Get the value of valorUnitario
public
getValorUnitario() : 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
setData()
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
selfsetIdBomba()
Set the value of idBomba
public
setIdBomba(mixed $idBomba) : self
Parameters
- $idBomba : mixed
Return values
selfsetIdContasPagar()
Set the value of idContasPagar
public
setIdContasPagar(mixed $idContasPagar) : self
Parameters
- $idContasPagar : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEntrada()
Set the value of idEntrada
public
setIdEntrada(mixed $idEntrada) : self
Parameters
- $idEntrada : mixed
Return values
selfsetIdEntradaComb()
Set the value of idEntradaComb
public
setIdEntradaComb(mixed $idEntradaComb) : self
Parameters
- $idEntradaComb : mixed
Return values
selfsetIdEntrega()
Set the value of idEntrega
public
setIdEntrega(mixed $idEntrega) : self
Parameters
- $idEntrega : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetQtidadeLitros()
Set the value of qtidadeLitros
public
setQtidadeLitros(mixed $qtidadeLitros) : self
Parameters
- $qtidadeLitros : mixed
Return values
selfsetSaldoBomba()
Set the value of saldoBomba
public
setSaldoBomba(mixed $saldoBomba) : self
Parameters
- $saldoBomba : mixed
Return values
selfsetValorTotal()
Set the value of valorTotal
public
setValorTotal(mixed $valorTotal) : self
Parameters
- $valorTotal : mixed
Return values
selfsetValorUnitario()
Set the value of valorUnitario
public
setValorUnitario(mixed $valorUnitario) : self
Parameters
- $valorUnitario : 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 = '*'