Documentation

ProdutoEntity 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'
pk_field  = 'idProduto'
sanitize  = []
Estrutura = ['key' => 'rule']
security  = ['update' => 'src\models\ProdutoSecurity::securityUpdate', 'select' => '']
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
tracking  = true
validations  = ['idCategoriaProduto' => ['required' => 'O campo Sub Categoria é requerido.'], 'DescricaoCurta' => ['required' => 'O campo Nome do Produto é requerido.'], 'UnidadeProduto' => ['required' => 'O campo Tipo Unidade Principal de Uso é requerido.'], 'tipoProduto' => ['required' => 'O campo Tipo de Produto é requerido.'], 'custoUnitarioProduto' => ['required' => 'O campo Custo Unitário Unidade Uso é requerido.'], 'idPlanoContaPagar' => ['required' => 'O campo Plano de Contas a Pagar é requerido.'], 'espacoCabeca' => ['required' => 'O campo Espaço Cocho/Cabeça é requerido.'], 'novaClasseToxicologica' => ['required' => 'O campo Nova Classe Toxicologica é requerido.']]
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$carencia  : mixed
$classeToxicologica  : mixed
$codigoBarras  : mixed
$codigoProduto  : mixed
$codProdANP  : mixed
$controleEstoque  : mixed
$custoMedioProduto  : mixed
$custoUnitarioProduto  : mixed
$DataHora  : mixed
$depDestino  : mixed
$depOrigem  : mixed
$descProdANP  : mixed
$DescricaoCurta  : mixed
$espacoCabeca  : mixed
$estoqueIdeal  : mixed
$estoqueMinimo  : mixed
$idCategoriaProduto  : mixed
$idLocal  : mixed
$idPlanoConta  : mixed
$idPlanoConta2  : mixed
$idPlanoContaPagar  : mixed
$idProduto  : mixed
$idSubCat  : mixed
$idUsuario  : mixed
$idVariavelControle  : mixed
$imagemProduto  : mixed
$infoAdicionais  : mixed
$marca  : mixed
$moduloCombustivel  : mixed
$ncm  : mixed
$NomeProduto  : mixed
$novaClasseToxicologica  : mixed
$numeroMAPA  : mixed
$oldcustoMedio  : mixed
$oldCustoUnitario  : mixed
$reentrada  : mixed
$saldo  : mixed
$saldoReservado  : mixed
$status  : mixed
$statusCustoErro  : mixed
$statusLote  : mixed
$statusLoteCompra  : mixed
$tipoProduto  : mixed
$totalAnexo  : mixed
$ultimaAcao  : mixed
$UnidadeProduto  : mixed
$usoProibido  : mixed
$variedadeProduto  : mixed
$variedadeProduto2  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAuditlog()  : mixed
getCarencia()  : mixed
Get the value of carencia
getClasseToxicologica()  : mixed
Get the value of classeToxicologica
getCodigoBarras()  : mixed
Get the value of codigoBarras
getCodigoProduto()  : mixed
Get the value of codigoProduto
getCodProdANP()  : mixed
Get the value of codProdANP
getConst()  : mixed
getConstObj()  : mixed
getControleEstoque()  : mixed
Get the value of controleEstoque
getCustoMedioProduto()  : mixed
Get the value of custoMedioProduto
getCustoUnitarioProduto()  : mixed
Get the value of custoUnitarioProduto
getDatabase()  : mixed
getDataHora()  : mixed
Get the value of DataHora
getDBDriver()  : mixed
getDBTable()  : mixed
getDepDestino()  : mixed
Get the value of depDestino
getDepOrigem()  : mixed
Get the value of depOrigem
getDescProdANP()  : mixed
Get the value of descProdANP
getDescricaoCurta()  : mixed
Get the value of DescricaoCurta
getEspacoCabeca()  : mixed
Get the value of espacoCabeca
getEstoqueIdeal()  : mixed
Get the value of estoqueIdeal
getEstoqueMinimo()  : mixed
Get the value of estoqueMinimo
getIdCategoriaProduto()  : mixed
Get the value of idCategoriaProduto
getIdLocal()  : mixed
Get the value of idLocal
getIdPlanoConta()  : mixed
Get the value of idPlanoConta
getIdPlanoConta2()  : mixed
Get the value of idPlanoConta2
getIdPlanoContaPagar()  : mixed
Get the value of idPlanoContaPagar
getIdProduto()  : mixed
Get the value of idProduto
getIdSubCat()  : mixed
Get the value of idSubCat
getIdUsuario()  : mixed
Get the value of idUsuario
getIdVariavelControle()  : mixed
Get the value of idVariavelControle
getImagemProduto()  : mixed
Get the value of imagemProduto
getInfoAdicionais()  : mixed
Get the value of infoAdicionais
getMarca()  : mixed
Get the value of marca
getModuloCombustivel()  : mixed
Get the value of moduloCombustivel
getNcm()  : mixed
Get the value of ncm
getNomeProduto()  : mixed
Get the value of NomeProduto
getNovaClasseToxicologica()  : mixed
Get the value of novaClasseToxicologica
getNumeroMAPA()  : mixed
Get the value of numeroMAPA
getOldcustoMedio()  : mixed
Get the value of oldcustoMedio
getOldCustoUnitario()  : mixed
Get the value of oldCustoUnitario
getReentrada()  : mixed
Get the value of reentrada
getSaldo()  : mixed
Get the value of saldo
getSaldoReservado()  : mixed
Get the value of saldoReservado
getStatus()  : mixed
Get the value of status
getStatusCustoErro()  : mixed
Get the value of statusCustoErro
getStatusLote()  : mixed
Get the value of statusLote
getStatusLoteCompra()  : mixed
Get the value of statusLoteCompra
getTable()  : mixed
getTipoProduto()  : mixed
Get the value of tipoProduto
getTotalAnexo()  : mixed
Get the value of totalAnexo
getUltimaAcao()  : mixed
Get the value of ultimaAcao
getUnidadeProduto()  : mixed
Get the value of UnidadeProduto
getUsoProibido()  : mixed
Get the value of usoProibido
getVariedadeProduto()  : mixed
Get the value of variedadeProduto
getVariedadeProduto2()  : mixed
Get the value of variedadeProduto2
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
setCarencia()  : self
Set the value of carencia
setClasseToxicologica()  : self
Set the value of classeToxicologica
setCodigoBarras()  : self
Set the value of codigoBarras
setCodigoProduto()  : self
Set the value of codigoProduto
setCodProdANP()  : self
Set the value of codProdANP
setControleEstoque()  : self
Set the value of controleEstoque
setCustoMedioProduto()  : self
Set the value of custoMedioProduto
setCustoUnitarioProduto()  : self
Set the value of custoUnitarioProduto
setDataHora()  : self
Set the value of DataHora
setDepDestino()  : self
Set the value of depDestino
setDepOrigem()  : self
Set the value of depOrigem
setDescProdANP()  : self
Set the value of descProdANP
setDescricaoCurta()  : self
Set the value of DescricaoCurta
setEspacoCabeca()  : self
Set the value of espacoCabeca
setEstoqueIdeal()  : self
Set the value of estoqueIdeal
setEstoqueMinimo()  : self
Set the value of estoqueMinimo
setIdCategoriaProduto()  : self
Set the value of idCategoriaProduto
setIdLocal()  : self
Set the value of idLocal
setIdPlanoConta()  : self
Set the value of idPlanoConta
setIdPlanoConta2()  : self
Set the value of idPlanoConta2
setIdPlanoContaPagar()  : self
Set the value of idPlanoContaPagar
setIdProduto()  : self
Set the value of idProduto
setIdSubCat()  : self
Set the value of idSubCat
setIdUsuario()  : self
Set the value of idUsuario
setIdVariavelControle()  : self
Set the value of idVariavelControle
setImagemProduto()  : self
Set the value of imagemProduto
setInfoAdicionais()  : self
Set the value of infoAdicionais
setMarca()  : self
Set the value of marca
setModuloCombustivel()  : self
Set the value of moduloCombustivel
setNcm()  : self
Set the value of ncm
setNomeProduto()  : self
Set the value of NomeProduto
setNovaClasseToxicologica()  : self
Set the value of novaClasseToxicologica
setNumeroMAPA()  : self
Set the value of numeroMAPA
setOldcustoMedio()  : self
Set the value of oldcustoMedio
setOldCustoUnitario()  : self
Set the value of oldCustoUnitario
setReentrada()  : self
Set the value of reentrada
setSaldo()  : self
Set the value of saldo
setSaldoReservado()  : self
Set the value of saldoReservado
setStatus()  : self
Set the value of status
setStatusCustoErro()  : self
Set the value of statusCustoErro
setStatusLote()  : self
Set the value of statusLote
setStatusLoteCompra()  : self
Set the value of statusLoteCompra
setTipoProduto()  : self
Set the value of tipoProduto
setTotalAnexo()  : self
Set the value of totalAnexo
setUltimaAcao()  : self
Set the value of ultimaAcao
setUnidadeProduto()  : self
Set the value of UnidadeProduto
setUsoProibido()  : self
Set the value of usoProibido
setVariedadeProduto()  : self
Set the value of variedadeProduto
setVariedadeProduto2()  : self
Set the value of variedadeProduto2
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

