CadProdutoEntradaEntregaItemEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = []
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'cad_produtos_entrada_entrega_item'
- pk_field = 'idEntradaEntregaItem'
- 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 = []
Properties
- $data : mixed
- $dataFabricacao : mixed
- $dataVecto : mixed
- $finalizar : mixed
- $idBomba : mixed
- $idDeposito : mixed
- $idEntrada : mixed
- $idEntradaEntrega : mixed
- $idEntradaEntregaItem : mixed
- $idEntradaProd : mixed
- $idProduto : mixed
- $numeroLote : mixed
- $qtidade : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataFabricacao() : mixed
- Get the value of dataFabricacao
- getDataVecto() : mixed
- Get the value of dataVecto
- getDBDriver() : mixed
- getDBTable() : mixed
- getFinalizar() : mixed
- Get the value of finalizar
- getIdBomba() : mixed
- Get the value of idBomba
- getIdDeposito() : mixed
- Get the value of idDeposito
- getIdEntrada() : mixed
- Get the value of idEntrada
- getIdEntradaEntrega() : mixed
- Get the value of idEntradaEntrega
- getIdEntradaEntregaItem() : mixed
- Get the value of idEntradaEntregaItem
- getIdEntradaProd() : mixed
- Get the value of idEntradaProd
- getIdProduto() : mixed
- Get the value of idProduto
- getNumeroLote() : mixed
- Get the value of numeroLote
- getQtidade() : mixed
- Get the value of qtidade
- getTable() : mixed
- 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
- setData() : self
- Set the value of data
- setDataFabricacao() : self
- Set the value of dataFabricacao
- setDataVecto() : self
- Set the value of dataVecto
- setFinalizar() : self
- Set the value of finalizar
- setIdBomba() : self
- Set the value of idBomba
- setIdDeposito() : self
- Set the value of idDeposito
- setIdEntrada() : self
- Set the value of idEntrada
- setIdEntradaEntrega() : self
- Set the value of idEntradaEntrega
- setIdEntradaEntregaItem() : self
- Set the value of idEntradaEntregaItem
- setIdEntradaProd() : self
- Set the value of idEntradaProd
- setIdProduto() : self
- Set the value of idProduto
- setNumeroLote() : self
- Set the value of numeroLote
- setQtidade() : self
- Set the value of qtidade
- 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
= []
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'cad_produtos_entrada_entrega_item'
pk_field
public
mixed
pk_field
= 'idEntradaEntregaItem'
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
= []
Properties
$data
private
mixed
$data
$dataFabricacao
private
mixed
$dataFabricacao
$dataVecto
private
mixed
$dataVecto
$finalizar
private
mixed
$finalizar
$idBomba
private
mixed
$idBomba
$idDeposito
private
mixed
$idDeposito
$idEntrada
private
mixed
$idEntrada
$idEntradaEntrega
private
mixed
$idEntradaEntrega
$idEntradaEntregaItem
private
mixed
$idEntradaEntregaItem
$idEntradaProd
private
mixed
$idEntradaProd
$idProduto
private
mixed
$idProduto
$numeroLote
private
mixed
$numeroLote
$qtidade
private
mixed
$qtidade
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
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataFabricacao()
Get the value of dataFabricacao
public
getDataFabricacao() : mixed
getDataVecto()
Get the value of dataVecto
public
getDataVecto() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getFinalizar()
Get the value of finalizar
public
getFinalizar() : mixed
getIdBomba()
Get the value of idBomba
public
getIdBomba() : mixed
getIdDeposito()
Get the value of idDeposito
public
getIdDeposito() : mixed
getIdEntrada()
Get the value of idEntrada
public
getIdEntrada() : mixed
getIdEntradaEntrega()
Get the value of idEntradaEntrega
public
getIdEntradaEntrega() : mixed
getIdEntradaEntregaItem()
Get the value of idEntradaEntregaItem
public
getIdEntradaEntregaItem() : mixed
getIdEntradaProd()
Get the value of idEntradaProd
public
getIdEntradaProd() : mixed
getIdProduto()
Get the value of idProduto
public
getIdProduto() : mixed
getNumeroLote()
Get the value of numeroLote
public
getNumeroLote() : mixed
getQtidade()
Get the value of qtidade
public
getQtidade() : mixed
getTable()
public
getTable() : 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
setData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataFabricacao()
Set the value of dataFabricacao
public
setDataFabricacao(mixed $dataFabricacao) : self
Parameters
- $dataFabricacao : mixed
Return values
selfsetDataVecto()
Set the value of dataVecto
public
setDataVecto(mixed $dataVecto) : self
Parameters
- $dataVecto : mixed
Return values
selfsetFinalizar()
Set the value of finalizar
public
setFinalizar(mixed $finalizar) : self
Parameters
- $finalizar : mixed
Return values
selfsetIdBomba()
Set the value of idBomba
public
setIdBomba(mixed $idBomba) : self
Parameters
- $idBomba : mixed
Return values
selfsetIdDeposito()
Set the value of idDeposito
public
setIdDeposito(mixed $idDeposito) : self
Parameters
- $idDeposito : 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
selfsetIdEntradaEntregaItem()
Set the value of idEntradaEntregaItem
public
setIdEntradaEntregaItem(mixed $idEntradaEntregaItem) : self
Parameters
- $idEntradaEntregaItem : mixed
Return values
selfsetIdEntradaProd()
Set the value of idEntradaProd
public
setIdEntradaProd(mixed $idEntradaProd) : self
Parameters
- $idEntradaProd : mixed
Return values
selfsetIdProduto()
Set the value of idProduto
public
setIdProduto(mixed $idProduto) : self
Parameters
- $idProduto : mixed
Return values
selfsetNumeroLote()
Set the value of numeroLote
public
setNumeroLote(mixed $numeroLote) : self
Parameters
- $numeroLote : mixed
Return values
selfsetQtidade()
Set the value of qtidade
public
setQtidade(mixed $qtidade) : self
Parameters
- $qtidade : 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 = '*'