CadProdutoEntradaEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['dataHora'], 'object_rel' => 'idEntrada']
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'cad_produtos_entrada'
- pk_field = 'idEntrada'
- sanitize = []
- security = ['update' => 'src\models\CadProdutoEntradaSecurity::securityUpdate']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ['idEntidade' => ['required' => 'O campo de Fornecedor é requerido'], 'data' => ['required' => 'O campo de Data é requerido'], 'dataPrevista' => ['required' => 'O campo de Data Prevista é requerido'], 'AnoAgricola' => ['required' => 'O campo de Ano Agrícola é requerido']]
Properties
- $AnoAgricola : mixed
- $data : mixed
- $dataEntrega : mixed
- $DataHora : mixed
- $DataHoraCadastro : mixed
- $dataPrevista : mixed
- $freteInculso : mixed
- $idCotacao : mixed
- $idDepartamento : mixed
- $idEntidade : mixed
- $idEntidadeCorretor : mixed
- $idEntidadeProdutor : mixed
- $idEntidadeResp : mixed
- $idEntrada : mixed
- $idNota : mixed
- $idNotaxml : mixed
- $idPedidoFornec : mixed
- $idUsuario : mixed
- $idUsuarioCadastro : mixed
- $idVariavelControle : mixed
- $numeroNotaCompra : mixed
- $obs : mixed
- $qtidadeEntregue : mixed
- $qtidadePedida : mixed
- $statusCompra : mixed
- $tipoCadastro : mixed
- $tipoControleEstoque : mixed
- $tipoPagamento : mixed
- $totalAnexo : mixed
- $valorComissao : mixed
- $valorFrete : mixed
- $valorFreteEntregue : mixed
- $valorFunrural : mixed
- $valorSeguro : mixed
- $valorTotal : mixed
- $valorTotalPedido : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAnoAgricola() : mixed
- Get the value of AnoAgricola
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataEntrega() : mixed
- Get the value of dataEntrega
- getDataHora() : mixed
- Get the value of DataHora
- getDataHoraCadastro() : mixed
- Get the value of DataHoraCadastro
- getDataPrevista() : mixed
- Get the value of dataPrevista
- getDBDriver() : mixed
- getDBTable() : mixed
- getFreteInculso() : mixed
- Get the value of freteInculso
- getIdCotacao() : mixed
- Get the value of idCotacao
- getIdDepartamento() : mixed
- Get the value of idDepartamento
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdEntidadeCorretor() : mixed
- Get the value of idEntidadeCorretor
- getIdEntidadeProdutor() : mixed
- Get the value of idEntidadeProdutor
- getIdEntidadeResp() : mixed
- Get the value of idEntidadeResp
- getIdEntrada() : mixed
- Get the value of idEntrada
- getIdNota() : mixed
- Get the value of idNota
- getIdNotaxml() : mixed
- Get the value of idNotaxml
- getIdPedidoFornec() : mixed
- Get the value of idPedidoFornec
- getIdUsuario() : mixed
- Get the value of idUsuario
- getIdUsuarioCadastro() : mixed
- Get the value of idUsuarioCadastro
- getIdVariavelControle() : mixed
- Get the value of idVariavelControle
- getNumeroNotaCompra() : mixed
- Get the value of numeroNotaCompra
- getObs() : mixed
- Get the value of obs
- getQtidadeEntregue() : mixed
- Get the value of qtidadeEntregue
- getQtidadePedida() : mixed
- Get the value of qtidadePedida
- getStatusCompra() : mixed
- Get the value of statusCompra
- getTable() : mixed
- getTipoCadastro() : mixed
- Get the value of tipoCadastro
- getTipoControleEstoque() : mixed
- Get the value of tipoControleEstoque
- getTipoPagamento() : mixed
- Get the value of tipoPagamento
- getTotalAnexo() : mixed
- Get the value of totalAnexo
- getValorComissao() : mixed
- Get the value of valorComissao
- getValorFrete() : mixed
- Get the value of valorFrete
- getValorFreteEntregue() : mixed
- Get the value of valorFreteEntregue
- getValorFunrural() : mixed
- Get the value of valorFunrural
- getValorSeguro() : mixed
- Get the value of valorSeguro
- getValorTotal() : mixed
- Get the value of valorTotal
- getValorTotalPedido() : mixed
- Get the value of valorTotalPedido
- 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
- setData() : self
- Set the value of data
- setDataEntrega() : self
- Set the value of dataEntrega
- setDataHora() : self
- Set the value of DataHora
- setDataHoraCadastro() : self
- Set the value of DataHoraCadastro
- setDataPrevista() : self
- Set the value of dataPrevista
- setFreteInculso() : self
- Set the value of freteInculso
- setIdCotacao() : self
- Set the value of idCotacao
- setIdDepartamento() : self
- Set the value of idDepartamento
- setIdEntidade() : self
- Set the value of idEntidade
- setIdEntidadeCorretor() : self
- Set the value of idEntidadeCorretor
- setIdEntidadeProdutor() : self
- Set the value of idEntidadeProdutor
- setIdEntidadeResp() : self
- Set the value of idEntidadeResp
- setIdEntrada() : self
- Set the value of idEntrada
- setIdNota() : self
- Set the value of idNota
- setIdNotaxml() : self
- Set the value of idNotaxml
- setIdPedidoFornec() : self
- Set the value of idPedidoFornec
- setIdUsuario() : self
- Set the value of idUsuario
- setIdUsuarioCadastro() : self
- Set the value of idUsuarioCadastro
- setIdVariavelControle() : self
- Set the value of idVariavelControle
- setNumeroNotaCompra() : self
- Set the value of numeroNotaCompra
- setObs() : self
- Set the value of obs
- setQtidadeEntregue() : self
- Set the value of qtidadeEntregue
- setQtidadePedida() : self
- Set the value of qtidadePedida
- setStatusCompra() : self
- Set the value of statusCompra
- setTipoCadastro() : self
- Set the value of tipoCadastro
- setTipoControleEstoque() : self
- Set the value of tipoControleEstoque
- setTipoPagamento() : self
- Set the value of tipoPagamento
- setTotalAnexo() : self
- Set the value of totalAnexo
- setValorComissao() : self
- Set the value of valorComissao
- setValorFrete() : self
- Set the value of valorFrete
- setValorFreteEntregue() : self
- Set the value of valorFreteEntregue
- setValorFunrural() : self
- Set the value of valorFunrural
- setValorSeguro() : self
- Set the value of valorSeguro
- setValorTotal() : self
- Set the value of valorTotal
- setValorTotalPedido() : self
- Set the value of valorTotalPedido
- 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'], 'object_rel' => 'idEntrada']
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'cad_produtos_entrada'
pk_field
public
mixed
pk_field
= 'idEntrada'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['update' => 'src\models\CadProdutoEntradaSecurity::securityUpdate']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= ['idEntidade' => ['required' => 'O campo de Fornecedor é requerido'], 'data' => ['required' => 'O campo de Data é requerido'], 'dataPrevista' => ['required' => 'O campo de Data Prevista é requerido'], 'AnoAgricola' => ['required' => 'O campo de Ano Agrícola é requerido']]
Properties
$AnoAgricola
private
mixed
$AnoAgricola
$data
private
mixed
$data
$dataEntrega
private
mixed
$dataEntrega
$DataHora
private
mixed
$DataHora
$DataHoraCadastro
private
mixed
$DataHoraCadastro
$dataPrevista
private
mixed
$dataPrevista
$freteInculso
private
mixed
$freteInculso
$idCotacao
private
mixed
$idCotacao
$idDepartamento
private
mixed
$idDepartamento
$idEntidade
private
mixed
$idEntidade
$idEntidadeCorretor
private
mixed
$idEntidadeCorretor
$idEntidadeProdutor
private
mixed
$idEntidadeProdutor
$idEntidadeResp
private
mixed
$idEntidadeResp
$idEntrada
private
mixed
$idEntrada
$idNota
private
mixed
$idNota
$idNotaxml
private
mixed
$idNotaxml
$idPedidoFornec
private
mixed
$idPedidoFornec
$idUsuario
private
mixed
$idUsuario
$idUsuarioCadastro
private
mixed
$idUsuarioCadastro
$idVariavelControle
private
mixed
$idVariavelControle
$numeroNotaCompra
private
mixed
$numeroNotaCompra
$obs
private
mixed
$obs
$qtidadeEntregue
private
mixed
$qtidadeEntregue
$qtidadePedida
private
mixed
$qtidadePedida
$statusCompra
private
mixed
$statusCompra
$tipoCadastro
private
mixed
$tipoCadastro
$tipoControleEstoque
private
mixed
$tipoControleEstoque
$tipoPagamento
private
mixed
$tipoPagamento
$totalAnexo
private
mixed
$totalAnexo
$valorComissao
private
mixed
$valorComissao
$valorFrete
private
mixed
$valorFrete
$valorFreteEntregue
private
mixed
$valorFreteEntregue
$valorFunrural
private
mixed
$valorFunrural
$valorSeguro
private
mixed
$valorSeguro
$valorTotal
private
mixed
$valorTotal
$valorTotalPedido
private
mixed
$valorTotalPedido
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
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
getDataEntrega()
Get the value of dataEntrega
public
getDataEntrega() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDataHoraCadastro()
Get the value of DataHoraCadastro
public
getDataHoraCadastro() : mixed
getDataPrevista()
Get the value of dataPrevista
public
getDataPrevista() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getFreteInculso()
Get the value of freteInculso
public
getFreteInculso() : mixed
getIdCotacao()
Get the value of idCotacao
public
getIdCotacao() : mixed
getIdDepartamento()
Get the value of idDepartamento
public
getIdDepartamento() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntidadeCorretor()
Get the value of idEntidadeCorretor
public
getIdEntidadeCorretor() : mixed
getIdEntidadeProdutor()
Get the value of idEntidadeProdutor
public
getIdEntidadeProdutor() : mixed
getIdEntidadeResp()
Get the value of idEntidadeResp
public
getIdEntidadeResp() : mixed
getIdEntrada()
Get the value of idEntrada
public
getIdEntrada() : mixed
getIdNota()
Get the value of idNota
public
getIdNota() : mixed
getIdNotaxml()
Get the value of idNotaxml
public
getIdNotaxml() : mixed
getIdPedidoFornec()
Get the value of idPedidoFornec
public
getIdPedidoFornec() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getIdUsuarioCadastro()
Get the value of idUsuarioCadastro
public
getIdUsuarioCadastro() : mixed
getIdVariavelControle()
Get the value of idVariavelControle
public
getIdVariavelControle() : mixed
getNumeroNotaCompra()
Get the value of numeroNotaCompra
public
getNumeroNotaCompra() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getQtidadeEntregue()
Get the value of qtidadeEntregue
public
getQtidadeEntregue() : mixed
getQtidadePedida()
Get the value of qtidadePedida
public
getQtidadePedida() : mixed
getStatusCompra()
Get the value of statusCompra
public
getStatusCompra() : mixed
getTable()
public
getTable() : mixed
getTipoCadastro()
Get the value of tipoCadastro
public
getTipoCadastro() : mixed
getTipoControleEstoque()
Get the value of tipoControleEstoque
public
getTipoControleEstoque() : mixed
getTipoPagamento()
Get the value of tipoPagamento
public
getTipoPagamento() : mixed
getTotalAnexo()
Get the value of totalAnexo
public
getTotalAnexo() : mixed
getValorComissao()
Get the value of valorComissao
public
getValorComissao() : mixed
getValorFrete()
Get the value of valorFrete
public
getValorFrete() : mixed
getValorFreteEntregue()
Get the value of valorFreteEntregue
public
getValorFreteEntregue() : mixed
getValorFunrural()
Get the value of valorFunrural
public
getValorFunrural() : mixed
getValorSeguro()
Get the value of valorSeguro
public
getValorSeguro() : mixed
getValorTotal()
Get the value of valorTotal
public
getValorTotal() : mixed
getValorTotalPedido()
Get the value of valorTotalPedido
public
getValorTotalPedido() : 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
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataEntrega()
Set the value of dataEntrega
public
setDataEntrega(mixed $dataEntrega) : self
Parameters
- $dataEntrega : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDataHoraCadastro()
Set the value of DataHoraCadastro
public
setDataHoraCadastro(mixed $DataHoraCadastro) : self
Parameters
- $DataHoraCadastro : mixed
Return values
selfsetDataPrevista()
Set the value of dataPrevista
public
setDataPrevista(mixed $dataPrevista) : self
Parameters
- $dataPrevista : mixed
Return values
selfsetFreteInculso()
Set the value of freteInculso
public
setFreteInculso(mixed $freteInculso) : self
Parameters
- $freteInculso : mixed
Return values
selfsetIdCotacao()
Set the value of idCotacao
public
setIdCotacao(mixed $idCotacao) : self
Parameters
- $idCotacao : 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
selfsetIdEntidadeCorretor()
Set the value of idEntidadeCorretor
public
setIdEntidadeCorretor(mixed $idEntidadeCorretor) : self
Parameters
- $idEntidadeCorretor : mixed
Return values
selfsetIdEntidadeProdutor()
Set the value of idEntidadeProdutor
public
setIdEntidadeProdutor(mixed $idEntidadeProdutor) : self
Parameters
- $idEntidadeProdutor : mixed
Return values
selfsetIdEntidadeResp()
Set the value of idEntidadeResp
public
setIdEntidadeResp(mixed $idEntidadeResp) : self
Parameters
- $idEntidadeResp : mixed
Return values
selfsetIdEntrada()
Set the value of idEntrada
public
setIdEntrada(mixed $idEntrada) : self
Parameters
- $idEntrada : mixed
Return values
selfsetIdNota()
Set the value of idNota
public
setIdNota(mixed $idNota) : self
Parameters
- $idNota : mixed
Return values
selfsetIdNotaxml()
Set the value of idNotaxml
public
setIdNotaxml(mixed $idNotaxml) : self
Parameters
- $idNotaxml : mixed
Return values
selfsetIdPedidoFornec()
Set the value of idPedidoFornec
public
setIdPedidoFornec(mixed $idPedidoFornec) : self
Parameters
- $idPedidoFornec : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetIdUsuarioCadastro()
Set the value of idUsuarioCadastro
public
setIdUsuarioCadastro(mixed $idUsuarioCadastro) : self
Parameters
- $idUsuarioCadastro : mixed
Return values
selfsetIdVariavelControle()
Set the value of idVariavelControle
public
setIdVariavelControle(mixed $idVariavelControle) : self
Parameters
- $idVariavelControle : mixed
Return values
selfsetNumeroNotaCompra()
Set the value of numeroNotaCompra
public
setNumeroNotaCompra(mixed $numeroNotaCompra) : self
Parameters
- $numeroNotaCompra : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetQtidadeEntregue()
Set the value of qtidadeEntregue
public
setQtidadeEntregue(mixed $qtidadeEntregue) : self
Parameters
- $qtidadeEntregue : mixed
Return values
selfsetQtidadePedida()
Set the value of qtidadePedida
public
setQtidadePedida(mixed $qtidadePedida) : self
Parameters
- $qtidadePedida : mixed
Return values
selfsetStatusCompra()
Set the value of statusCompra
public
setStatusCompra(mixed $statusCompra) : self
Parameters
- $statusCompra : mixed
Return values
selfsetTipoCadastro()
Set the value of tipoCadastro
public
setTipoCadastro(mixed $tipoCadastro) : self
Parameters
- $tipoCadastro : mixed
Return values
selfsetTipoControleEstoque()
Set the value of tipoControleEstoque
public
setTipoControleEstoque(mixed $tipoControleEstoque) : self
Parameters
- $tipoControleEstoque : mixed
Return values
selfsetTipoPagamento()
Set the value of tipoPagamento
public
setTipoPagamento(mixed $tipoPagamento) : self
Parameters
- $tipoPagamento : mixed
Return values
selfsetTotalAnexo()
Set the value of totalAnexo
public
setTotalAnexo(mixed $totalAnexo) : self
Parameters
- $totalAnexo : mixed
Return values
selfsetValorComissao()
Set the value of valorComissao
public
setValorComissao(mixed $valorComissao) : self
Parameters
- $valorComissao : mixed
Return values
selfsetValorFrete()
Set the value of valorFrete
public
setValorFrete(mixed $valorFrete) : self
Parameters
- $valorFrete : mixed
Return values
selfsetValorFreteEntregue()
Set the value of valorFreteEntregue
public
setValorFreteEntregue(mixed $valorFreteEntregue) : self
Parameters
- $valorFreteEntregue : mixed
Return values
selfsetValorFunrural()
Set the value of valorFunrural
public
setValorFunrural(mixed $valorFunrural) : self
Parameters
- $valorFunrural : mixed
Return values
selfsetValorSeguro()
Set the value of valorSeguro
public
setValorSeguro(mixed $valorSeguro) : self
Parameters
- $valorSeguro : mixed
Return values
selfsetValorTotal()
Set the value of valorTotal
public
setValorTotal(mixed $valorTotal) : self
Parameters
- $valorTotal : mixed
Return values
selfsetValorTotalPedido()
Set the value of valorTotalPedido
public
setValorTotalPedido(mixed $valorTotalPedido) : self
Parameters
- $valorTotalPedido : 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 = '*'