Documentation

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

sanitize

public mixed sanitize = []

security

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

public mixed security = ['select' => 'src\models\DocumentoSecurity::securitySelect']

validations

public mixed validations = []

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

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

getDatabase()

public getDatabase() : mixed

getDataHora()

Get the value of DataHora

public getDataHora() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

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

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

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

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

setCaminhoDoc()

Set the value of caminhoDoc

public setCaminhoDoc(mixed $caminhoDoc) : self
Parameters
$caminhoDoc : mixed
Return values
self

setData()

Set the value of data

public setData(mixed $data) : self
Parameters
$data : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setIdAtivo()

Set the value of idAtivo

public setIdAtivo(mixed $idAtivo) : self
Parameters
$idAtivo : mixed
Return values
self

setIdChequeTerceiro()

Set the value of idChequeTerceiro

public setIdChequeTerceiro(mixed $idChequeTerceiro) : self
Parameters
$idChequeTerceiro : mixed
Return values
self

setIdCompraServico()

Set the value of idCompraServico

public setIdCompraServico(mixed $idCompraServico) : self
Parameters
$idCompraServico : mixed
Return values
self

setIdContaReceber()

Set the value of idContaReceber

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

setIdContasReceberItem()

Set the value of idContasReceberItem

public setIdContasReceberItem(mixed $idContasReceberItem) : self
Parameters
$idContasReceberItem : mixed
Return values
self

setIdCotacao()

Set the value of idCotacao

public setIdCotacao(mixed $idCotacao) : self
Parameters
$idCotacao : mixed
Return values
self

setIdDoc()

Set the value of idDoc

public setIdDoc(mixed $idDoc) : self
Parameters
$idDoc : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

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

setIdEntrada()

Set the value of idEntrada

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

setIdExeServico()

Set the value of idExeServico

public setIdExeServico(mixed $idExeServico) : self
Parameters
$idExeServico : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

public setIdFazenda(mixed $idFazenda) : self
Parameters
$idFazenda : mixed
Return values
self

setIdFinanciamento()

Set the value of idFinanciamento

public setIdFinanciamento(mixed $idFinanciamento) : self
Parameters
$idFinanciamento : mixed
Return values
self

setIdManut()

Set the value of idManut

public setIdManut(mixed $idManut) : self
Parameters
$idManut : mixed
Return values
self

setIdPagamentoCliente()

Set the value of idPagamentoCliente

public setIdPagamentoCliente(mixed $idPagamentoCliente) : self
Parameters
$idPagamentoCliente : mixed
Return values
self

setIdPagamentoFornecedor()

Set the value of idPagamentoFornecedor

public setIdPagamentoFornecedor(mixed $idPagamentoFornecedor) : self
Parameters
$idPagamentoFornecedor : mixed
Return values
self

setIdPerdaSobra()

Set the value of idPerdaSobra

public setIdPerdaSobra(mixed $idPerdaSobra) : self
Parameters
$idPerdaSobra : mixed
Return values
self

setIdProducao()

Set the value of idProducao

public setIdProducao(mixed $idProducao) : self
Parameters
$idProducao : mixed
Return values
self

setIdProduto()

Set the value of idProduto

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

setidProdutoVenda()

Set the value of idProdutoVenda

public setidProdutoVenda(mixed $idProdutoVenda) : self
Parameters
$idProdutoVenda : mixed
Return values
self

setIdRendimento()

Set the value of idRendimento

public setIdRendimento(mixed $idRendimento) : self
Parameters
$idRendimento : mixed
Return values
self

setIdRequisicao()

Set the value of idRequisicao

public setIdRequisicao(mixed $idRequisicao) : self
Parameters
$idRequisicao : mixed
Return values
self

setIDSYSCONAG()

Set the value of IDSYSCONAG

public setIDSYSCONAG(mixed $IDSYSCONAG) : self
Parameters
$IDSYSCONAG : mixed
Return values
self

setIdTransfBomba()

Set the value of idTransfBomba

public setIdTransfBomba(mixed $idTransfBomba) : self
Parameters
$idTransfBomba : mixed
Return values
self

setIdTransferencia()

Set the value of idTransferencia

public setIdTransferencia(mixed $idTransferencia) : self
Parameters
$idTransferencia : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setNomeDoc()

Set the value of nomeDoc

public setNomeDoc(mixed $nomeDoc) : self
Parameters
$nomeDoc : mixed
Return values
self

setObs()

Set the value of obs

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