CadProdutoEntradaItemEntity
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_produtos_entrada_item'
- pk_field = 'idEntradaProd'
- sanitize = []
- security = ['update' => 'src\models\CadProdutoEntradaItemSecurity::securityUpdate']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ["idProduto" => ['required' => 'O campo Produto é obrigatório.'], "freteInculso" => ['required' => 'O campo Frete Incluso é obrigatório.']]
Properties
- $codProdXml : mixed
- $controleEstoque : mixed
- $dataEntrega : mixed
- $dataFabricacao : mixed
- $DataHora : mixed
- $dataVecto : mixed
- $depDestino : mixed
- $finalizar : mixed
- $freteInculso : mixed
- $idConversao : mixed
- $idEntrada : mixed
- $idEntradaProd : mixed
- $idPlanoConta : mixed
- $idProduto : mixed
- $idUsuario : mixed
- $ncmXmnl : mixed
- $nomeProdXml : mixed
- $numeroLote : mixed
- $qtidade : mixed
- $qtidadeCadastro : mixed
- $qtidadeEntregue : mixed
- $qtidadePedidoInicio : mixed
- $undXml : mixed
- $valorFreteUnitario : mixed
- $valorUnitario : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCodProdXml() : mixed
- Get the value of codProdXml
- getConst() : mixed
- getConstObj() : mixed
- getControleEstoque() : mixed
- Get the value of ControleEstoque
- getDatabase() : mixed
- getDataEntrega() : mixed
- Get the value of dataEntrega
- getDataFabricacao() : mixed
- Get the value of dataFabricacao
- getDataHora() : mixed
- Get the value of DataHora
- getDataVecto() : mixed
- Get the value of dataVecto
- getDBDriver() : mixed
- getDBTable() : mixed
- getDepDestino() : mixed
- Get the value of depDestino
- getFinalizar() : mixed
- Get the value of finalizar
- getFreteInculso() : mixed
- Get the value of freteInculso
- getIdConversao() : mixed
- Get the value of idConversao
- getIdEntrada() : mixed
- Get the value of idEntrada
- getIdEntradaProd() : mixed
- Get the value of idEntradaProd
- getIdPlanoConta() : mixed
- Get the value of idPlanoConta
- getIdProduto() : mixed
- Get the value of idProduto
- getIdUsuario() : mixed
- Get the value of idUsuario
- getNcmXmnl() : mixed
- Get the value of ncmXmnl
- getNomeProdXml() : mixed
- Get the value of nomeProdXml
- getNumeroLote() : mixed
- Get the value of numeroLote
- getQtidade() : mixed
- Get the value of qtidade
- getQtidadeCadastro() : mixed
- Get the value of qtidadeCadastro
- getQtidadeEntregue() : mixed
- Get the value of qtidadeEntregue
- getQtidadePedidoInicio() : mixed
- Get the value of qtidadePedidoInicio
- getTable() : mixed
- getUndXml() : mixed
- Get the value of undXml
- getValorFreteUnitario() : mixed
- Get the value of valorFreteUnitario
- 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
- setCodProdXml() : self
- Set the value of codProdXml
- setControleEstoque() : self
- Set the value of ControleEstoque
- setDataEntrega() : self
- Set the value of dataEntrega
- setDataFabricacao() : self
- Set the value of dataFabricacao
- setDataHora() : self
- Set the value of DataHora
- setDataVecto() : self
- Set the value of dataVecto
- setDepDestino() : self
- Set the value of depDestino
- setFinalizar() : self
- Set the value of finalizar
- setFreteInculso() : self
- Set the value of freteInculso
- setIdConversao() : self
- Set the value of idConversao
- setIdEntrada() : self
- Set the value of idEntrada
- setIdEntradaProd() : self
- Set the value of idEntradaProd
- setIdPlanoConta() : self
- Set the value of idPlanoConta
- setIdProduto() : self
- Set the value of idProduto
- setIdUsuario() : self
- Set the value of idUsuario
- setNcmXmnl() : self
- Set the value of ncmXmnl
- setNomeProdXml() : self
- Set the value of nomeProdXml
- setNumeroLote() : self
- Set the value of numeroLote
- setQtidade() : self
- Set the value of qtidade
- setQtidadeCadastro() : self
- Set the value of qtidadeCadastro
- setQtidadeEntregue() : self
- Set the value of qtidadeEntregue
- setQtidadePedidoInicio() : self
- Set the value of qtidadePedidoInicio
- setUndXml() : self
- Set the value of undXml
- setValorFreteUnitario() : self
- Set the value of valorFreteUnitario
- 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
= ['exclude_fields' => ['dataHora']]
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'cad_produtos_entrada_item'
pk_field
public
mixed
pk_field
= 'idEntradaProd'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['update' => 'src\models\CadProdutoEntradaItemSecurity::securityUpdate']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= ["idProduto" => ['required' => 'O campo Produto é obrigatório.'], "freteInculso" => ['required' => 'O campo Frete Incluso é obrigatório.']]
Properties
$codProdXml
private
mixed
$codProdXml
$controleEstoque
private
mixed
$controleEstoque
$dataEntrega
private
mixed
$dataEntrega
$dataFabricacao
private
mixed
$dataFabricacao
$DataHora
private
mixed
$DataHora
$dataVecto
private
mixed
$dataVecto
$depDestino
private
mixed
$depDestino
$finalizar
private
mixed
$finalizar
$freteInculso
private
mixed
$freteInculso
$idConversao
private
mixed
$idConversao
$idEntrada
private
mixed
$idEntrada
$idEntradaProd
private
mixed
$idEntradaProd
$idPlanoConta
private
mixed
$idPlanoConta
$idProduto
private
mixed
$idProduto
$idUsuario
private
mixed
$idUsuario
$ncmXmnl
private
mixed
$ncmXmnl
$nomeProdXml
private
mixed
$nomeProdXml
$numeroLote
private
mixed
$numeroLote
$qtidade
private
mixed
$qtidade
$qtidadeCadastro
private
mixed
$qtidadeCadastro
$qtidadeEntregue
private
mixed
$qtidadeEntregue
$qtidadePedidoInicio
private
mixed
$qtidadePedidoInicio
$undXml
private
mixed
$undXml
$valorFreteUnitario
private
mixed
$valorFreteUnitario
$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
getCodProdXml()
Get the value of codProdXml
public
getCodProdXml() : 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
getControleEstoque()
Get the value of ControleEstoque
public
getControleEstoque() : mixed
getDatabase()
public
getDatabase() : mixed
getDataEntrega()
Get the value of dataEntrega
public
getDataEntrega() : mixed
getDataFabricacao()
Get the value of dataFabricacao
public
getDataFabricacao() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDataVecto()
Get the value of dataVecto
public
getDataVecto() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDepDestino()
Get the value of depDestino
public
getDepDestino() : mixed
getFinalizar()
Get the value of finalizar
public
getFinalizar() : mixed
getFreteInculso()
Get the value of freteInculso
public
getFreteInculso() : mixed
getIdConversao()
Get the value of idConversao
public
getIdConversao() : mixed
getIdEntrada()
Get the value of idEntrada
public
getIdEntrada() : mixed
getIdEntradaProd()
Get the value of idEntradaProd
public
getIdEntradaProd() : mixed
getIdPlanoConta()
Get the value of idPlanoConta
public
getIdPlanoConta() : mixed
getIdProduto()
Get the value of idProduto
public
getIdProduto() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getNcmXmnl()
Get the value of ncmXmnl
public
getNcmXmnl() : mixed
getNomeProdXml()
Get the value of nomeProdXml
public
getNomeProdXml() : mixed
getNumeroLote()
Get the value of numeroLote
public
getNumeroLote() : mixed
getQtidade()
Get the value of qtidade
public
getQtidade() : mixed
getQtidadeCadastro()
Get the value of qtidadeCadastro
public
getQtidadeCadastro() : mixed
getQtidadeEntregue()
Get the value of qtidadeEntregue
public
getQtidadeEntregue() : mixed
getQtidadePedidoInicio()
Get the value of qtidadePedidoInicio
public
getQtidadePedidoInicio() : mixed
getTable()
public
getTable() : mixed
getUndXml()
Get the value of undXml
public
getUndXml() : mixed
getValorFreteUnitario()
Get the value of valorFreteUnitario
public
getValorFreteUnitario() : 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
setCodProdXml()
Set the value of codProdXml
public
setCodProdXml(mixed $codProdXml) : self
Parameters
- $codProdXml : mixed
Return values
selfsetControleEstoque()
Set the value of ControleEstoque
public
setControleEstoque(mixed $ControleEstoque) : self
Parameters
- $ControleEstoque : mixed
Return values
selfsetDataEntrega()
Set the value of dataEntrega
public
setDataEntrega(mixed $dataEntrega) : self
Parameters
- $dataEntrega : mixed
Return values
selfsetDataFabricacao()
Set the value of dataFabricacao
public
setDataFabricacao(mixed $dataFabricacao) : self
Parameters
- $dataFabricacao : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDataVecto()
Set the value of dataVecto
public
setDataVecto(mixed $dataVecto) : self
Parameters
- $dataVecto : mixed
Return values
selfsetDepDestino()
Set the value of depDestino
public
setDepDestino(mixed $depDestino) : self
Parameters
- $depDestino : mixed
Return values
selfsetFinalizar()
Set the value of finalizar
public
setFinalizar(mixed $finalizar) : self
Parameters
- $finalizar : mixed
Return values
selfsetFreteInculso()
Set the value of freteInculso
public
setFreteInculso(mixed $freteInculso) : self
Parameters
- $freteInculso : mixed
Return values
selfsetIdConversao()
Set the value of idConversao
public
setIdConversao(mixed $idConversao) : self
Parameters
- $idConversao : mixed
Return values
selfsetIdEntrada()
Set the value of idEntrada
public
setIdEntrada(mixed $idEntrada) : self
Parameters
- $idEntrada : mixed
Return values
selfsetIdEntradaProd()
Set the value of idEntradaProd
public
setIdEntradaProd(mixed $idEntradaProd) : self
Parameters
- $idEntradaProd : mixed
Return values
selfsetIdPlanoConta()
Set the value of idPlanoConta
public
setIdPlanoConta(mixed $idPlanoConta) : self
Parameters
- $idPlanoConta : mixed
Return values
selfsetIdProduto()
Set the value of idProduto
public
setIdProduto(mixed $idProduto) : self
Parameters
- $idProduto : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetNcmXmnl()
Set the value of ncmXmnl
public
setNcmXmnl(mixed $ncmXmnl) : self
Parameters
- $ncmXmnl : mixed
Return values
selfsetNomeProdXml()
Set the value of nomeProdXml
public
setNomeProdXml(mixed $nomeProdXml) : self
Parameters
- $nomeProdXml : mixed
Return values
selfsetNumeroLote()
Set the value of numeroLote
public
setNumeroLote(mixed $numeroLote) : self
Parameters
- $numeroLote : mixed
Return values
selfsetQtidade()
Set the value of qtidade
public
setQtidade(mixed $qtidade) : self
Parameters
- $qtidade : mixed
Return values
selfsetQtidadeCadastro()
Set the value of qtidadeCadastro
public
setQtidadeCadastro(mixed $qtidadeCadastro) : self
Parameters
- $qtidadeCadastro : mixed
Return values
selfsetQtidadeEntregue()
Set the value of qtidadeEntregue
public
setQtidadeEntregue(mixed $qtidadeEntregue) : self
Parameters
- $qtidadeEntregue : mixed
Return values
selfsetQtidadePedidoInicio()
Set the value of qtidadePedidoInicio
public
setQtidadePedidoInicio(mixed $qtidadePedidoInicio) : self
Parameters
- $qtidadePedidoInicio : mixed
Return values
selfsetUndXml()
Set the value of undXml
public
setUndXml(mixed $undXml) : self
Parameters
- $undXml : mixed
Return values
selfsetValorFreteUnitario()
Set the value of valorFreteUnitario
public
setValorFreteUnitario(mixed $valorFreteUnitario) : self
Parameters
- $valorFreteUnitario : 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 = '*'