sanitize

Estrutura = ['key' => 'rule']

public mixed sanitize = []

security

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

public mixed security = ['update' => 'src\models\ProdutoSecurity::securityUpdate', 'select' => '']

validations

Estrutura = ['key' => ['keyRule' => 'Rule message']]

public mixed validations = ['idCategoriaProduto' => ['required' => 'O campo Sub Categoria é requerido.'], 'DescricaoCurta' => ['required' => 'O campo Nome do Produto é requerido.'], 'UnidadeProduto' => ['required' => 'O campo Tipo Unidade Principal de Uso é requerido.'], 'tipoProduto' => ['required' => 'O campo Tipo de Produto é requerido.'], 'custoUnitarioProduto' => ['required' => 'O campo Custo Unitário Unidade Uso é requerido.'], 'idPlanoContaPagar' => ['required' => 'O campo Plano de Contas a Pagar é requerido.'], 'espacoCabeca' => ['required' => 'O campo Espaço Cocho/Cabeça é requerido.'], 'novaClasseToxicologica' => ['required' => 'O campo Nova Classe Toxicologica é requerido.']]

Properties

$novaClasseToxicologica

private mixed $novaClasseToxicologica

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

getCarencia()

Get the value of carencia

public getCarencia() : mixed

getClasseToxicologica()

