Documentation

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

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

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

getTipoControleEstoque()

Get the value of tipoControleEstoque

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

setData()

Set the value of data

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

setDataEntrega()

Set the value of dataEntrega

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

setDataHora()

Set the value of DataHora

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

setDataHoraCadastro()

Set the value of DataHoraCadastro

public setDataHoraCadastro(mixed $DataHoraCadastro) : self
Parameters
$DataHoraCadastro : mixed
Return values
self

setDataPrevista()

Set the value of dataPrevista

public setDataPrevista(mixed $dataPrevista) : self
Parameters
$dataPrevista : mixed
Return values
self

setFreteInculso()

Set the value of freteInculso

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

setIdCotacao()

Set the value of idCotacao

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

setIdEntidadeCorretor()

Set the value of idEntidadeCorretor

public setIdEntidadeCorretor(mixed $idEntidadeCorretor) : self
Parameters
$idEntidadeCorretor : mixed
Return values
self

setIdEntidadeProdutor()

Set the value of idEntidadeProdutor

public setIdEntidadeProdutor(mixed $idEntidadeProdutor) : self
Parameters
$idEntidadeProdutor : mixed
Return values
self

setIdEntidadeResp()

Set the value of idEntidadeResp

public setIdEntidadeResp(mixed $idEntidadeResp) : self
Parameters
$idEntidadeResp : mixed
Return values
self

setIdEntrada()

Set the value of idEntrada

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

setIdNota()

Set the value of idNota

public setIdNota(mixed $idNota) : self
Parameters
$idNota : mixed
Return values
self

setIdNotaxml()

Set the value of idNotaxml

public setIdNotaxml(mixed $idNotaxml) : self
Parameters
$idNotaxml : mixed
Return values
self

setIdPedidoFornec()

Set the value of idPedidoFornec

public setIdPedidoFornec(mixed $idPedidoFornec) : self
Parameters
$idPedidoFornec : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setIdUsuarioCadastro()

Set the value of idUsuarioCadastro

public setIdUsuarioCadastro(mixed $idUsuarioCadastro) : self
Parameters
$idUsuarioCadastro : mixed
Return values
self

setIdVariavelControle()

Set the value of idVariavelControle

public setIdVariavelControle(mixed $idVariavelControle) : self
Parameters
$idVariavelControle : mixed
Return values
self

setNumeroNotaCompra()

Set the value of numeroNotaCompra

public setNumeroNotaCompra(mixed $numeroNotaCompra) : self
Parameters
$numeroNotaCompra : mixed
Return values
self

setObs()

Set the value of obs

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

setQtidadeEntregue()

Set the value of qtidadeEntregue

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

setQtidadePedida()

Set the value of qtidadePedida

public setQtidadePedida(mixed $qtidadePedida) : self
Parameters
$qtidadePedida : mixed
Return values
self

setStatusCompra()

Set the value of statusCompra

public setStatusCompra(mixed $statusCompra) : self
Parameters
$statusCompra : mixed
Return values
self

setTipoCadastro()

Set the value of tipoCadastro

public setTipoCadastro(mixed $tipoCadastro) : self
Parameters
$tipoCadastro : mixed
Return values
self

setTipoControleEstoque()

Set the value of tipoControleEstoque

public setTipoControleEstoque(mixed $tipoControleEstoque) : self
Parameters
$tipoControleEstoque : mixed
Return values
self

setTipoPagamento()

Set the value of tipoPagamento

public setTipoPagamento(mixed $tipoPagamento) : self
Parameters
$tipoPagamento : mixed
Return values
self

setTotalAnexo()

Set the value of totalAnexo

public setTotalAnexo(mixed $totalAnexo) : self
Parameters
$totalAnexo : mixed
Return values
self

setValorComissao()

Set the value of valorComissao

public setValorComissao(mixed $valorComissao) : self
Parameters
$valorComissao : mixed
Return values
self

setValorFrete()

Set the value of valorFrete

public setValorFrete(mixed $valorFrete) : self
Parameters
$valorFrete : mixed
Return values
self

setValorFreteEntregue()

Set the value of valorFreteEntregue

public setValorFreteEntregue(mixed $valorFreteEntregue) : self
Parameters
$valorFreteEntregue : mixed
Return values
self

setValorFunrural()

Set the value of valorFunrural

public setValorFunrural(mixed $valorFunrural) : self
Parameters
$valorFunrural : mixed
Return values
self

setValorSeguro()

Set the value of valorSeguro

public setValorSeguro(mixed $valorSeguro) : self
Parameters
$valorSeguro : mixed
Return values
self

setValorTotal()

Set the value of valorTotal

public setValorTotal(mixed $valorTotal) : self
Parameters
$valorTotal : mixed
Return values
self

setValorTotalPedido()

Set the value of valorTotalPedido

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