Documentation

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

const_values

public mixed const_values = []

database

public mixed database = \config\Config::DB_DEFAULT

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']

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

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

getIdEntidadeProprietarioVeiculo()

Get the value of idEntidadeProprietarioVeiculo

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

setChaveAcesso()

Set the value of chaveAcesso

public setChaveAcesso(mixed $chaveAcesso) : self
Parameters
$chaveAcesso : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setDataPrevista()

Set the value of dataPrevista

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

setIdContasPagar()

Set the value of idContasPagar

public setIdContasPagar(mixed $idContasPagar) : self
Parameters
$idContasPagar : mixed
Return values
self

setIdContasPagarItem()

Set the value of idContasPagarItem

public setIdContasPagarItem(mixed $idContasPagarItem) : self
Parameters
$idContasPagarItem : mixed
Return values
self

setIdDeposito()

Set the value of idDeposito

public setIdDeposito(mixed $idDeposito) : self
Parameters
$idDeposito : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

public setIdEntidade(mixed $idEntidade) : self
Parameters
$idEntidade : mixed
Return values
self

setIdEntidadeFornecedor()

Set the value of idEntidadeFornecedor

public setIdEntidadeFornecedor(mixed $idEntidadeFornecedor) : self
Parameters
$idEntidadeFornecedor : mixed
Return values
self

setIdEntidadeMotorista()

Set the value of idEntidadeMotorista

public setIdEntidadeMotorista(mixed $idEntidadeMotorista) : self
Parameters
$idEntidadeMotorista : mixed
Return values
self

setIdEntidadeProprietarioVeiculo()

Set the value of idEntidadeProprietarioVeiculo

public setIdEntidadeProprietarioVeiculo(mixed $idEntidadeProprietarioVeiculo) : self
Parameters
$idEntidadeProprietarioVeiculo : mixed
Return values
self

setIdEntrada()

Set the value of idEntrada

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

setIdEntradaEntrega()

Set the value of idEntradaEntrega

public setIdEntradaEntrega(mixed $idEntradaEntrega) : self
Parameters
$idEntradaEntrega : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setNumeroNota()

Set the value of numeroNota

public setNumeroNota(mixed $numeroNota) : self
Parameters
$numeroNota : mixed
Return values
self

setPlacaVeiculo()

Set the value of placaVeiculo

public setPlacaVeiculo(mixed $placaVeiculo) : self
Parameters
$placaVeiculo : mixed
Return values
self

setQtidadeTotal()

Set the value of qtidadeTotal

public setQtidadeTotal(mixed $qtidadeTotal) : self
Parameters
$qtidadeTotal : mixed
Return values
self

setValorFrete()

Set the value of valorFrete

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

setValorTotal()

Set the value of valorTotal

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