Get the value of classeToxicologica

public getClasseToxicologica() : mixed

getCodigoBarras()

Get the value of codigoBarras

public getCodigoBarras() : mixed

getCodigoProduto()

Get the value of codigoProduto

public getCodigoProduto() : mixed

getCodProdANP()

Get the value of codProdANP

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

getCustoMedioProduto()

Get the value of custoMedioProduto

public getCustoMedioProduto() : mixed

getCustoUnitarioProduto()

Get the value of custoUnitarioProduto

public getCustoUnitarioProduto() : mixed

getDatabase()

public getDatabase() : mixed

getDataHora()

Get the value of DataHora

public getDataHora() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getDepDestino()

Get the value of depDestino

public getDepDestino() : mixed

getDepOrigem()

Get the value of depOrigem

public getDepOrigem() : mixed

getDescProdANP()

Get the value of descProdANP

public getDescProdANP() : mixed

getDescricaoCurta()

Get the value of DescricaoCurta

public getDescricaoCurta() : mixed

getEspacoCabeca()

Get the value of espacoCabeca

public getEspacoCabeca() : mixed

getEstoqueIdeal()

Get the value of estoqueIdeal

public getEstoqueIdeal() : mixed

getEstoqueMinimo()

Get the value of estoqueMinimo

public getEstoqueMinimo() : mixed

getIdCategoriaProduto()

Get the value of idCategoriaProduto

public getIdCategoriaProduto() : mixed

getIdLocal()

Get the value of idLocal

public getIdLocal() : mixed

getIdPlanoConta()

Get the value of idPlanoConta

public getIdPlanoConta() : mixed

getIdPlanoConta2()

Get the value of idPlanoConta2

public getIdPlanoConta2() : mixed

getIdPlanoContaPagar()

Get the value of idPlanoContaPagar

public getIdPlanoContaPagar() : mixed

getIdProduto()

Get the value of idProduto

public getIdProduto() : mixed

getIdSubCat()

Get the value of idSubCat

public getIdSubCat() : mixed

getIdUsuario()

Get the value of idUsuario

public getIdUsuario() : mixed

getIdVariavelControle()

Get the value of idVariavelControle

public getIdVariavelControle() : mixed

getImagemProduto()

Get the value of imagemProduto

public getImagemProduto() : mixed

getInfoAdicionais()

Get the value of infoAdicionais

public getInfoAdicionais() : mixed

getMarca()

Get the value of marca

public getMarca() : mixed

getModuloCombustivel()

Get the value of moduloCombustivel

public getModuloCombustivel() : mixed

getNomeProduto()

Get the value of NomeProduto

public getNomeProduto() : mixed

getNovaClasseToxicologica()

Get the value of novaClasseToxicologica

public getNovaClasseToxicologica() : mixed

getNumeroMAPA()

