CadProdutoEntradaEntregaEntity
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_entrega'
- pk_field = 'idEntradaEntrega'
- sanitize = []
- security = ['select' => 'core\EntitySecurity::securitySelect', 'delete' => 'core\EntitySecurity::securityDelete', 'update' => 'core\EntitySecurity::securityUpdate', 'insert' => 'core\EntitySecurity::securityInsert']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ["idEntidade" => ['required' => 'O campo Responsável é obrigatório.'], "idDeposito" => ['required' => 'O campo Depósito de Destino é obrigatório.'], "data" => ['required' => 'O campo Data da Entrega é obrigatório.'], "numeroNota" => ['required' => 'O campo Número Nota Entrega é obrigatório.'], "dataPrevista" => ['required' => 'O campo Data Prevista da Entrega é obrigatório.'], "chaveAcesso" => ['required' => 'O campo Chave Acesso Entrega é obrigatório.']]
Properties
- $chaveAcesso : mixed
- $danfe : mixed
- $data : mixed
- $DataHora : mixed
- $dataPrevista : mixed
- $idContasPagar : mixed
- $idContasPagarItem : mixed
- $idDeposito : mixed
- $idEntidade : mixed
- $idEntidadeFornecedor : mixed
- $idEntidadeMotorista : mixed
- $idEntidadeProprietarioVeiculo : mixed
- $idEntrada : mixed
- $idEntradaEntrega : mixed
- $idUsuario : mixed
- $numeroNota : mixed
- $obs : mixed
- $placaVeiculo : mixed
- $qtidadeTotal : mixed
- $valorFrete : mixed
- $valorTotal : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getChaveAcesso() : mixed
- Get the value of chaveAcesso
- getConst() : mixed
- getConstObj() : mixed
- getDanfe() : mixed
- Get the value of danfe
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDataPrevista() : mixed
- Get the value of dataPrevista
- getDBDriver() : mixed
- getDBTable() : mixed
- getIdContasPagar() : mixed
- Get the value of idContasPagar
- getIdContasPagarItem() : mixed
- Get the value of idContasPagarItem
- getIdDeposito() : mixed
- Get the value of idDeposito
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdEntidadeFornecedor() : mixed
- Get the value of idEntidadeFornecedor
- getIdEntidadeMotorista() : mixed
- Get the value of idEntidadeMotorista
- getIdEntidadeProprietarioVeiculo() : mixed
- Get the value of idEntidadeProprietarioVeiculo
- getIdEntrada() : mixed
- Get the value of idEntrada
- getIdEntradaEntrega() : mixed
- Get the value of idEntradaEntrega
- getIdUsuario() : mixed
- Get the value of idUsuario
- getNumeroNota() : mixed
- Get the value of numeroNota
- getObs() : mixed
- Get the value of obs
- getPlacaVeiculo() : mixed
- Get the value of placaVeiculo
- getQtidadeTotal() : mixed
- Get the value of qtidadeTotal
- getTable() : mixed
- getValorFrete() : mixed
- Get the value of valorFrete
- getValorTotal() : mixed
- Get the value of valorTotal
- 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
- setChaveAcesso() : self
- Set the value of chaveAcesso
- setDanfe() : self
- Set the value of danfe
- setData() : self
- Set the value of data
- setDataHora() : self
- Set the value of DataHora
- setDataPrevista() : self
- Set the value of dataPrevista
- setIdContasPagar() : self
- Set the value of idContasPagar
- setIdContasPagarItem() : self
- Set the value of idContasPagarItem
- setIdDeposito() : self
- Set the value of idDeposito
- setIdEntidade() : self
- Set the value of idEntidade
- setIdEntidadeFornecedor() : self
- Set the value of idEntidadeFornecedor
- setIdEntidadeMotorista() : self
- Set the value of idEntidadeMotorista
- setIdEntidadeProprietarioVeiculo() : self
- Set the value of idEntidadeProprietarioVeiculo
- setIdEntrada() : self
- Set the value of idEntrada
- setIdEntradaEntrega() : self
- Set the value of idEntradaEntrega
- setIdUsuario() : self
- Set the value of idUsuario
- setNumeroNota() : self
- Set the value of numeroNota
- setObs() : self
- Set the value of obs
- setPlacaVeiculo() : self
- Set the value of placaVeiculo
- setQtidadeTotal() : self
- Set the value of qtidadeTotal
- setValorFrete() : self
- Set the value of valorFrete
- setValorTotal() : self
- Set the value of valorTotal
- 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_entrega'
pk_field
public
mixed
pk_field
= 'idEntradaEntrega'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['select' => 'core\EntitySecurity::securitySelect', 'delete' => 'core\EntitySecurity::securityDelete', 'update' => 'core\EntitySecurity::securityUpdate', 'insert' => 'core\EntitySecurity::securityInsert']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= ["idEntidade" => ['required' => 'O campo Responsável é obrigatório.'], "idDeposito" => ['required' => 'O campo Depósito de Destino é obrigatório.'], "data" => ['required' => 'O campo Data da Entrega é obrigatório.'], "numeroNota" => ['required' => 'O campo Número Nota Entrega é obrigatório.'], "dataPrevista" => ['required' => 'O campo Data Prevista da Entrega é obrigatório.'], "chaveAcesso" => ['required' => 'O campo Chave Acesso Entrega é obrigatório.']]
Properties
$chaveAcesso
private
mixed
$chaveAcesso
$danfe
private
mixed
$danfe
$data
private
mixed
$data
$DataHora
private
mixed
$DataHora
$dataPrevista
private
mixed
$dataPrevista
$idContasPagar
private
mixed
$idContasPagar
$idContasPagarItem
private
mixed
$idContasPagarItem
$idDeposito
private
mixed
$idDeposito
$idEntidade
private
mixed
$idEntidade
$idEntidadeFornecedor
private
mixed
$idEntidadeFornecedor
$idEntidadeMotorista
private
mixed
$idEntidadeMotorista
$idEntidadeProprietarioVeiculo
private
mixed
$idEntidadeProprietarioVeiculo
$idEntrada
private
mixed
$idEntrada
$idEntradaEntrega
private
mixed
$idEntradaEntrega
$idUsuario
private
mixed
$idUsuario
$numeroNota
private
mixed
$numeroNota
$obs
private
mixed
$obs
$placaVeiculo
private
mixed
$placaVeiculo
$qtidadeTotal
private
mixed
$qtidadeTotal
$valorFrete
private
mixed
$valorFrete
$valorTotal
private
mixed
$valorTotal
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
getChaveAcesso()
Get the value of chaveAcesso
public
getChaveAcesso() : 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
getDanfe()
Get the value of danfe
public
getDanfe() : mixed
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDataPrevista()
Get the value of dataPrevista
public
getDataPrevista() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getIdContasPagar()
Get the value of idContasPagar
public
getIdContasPagar() : mixed
getIdContasPagarItem()
Get the value of idContasPagarItem
public
getIdContasPagarItem() : mixed
getIdDeposito()
Get the value of idDeposito
public
getIdDeposito() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntidadeFornecedor()
Get the value of idEntidadeFornecedor
public
getIdEntidadeFornecedor() : mixed
getIdEntidadeMotorista()
Get the value of idEntidadeMotorista
public
getIdEntidadeMotorista() : mixed
getIdEntidadeProprietarioVeiculo()
Get the value of idEntidadeProprietarioVeiculo
public
getIdEntidadeProprietarioVeiculo() : mixed
getIdEntrada()
Get the value of idEntrada
public
getIdEntrada() : mixed
getIdEntradaEntrega()
Get the value of idEntradaEntrega
public
getIdEntradaEntrega() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getNumeroNota()
Get the value of numeroNota
public
getNumeroNota() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getPlacaVeiculo()
Get the value of placaVeiculo
public
getPlacaVeiculo() : mixed
getQtidadeTotal()
Get the value of qtidadeTotal
public
getQtidadeTotal() : mixed
getTable()
public
getTable() : mixed
getValorFrete()
Get the value of valorFrete
public
getValorFrete() : mixed
getValorTotal()
Get the value of valorTotal
public
getValorTotal() : 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
setChaveAcesso()
Set the value of chaveAcesso
public
setChaveAcesso(mixed $chaveAcesso) : self
Parameters
- $chaveAcesso : mixed
Return values
selfsetDanfe()
Set the value of danfe
public
setDanfe(mixed $danfe) : self
Parameters
- $danfe : mixed
Return values
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDataPrevista()
Set the value of dataPrevista
public
setDataPrevista(mixed $dataPrevista) : self
Parameters
- $dataPrevista : mixed
Return values
selfsetIdContasPagar()
Set the value of idContasPagar
public
setIdContasPagar(mixed $idContasPagar) : self
Parameters
- $idContasPagar : mixed
Return values
selfsetIdContasPagarItem()
Set the value of idContasPagarItem
public
setIdContasPagarItem(mixed $idContasPagarItem) : self
Parameters
- $idContasPagarItem : mixed
Return values
selfsetIdDeposito()
Set the value of idDeposito
public
setIdDeposito(mixed $idDeposito) : self
Parameters
- $idDeposito : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEntidadeFornecedor()
Set the value of idEntidadeFornecedor
public
setIdEntidadeFornecedor(mixed $idEntidadeFornecedor) : self
Parameters
- $idEntidadeFornecedor : mixed
Return values
selfsetIdEntidadeMotorista()
Set the value of idEntidadeMotorista
public
setIdEntidadeMotorista(mixed $idEntidadeMotorista) : self
Parameters
- $idEntidadeMotorista : mixed
Return values
selfsetIdEntidadeProprietarioVeiculo()
Set the value of idEntidadeProprietarioVeiculo
public
setIdEntidadeProprietarioVeiculo(mixed $idEntidadeProprietarioVeiculo) : self
Parameters
- $idEntidadeProprietarioVeiculo : mixed
Return values
selfsetIdEntrada()
Set the value of idEntrada
public
setIdEntrada(mixed $idEntrada) : self
Parameters
- $idEntrada : mixed
Return values
selfsetIdEntradaEntrega()
Set the value of idEntradaEntrega
public
setIdEntradaEntrega(mixed $idEntradaEntrega) : self
Parameters
- $idEntradaEntrega : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetNumeroNota()
Set the value of numeroNota
public
setNumeroNota(mixed $numeroNota) : self
Parameters
- $numeroNota : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetPlacaVeiculo()
Set the value of placaVeiculo
public
setPlacaVeiculo(mixed $placaVeiculo) : self
Parameters
- $placaVeiculo : mixed
Return values
selfsetQtidadeTotal()
Set the value of qtidadeTotal
public
setQtidadeTotal(mixed $qtidadeTotal) : self
Parameters
- $qtidadeTotal : mixed
Return values
selfsetValorFrete()
Set the value of valorFrete
public
setValorFrete(mixed $valorFrete) : self
Parameters
- $valorFrete : mixed
Return values
selfsetValorTotal()
Set the value of valorTotal
public
setValorTotal(mixed $valorTotal) : self
Parameters
- $valorTotal : 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 = '*'