Documentation

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

security

Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>

public mixed security = ['update' => 'src\models\CadProdutoEntradaItemSecurity::securityUpdate']

validations

public mixed validations = ["idProduto" => ['required' => 'O campo Produto é obrigatório.'], "freteInculso" => ['required' => 'O campo Frete Incluso é 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 = []

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

getTable()

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

setCodProdXml()

Set the value of codProdXml

public setCodProdXml(mixed $codProdXml) : self
Parameters
$codProdXml : mixed
Return values
self

setControleEstoque()

Set the value of ControleEstoque

public setControleEstoque(mixed $ControleEstoque) : self
Parameters
$ControleEstoque : mixed
Return values
self

setDataEntrega()

Set the value of dataEntrega

public setDataEntrega(mixed $dataEntrega) : self
Parameters
$dataEntrega : mixed
Return values
self

setDataFabricacao()

Set the value of dataFabricacao

public setDataFabricacao(mixed $dataFabricacao) : self
Parameters
$dataFabricacao : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setDataVecto()

Set the value of dataVecto

public setDataVecto(mixed $dataVecto) : self
Parameters
$dataVecto : mixed
Return values
self

setDepDestino()

Set the value of depDestino

public setDepDestino(mixed $depDestino) : self
Parameters
$depDestino : mixed
Return values
self

setFinalizar()

Set the value of finalizar

public setFinalizar(mixed $finalizar) : self
Parameters
$finalizar : mixed
Return values
self

setFreteInculso()

Set the value of freteInculso

public setFreteInculso(mixed $freteInculso) : self
Parameters
$freteInculso : mixed
Return values
self

setIdConversao()

Set the value of idConversao

public setIdConversao(mixed $idConversao) : self
Parameters
$idConversao : mixed
Return values
self

setIdEntrada()

Set the value of idEntrada

public setIdEntrada(mixed $idEntrada) : self
Parameters
$idEntrada : mixed
Return values
self

setIdEntradaProd()

Set the value of idEntradaProd

public setIdEntradaProd(mixed $idEntradaProd) : self
Parameters
$idEntradaProd : mixed
Return values
self

setIdPlanoConta()

Set the value of idPlanoConta

public setIdPlanoConta(mixed $idPlanoConta) : self
Parameters
$idPlanoConta : mixed
Return values
self

setIdProduto()

Set the value of idProduto

public setIdProduto(mixed $idProduto) : self
Parameters
$idProduto : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setNcmXmnl()

Set the value of ncmXmnl

public setNcmXmnl(mixed $ncmXmnl) : self
Parameters
$ncmXmnl : mixed
Return values
self

setNomeProdXml()

Set the value of nomeProdXml

public setNomeProdXml(mixed $nomeProdXml) : self
Parameters
$nomeProdXml : mixed
Return values
self

setNumeroLote()

Set the value of numeroLote

public setNumeroLote(mixed $numeroLote) : self
Parameters
$numeroLote : mixed
Return values
self

setQtidade()

Set the value of qtidade

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

setQtidadeCadastro()

Set the value of qtidadeCadastro

public setQtidadeCadastro(mixed $qtidadeCadastro) : self
Parameters
$qtidadeCadastro : mixed
Return values
self

setQtidadeEntregue()

Set the value of qtidadeEntregue

public setQtidadeEntregue(mixed $qtidadeEntregue) : self
Parameters
$qtidadeEntregue : mixed
Return values
self

setQtidadePedidoInicio()

Set the value of qtidadePedidoInicio

public setQtidadePedidoInicio(mixed $qtidadePedidoInicio) : self
Parameters
$qtidadePedidoInicio : mixed
Return values
self

setUndXml()

Set the value of undXml

public setUndXml(mixed $undXml) : self
Parameters
$undXml : mixed
Return values
self

setValorFreteUnitario()

Set the value of valorFreteUnitario

public setValorFreteUnitario(mixed $valorFreteUnitario) : self
Parameters
$valorFreteUnitario : mixed
Return values
self

setValorUnitario()

Set the value of valorUnitario

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