Get the value of numeroMAPA

public getNumeroMAPA() : mixed

getOldcustoMedio()

Get the value of oldcustoMedio

public getOldcustoMedio() : mixed

getOldCustoUnitario()

Get the value of oldCustoUnitario

public getOldCustoUnitario() : mixed

getReentrada()

Get the value of reentrada

public getReentrada() : mixed

getSaldo()

Get the value of saldo

public getSaldo() : mixed

getSaldoReservado()

Get the value of saldoReservado

public getSaldoReservado() : mixed

getStatus()

Get the value of status

public getStatus() : mixed

getStatusCustoErro()

Get the value of statusCustoErro

public getStatusCustoErro() : mixed

getStatusLote()

Get the value of statusLote

public getStatusLote() : mixed

getStatusLoteCompra()

Get the value of statusLoteCompra

public getStatusLoteCompra() : mixed

getTable()

public getTable() : mixed

getTipoProduto()

Get the value of tipoProduto

public getTipoProduto() : mixed

getTotalAnexo()

Get the value of totalAnexo

public getTotalAnexo() : mixed

getUltimaAcao()

Get the value of ultimaAcao

public getUltimaAcao() : mixed

getUnidadeProduto()

Get the value of UnidadeProduto

public getUnidadeProduto() : mixed

getUsoProibido()

Get the value of usoProibido

public getUsoProibido() : mixed

getVariedadeProduto()

Get the value of variedadeProduto

public getVariedadeProduto() : mixed

getVariedadeProduto2()

Get the value of variedadeProduto2

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

setCarencia()

Set the value of carencia

public setCarencia(mixed $carencia) : self
Parameters
$carencia : mixed
Return values
self

setClasseToxicologica()

Set the value of classeToxicologica

public setClasseToxicologica(mixed $classeToxicologica) : self
Parameters
$classeToxicologica : mixed
Return values
self

setCodigoBarras()

Set the value of codigoBarras

public setCodigoBarras(mixed $codigoBarras) : self
Parameters
$codigoBarras : mixed
Return values
self

setCodigoProduto()

Set the value of codigoProduto

public setCodigoProduto(mixed $codigoProduto) : self
Parameters
$codigoProduto : mixed
Return values
self

setCodProdANP()

Set the value of codProdANP

public setCodProdANP(mixed $codProdANP) : self
Parameters
$codProdANP : mixed
Return values
self

setControleEstoque()

Set the value of controleEstoque

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

setCustoMedioProduto()

Set the value of custoMedioProduto

public setCustoMedioProduto(mixed $custoMedioProduto) : self
Parameters
$custoMedioProduto : mixed
Return values
self

setCustoUnitarioProduto()

Set the value of custoUnitarioProduto

public setCustoUnitarioProduto(mixed $custoUnitarioProduto) : self
Parameters
$custoUnitarioProduto : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setDepDestino()

Set the value of depDestino

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

setDepOrigem()

Set the value of depOrigem

public setDepOrigem(mixed $depOrigem) : self
Parameters
$depOrigem : mixed
Return values
self

setDescProdANP()

Set the value of descProdANP

public setDescProdANP(mixed $descProdANP) : self
Parameters
$descProdANP : mixed
Return values
self

setDescricaoCurta()

Set the value of DescricaoCurta

public setDescricaoCurta(mixed $DescricaoCurta) : self
Parameters
$DescricaoCurta : mixed
Return values
self

setEspacoCabeca()

Set the value of espacoCabeca

public setEspacoCabeca(mixed $espacoCabeca) : self
Parameters
$espacoCabeca : mixed
Return values
self

setEstoqueIdeal()

Set the value of estoqueIdeal

public setEstoqueIdeal(mixed $estoqueIdeal) : self
Parameters
$estoqueIdeal : mixed
Return values
self

setEstoqueMinimo()

Set the value of estoqueMinimo

public setEstoqueMinimo(mixed $estoqueMinimo) : self
Parameters
$estoqueMinimo : mixed
Return values
self

setIdCategoriaProduto()

Set the value of idCategoriaProduto

public setIdCategoriaProduto(mixed $idCategoriaProduto) : self
Parameters
$idCategoriaProduto : mixed
Return values
self

setIdLocal()

Set the value of idLocal

public setIdLocal(mixed $idLocal) : self
Parameters
$idLocal : mixed
Return values
self

setIdPlanoConta()

Set the value of idPlanoConta

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

setIdPlanoConta2()

Set the value of idPlanoConta2

