DocumentoEntity
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 = 'documentos'
- pk_field = 'idDoc'
- sanitize = []
- security = ['select' => 'src\models\DocumentoSecurity::securitySelect']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = []
Properties
- $caminhoDoc : mixed
- $data : mixed
- $DataHora : mixed
- $idAtivo : mixed
- $idChequeTerceiro : mixed
- $idCompraServico : mixed
- $idContaReceber : mixed
- $idContasPagar : mixed
- $idContasPagarItem : mixed
- $idContasReceberItem : mixed
- $idCotacao : mixed
- $idDoc : mixed
- $idEntidade : mixed
- $idEntrada : mixed
- $idExeServico : mixed
- $idFazenda : mixed
- $idFinanciamento : mixed
- $idManut : mixed
- $idPagamentoCliente : mixed
- $idPagamentoFornecedor : mixed
- $idPerdaSobra : mixed
- $idProducao : mixed
- $idProduto : mixed
- $idProdutoVenda : mixed
- $idRendimento : mixed
- $idRequisicao : mixed
- $IDSYSCONAG : mixed
- $idTransfBomba : mixed
- $idTransferencia : mixed
- $idUsuario : mixed
- $nomeDoc : mixed
- $obs : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCaminhoDoc() : mixed
- Get the value of caminhoDoc
- getConst() : mixed
- getConstObj() : mixed
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getIdAtivo() : mixed
- Get the value of idAtivo
- getIdChequeTerceiro() : mixed
- Get the value of idChequeTerceiro
- getIdCompraServico() : mixed
- Get the value of idCompraServico
- getIdContaReceber() : mixed
- Get the value of idContaReceber
- getIdContasPagar() : mixed
- Get the value of idContasPagar
- getIdContasPagarItem() : mixed
- Get the value of idContasPagarItem
- getIdContasReceberItem() : mixed
- Get the value of idContasReceberItem
- getIdCotacao() : mixed
- Get the value of idCotacao
- getIdDoc() : mixed
- Get the value of idDoc
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdEntrada() : mixed
- Get the value of idEntrada
- getIdExeServico() : mixed
- Get the value of idExeServico
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdFinanciamento() : mixed
- Get the value of idFinanciamento
- getIdManut() : mixed
- Get the value of idManut
- getIdPagamentoCliente() : mixed
- Get the value of idPagamentoCliente
- getIdPagamentoFornecedor() : mixed
- Get the value of idPagamentoFornecedor
- getIdPerdaSobra() : mixed
- Get the value of idPerdaSobra
- getIdProducao() : mixed
- Get the value of idProducao
- getIdProduto() : mixed
- Get the value of idProduto
- getidProdutoVenda() : mixed
- Get the value of idProdutoVenda
- getIdRendimento() : mixed
- Get the value of idRendimento
- getIdRequisicao() : mixed
- Get the value of idRequisicao
- getIDSYSCONAG() : mixed
- Get the value of IDSYSCONAG
- getIdTransfBomba() : mixed
- Get the value of idTransfBomba
- getIdTransferencia() : mixed
- Get the value of idTransferencia
- getIdUsuario() : mixed
- Get the value of idUsuario
- getNomeDoc() : mixed
- Get the value of nomeDoc
- getObs() : mixed
- Get the value of obs
- 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
- setCaminhoDoc() : self
- Set the value of caminhoDoc
- setData() : self
- Set the value of data
- setDataHora() : self
- Set the value of DataHora
- setIdAtivo() : self
- Set the value of idAtivo
- setIdChequeTerceiro() : self
- Set the value of idChequeTerceiro
- setIdCompraServico() : self
- Set the value of idCompraServico
- setIdContaReceber() : self
- Set the value of idContaReceber
- setIdContasPagar() : self
- Set the value of idContasPagar
- setIdContasPagarItem() : self
- Set the value of idContasPagarItem
- setIdContasReceberItem() : self
- Set the value of idContasReceberItem
- setIdCotacao() : self
- Set the value of idCotacao
- setIdDoc() : self
- Set the value of idDoc
- setIdEntidade() : self
- Set the value of idEntidade
- setIdEntrada() : self
- Set the value of idEntrada
- setIdExeServico() : self
- Set the value of idExeServico
- setIdFazenda() : self
- Set the value of idFazenda
- setIdFinanciamento() : self
- Set the value of idFinanciamento
- setIdManut() : self
- Set the value of idManut
- setIdPagamentoCliente() : self
- Set the value of idPagamentoCliente
- setIdPagamentoFornecedor() : self
- Set the value of idPagamentoFornecedor
- setIdPerdaSobra() : self
- Set the value of idPerdaSobra
- setIdProducao() : self
- Set the value of idProducao
- setIdProduto() : self
- Set the value of idProduto
- setidProdutoVenda() : self
- Set the value of idProdutoVenda
- setIdRendimento() : self
- Set the value of idRendimento
- setIdRequisicao() : self
- Set the value of idRequisicao
- setIDSYSCONAG() : self
- Set the value of IDSYSCONAG
- setIdTransfBomba() : self
- Set the value of idTransfBomba
- setIdTransferencia() : self
- Set the value of idTransferencia
- setIdUsuario() : self
- Set the value of idUsuario
- setNomeDoc() : self
- Set the value of nomeDoc
- setObs() : self
- Set the value of obs
- 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
= 'documentos'
pk_field
public
mixed
pk_field
= 'idDoc'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['select' => 'src\models\DocumentoSecurity::securitySelect']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= []
Properties
$caminhoDoc
private
mixed
$caminhoDoc
$data
private
mixed
$data
$DataHora
private
mixed
$DataHora
$idAtivo
private
mixed
$idAtivo
$idChequeTerceiro
private
mixed
$idChequeTerceiro
$idCompraServico
private
mixed
$idCompraServico
$idContaReceber
private
mixed
$idContaReceber
$idContasPagar
private
mixed
$idContasPagar
$idContasPagarItem
private
mixed
$idContasPagarItem
$idContasReceberItem
private
mixed
$idContasReceberItem
$idCotacao
private
mixed
$idCotacao
$idDoc
private
mixed
$idDoc
$idEntidade
private
mixed
$idEntidade
$idEntrada
private
mixed
$idEntrada
$idExeServico
private
mixed
$idExeServico
$idFazenda
private
mixed
$idFazenda
$idFinanciamento
private
mixed
$idFinanciamento
$idManut
private
mixed
$idManut
$idPagamentoCliente
private
mixed
$idPagamentoCliente
$idPagamentoFornecedor
private
mixed
$idPagamentoFornecedor
$idPerdaSobra
private
mixed
$idPerdaSobra
$idProducao
private
mixed
$idProducao
$idProduto
private
mixed
$idProduto
$idProdutoVenda
private
mixed
$idProdutoVenda
$idRendimento
private
mixed
$idRendimento
$idRequisicao
private
mixed
$idRequisicao
$IDSYSCONAG
private
mixed
$IDSYSCONAG
$idTransfBomba
private
mixed
$idTransfBomba
$idTransferencia
private
mixed
$idTransferencia
$idUsuario
private
mixed
$idUsuario
$nomeDoc
private
mixed
$nomeDoc
$obs
private
mixed
$obs
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
getCaminhoDoc()
Get the value of caminhoDoc
public
getCaminhoDoc() : 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
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getIdAtivo()
Get the value of idAtivo
public
getIdAtivo() : mixed
getIdChequeTerceiro()
Get the value of idChequeTerceiro
public
getIdChequeTerceiro() : mixed
getIdCompraServico()
Get the value of idCompraServico
public
getIdCompraServico() : mixed
getIdContaReceber()
Get the value of idContaReceber
public
getIdContaReceber() : mixed
getIdContasPagar()
Get the value of idContasPagar
public
getIdContasPagar() : mixed
getIdContasPagarItem()
Get the value of idContasPagarItem
public
getIdContasPagarItem() : mixed
getIdContasReceberItem()
Get the value of idContasReceberItem
public
getIdContasReceberItem() : mixed
getIdCotacao()
Get the value of idCotacao
public
getIdCotacao() : mixed
getIdDoc()
Get the value of idDoc
public
getIdDoc() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntrada()
Get the value of idEntrada
public
getIdEntrada() : mixed
getIdExeServico()
Get the value of idExeServico
public
getIdExeServico() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdFinanciamento()
Get the value of idFinanciamento
public
getIdFinanciamento() : mixed
getIdManut()
Get the value of idManut
public
getIdManut() : mixed
getIdPagamentoCliente()
Get the value of idPagamentoCliente
public
getIdPagamentoCliente() : mixed
getIdPagamentoFornecedor()
Get the value of idPagamentoFornecedor
public
getIdPagamentoFornecedor() : mixed
getIdPerdaSobra()
Get the value of idPerdaSobra
public
getIdPerdaSobra() : mixed
getIdProducao()
Get the value of idProducao
public
getIdProducao() : mixed
getIdProduto()
Get the value of idProduto
public
getIdProduto() : mixed
getidProdutoVenda()
Get the value of idProdutoVenda
public
getidProdutoVenda() : mixed
getIdRendimento()
Get the value of idRendimento
public
getIdRendimento() : mixed
getIdRequisicao()
Get the value of idRequisicao
public
getIdRequisicao() : mixed
getIDSYSCONAG()
Get the value of IDSYSCONAG
public
getIDSYSCONAG() : mixed
getIdTransfBomba()
Get the value of idTransfBomba
public
getIdTransfBomba() : mixed
getIdTransferencia()
Get the value of idTransferencia
public
getIdTransferencia() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getNomeDoc()
Get the value of nomeDoc
public
getNomeDoc() : mixed
getObs()
Get the value of obs
public
getObs() : 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
setCaminhoDoc()
Set the value of caminhoDoc
public
setCaminhoDoc(mixed $caminhoDoc) : self
Parameters
- $caminhoDoc : 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
selfsetIdAtivo()
Set the value of idAtivo
public
setIdAtivo(mixed $idAtivo) : self
Parameters
- $idAtivo : mixed
Return values
selfsetIdChequeTerceiro()
Set the value of idChequeTerceiro
public
setIdChequeTerceiro(mixed $idChequeTerceiro) : self
Parameters
- $idChequeTerceiro : mixed
Return values
selfsetIdCompraServico()
Set the value of idCompraServico
public
setIdCompraServico(mixed $idCompraServico) : self
Parameters
- $idCompraServico : mixed
Return values
selfsetIdContaReceber()
Set the value of idContaReceber
public
setIdContaReceber(mixed $idContaReceber) : self
Parameters
- $idContaReceber : 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
selfsetIdContasReceberItem()
Set the value of idContasReceberItem
public
setIdContasReceberItem(mixed $idContasReceberItem) : self
Parameters
- $idContasReceberItem : mixed
Return values
selfsetIdCotacao()
Set the value of idCotacao
public
setIdCotacao(mixed $idCotacao) : self
Parameters
- $idCotacao : mixed
Return values
selfsetIdDoc()
Set the value of idDoc
public
setIdDoc(mixed $idDoc) : self
Parameters
- $idDoc : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEntrada()
Set the value of idEntrada
public
setIdEntrada(mixed $idEntrada) : self
Parameters
- $idEntrada : mixed
Return values
selfsetIdExeServico()
Set the value of idExeServico
public
setIdExeServico(mixed $idExeServico) : self
Parameters
- $idExeServico : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdFinanciamento()
Set the value of idFinanciamento
public
setIdFinanciamento(mixed $idFinanciamento) : self
Parameters
- $idFinanciamento : mixed
Return values
selfsetIdManut()
Set the value of idManut
public
setIdManut(mixed $idManut) : self
Parameters
- $idManut : mixed
Return values
selfsetIdPagamentoCliente()
Set the value of idPagamentoCliente
public
setIdPagamentoCliente(mixed $idPagamentoCliente) : self
Parameters
- $idPagamentoCliente : mixed
Return values
selfsetIdPagamentoFornecedor()
Set the value of idPagamentoFornecedor
public
setIdPagamentoFornecedor(mixed $idPagamentoFornecedor) : self
Parameters
- $idPagamentoFornecedor : mixed
Return values
selfsetIdPerdaSobra()
Set the value of idPerdaSobra
public
setIdPerdaSobra(mixed $idPerdaSobra) : self
Parameters
- $idPerdaSobra : mixed
Return values
selfsetIdProducao()
Set the value of idProducao
public
setIdProducao(mixed $idProducao) : self
Parameters
- $idProducao : mixed
Return values
selfsetIdProduto()
Set the value of idProduto
public
setIdProduto(mixed $idProduto) : self
Parameters
- $idProduto : mixed
Return values
selfsetidProdutoVenda()
Set the value of idProdutoVenda
public
setidProdutoVenda(mixed $idProdutoVenda) : self
Parameters
- $idProdutoVenda : mixed
Return values
selfsetIdRendimento()
Set the value of idRendimento
public
setIdRendimento(mixed $idRendimento) : self
Parameters
- $idRendimento : mixed
Return values
selfsetIdRequisicao()
Set the value of idRequisicao
public
setIdRequisicao(mixed $idRequisicao) : self
Parameters
- $idRequisicao : mixed
Return values
selfsetIDSYSCONAG()
Set the value of IDSYSCONAG
public
setIDSYSCONAG(mixed $IDSYSCONAG) : self
Parameters
- $IDSYSCONAG : mixed
Return values
selfsetIdTransfBomba()
Set the value of idTransfBomba
public
setIdTransfBomba(mixed $idTransfBomba) : self
Parameters
- $idTransfBomba : mixed
Return values
selfsetIdTransferencia()
Set the value of idTransferencia
public
setIdTransferencia(mixed $idTransferencia) : self
Parameters
- $idTransferencia : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetNomeDoc()
Set the value of nomeDoc
public
setNomeDoc(mixed $nomeDoc) : self
Parameters
- $nomeDoc : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : 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 = '*'