public setIdPlanoConta2(mixed $idPlanoConta2) : self
Parameters
$idPlanoConta2 : mixed
Return values
self

setIdPlanoContaPagar()

Set the value of idPlanoContaPagar

public setIdPlanoContaPagar(mixed $idPlanoContaPagar) : self
Parameters
$idPlanoContaPagar : mixed
Return values
self

setIdProduto()

Set the value of idProduto

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

setIdSubCat()

Set the value of idSubCat

public setIdSubCat(mixed $idSubCat) : self
Parameters
$idSubCat : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setIdVariavelControle()

Set the value of idVariavelControle

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

setImagemProduto()

Set the value of imagemProduto

public setImagemProduto(mixed $imagemProduto) : self
Parameters
$imagemProduto : mixed
Return values
self

setInfoAdicionais()

Set the value of infoAdicionais

public setInfoAdicionais(mixed $infoAdicionais) : self
Parameters
$infoAdicionais : mixed
Return values
self

setMarca()

Set the value of marca

public setMarca(mixed $marca) : self
Parameters
$marca : mixed
Return values
self

setModuloCombustivel()

Set the value of moduloCombustivel

public setModuloCombustivel(mixed $moduloCombustivel) : self
Parameters
$moduloCombustivel : mixed
Return values
self

setNcm()

Set the value of ncm

public setNcm(mixed $ncm) : self
Parameters
$ncm : mixed
Return values
self

setNomeProduto()

Set the value of NomeProduto

public setNomeProduto(mixed $NomeProduto) : self
Parameters
$NomeProduto : mixed
Return values
self

setNovaClasseToxicologica()

Set the value of novaClasseToxicologica

public setNovaClasseToxicologica(mixed $novaClasseToxicologica) : self
Parameters
$novaClasseToxicologica : mixed
Return values
self

setNumeroMAPA()

Set the value of numeroMAPA

public setNumeroMAPA(mixed $numeroMAPA) : self
Parameters
$numeroMAPA : mixed
Return values
self

setOldcustoMedio()

Set the value of oldcustoMedio

public setOldcustoMedio(mixed $oldcustoMedio) : self
Parameters
$oldcustoMedio : mixed
Return values
self

setOldCustoUnitario()

Set the value of oldCustoUnitario

public setOldCustoUnitario(mixed $oldCustoUnitario) : self
Parameters
$oldCustoUnitario : mixed
Return values
self

setReentrada()

Set the value of reentrada

public setReentrada(mixed $reentrada) : self
Parameters
$reentrada : mixed
Return values
self

setSaldo()

Set the value of saldo

public setSaldo(mixed $saldo) : self
Parameters
$saldo : mixed
Return values
self

setSaldoReservado()

Set the value of saldoReservado

public setSaldoReservado(mixed $saldoReservado) : self
Parameters
$saldoReservado : mixed
Return values
self

setStatus()

Set the value of status

public setStatus(mixed $status) : self
Parameters
$status : mixed
Return values
self

setStatusCustoErro()

Set the value of statusCustoErro

public setStatusCustoErro(mixed $statusCustoErro) : self
Parameters
$statusCustoErro : mixed
Return values
self

setStatusLote()

Set the value of statusLote

public setStatusLote(mixed $statusLote) : self
Parameters
$statusLote : mixed
Return values
self

setStatusLoteCompra()

Set the value of statusLoteCompra

public setStatusLoteCompra(mixed $statusLoteCompra) : self
Parameters
$statusLoteCompra : mixed
Return values
self

setTipoProduto()

Set the value of tipoProduto

public setTipoProduto(mixed $tipoProduto) : self
Parameters
$tipoProduto : mixed
Return values
self

setTotalAnexo()

Set the value of totalAnexo

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

setUltimaAcao()

Set the value of ultimaAcao

public setUltimaAcao(mixed $ultimaAcao) : self
Parameters
$ultimaAcao : mixed
Return values
self

setUnidadeProduto()

Set the value of UnidadeProduto

public setUnidadeProduto(mixed $UnidadeProduto) : self
Parameters
$UnidadeProduto : mixed
Return values
self

setUsoProibido()

Set the value of usoProibido

public setUsoProibido(mixed $usoProibido) : self
Parameters
$usoProibido : mixed
Return values
self

setVariedadeProduto()

Set the value of variedadeProduto

public setVariedadeProduto(mixed $variedadeProduto) : self
Parameters
$variedadeProduto : mixed
Return values
self

setVariedadeProduto2()

Set the value of variedadeProduto2

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