Documentation

RendimentoEntity 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  = 'finan_rendimento'
pk_field  = 'idRendimento'
sanitize  = []
Estrutura = ['key' => 'rule']
security  = ['update' => 'src\models\RendimentoSecurity::securityUpdate']
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
tracking  = true
validations  = [ 'data' => ['required' => 'O campo Data Abertura Aplicação é requerido.', 'date' => 'O campo Data Abertura Aplicação não tem data válida.', 'varificaDataAtual' => 'A Data Abertura Aplicação não pode ser maior que a data atual.'], 'idEntidade' => ['required' => 'O campo Entidade Contratada é requerido.'], 'idEntidadeContratada' => ['required' => 'O campo Fornecedor é requerido.'], 'idContaBancaria' => ['required' => 'O campo Conta Bancária é requerido.'], 'idTipoRendimento' => ['required' => 'O campo Tipo de Rendimento é requerido.'], 'idPlanoConta' => ['required' => 'O campo Conta RendimentoPositivo é requerido.'], 'idPlanoContaJurosNeg' => ['required' => 'O campo Conta Rendimento Negativo é requerido.'], 'idUnidadeNegocio' => ['required' => 'O campo Unidade Negocio é requerido.'], 'prazoCarencia' => ['required' => 'O campo Prazo Carência (Dias) é requerido.'], //'participaCDI' => ['required' => 'O campo DI Rendimento é requerido.'], 'taxaAdministracao' => ['required' => 'O campo Taxa de Administração é requerido.'], 'jurosRentabilidade' => ['required' => 'O campo Juros Mensal Projetado é requerido.'], 'descricaoRendimento' => ['required' => 'O campo Descrição Rendimento é requerido.'], ]
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$data  : mixed
$dataFinalResgate  : mixed
$dataHora  : mixed
$descricaoRendimento  : mixed
$idContaBancaria  : mixed
$idEntidade  : mixed
$idEntidadeContratada  : mixed
$idFazenda  : mixed
$idNegocio  : mixed
$idPlanoConta  : mixed
$idPlanoContaJurosNeg  : mixed
$idRendimento  : mixed
$idTipoRendimento  : mixed
$idUnidadeNegocio  : mixed
$idUsuario  : mixed
$jurosRentabilidade  : mixed
$prazoCarencia  : mixed
$saldoAtual  : mixed
$saldoInicial  : mixed
$status  : mixed
$statusFluxoCaixa  : mixed
$statusImobilizado  : mixed
$taxaAdministracao  : mixed
$totalAnexo  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAuditlog()  : mixed
getConst()  : mixed
getConstObj()  : mixed
getData()  : mixed
Get the value of data
getDatabase()  : mixed
getDataFinalResgate()  : mixed
Get the value of dataFinalResgate
getDataHora()  : mixed
Get the value of dataHora
getDBDriver()  : mixed
getDBTable()  : mixed
getDescricaoRendimento()  : mixed
Get the value of descricaoRendimento
getIdContaBancaria()  : mixed
Get the value of idContaBancaria
getIdEntidade()  : mixed
Get the value of idEntidade
getIdEntidadeContratada()  : mixed
Get the value of idEntidadeContratada
getIdFazenda()  : mixed
Get the value of idFazenda
getIdNegocio()  : mixed
Get the value of idNegocio
getIdPlanoConta()  : mixed
Get the value of idPlanoConta
getIdPlanoContaJurosNeg()  : mixed
Get the value of idPlanoContaJurosNeg
getIdRendimento()  : mixed
Get the value of idRendimento
getIdTipoRendimento()  : mixed
Get the value of idTipoRendimento
getIdUnidadeNegocio()  : mixed
Get the value of idUnidadeNegocio
getIdUsuario()  : mixed
Get the value of idUsuario
getJurosRentabilidade()  : mixed
Get the value of jurosRentabilidade
getParticipaCDI()  : mixed
Get the value of participaCDI
getPrazoCarencia()  : mixed
Get the value of prazoCarencia
getSaldoAtual()  : mixed
Get the value of saldoAtual
getSaldoInicial()  : mixed
Get the value of saldoInicial
getStatus()  : mixed
Get the value of status
getStatusFluxoCaixa()  : mixed
Get the value of statusFluxoCaixa
getStatusImobilizado()  : mixed
Get the value of statusImobilizado
getTable()  : mixed
getTaxaAdministracao()  : mixed
Get the value of taxaAdministracao
getTotalAnexo()  : mixed
Get the value of totalAnexo
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
setDataFinalResgate()  : self
Set the value of dataFinalResgate
setDataHora()  : self
Set the value of dataHora
setDescricaoRendimento()  : self
Set the value of descricaoRendimento
setIdContaBancaria()  : self
Set the value of idContaBancaria
setIdEntidade()  : self
Set the value of idEntidade
setIdEntidadeContratada()  : self
Set the value of idEntidadeContratada
setIdFazenda()  : self
Set the value of idFazenda
setIdNegocio()  : self
Set the value of idNegocio
setIdPlanoConta()  : self
Set the value of idPlanoConta
setIdPlanoContaJurosNeg()  : self
Set the value of idPlanoContaJurosNeg
setIdRendimento()  : self
Set the value of idRendimento
setIdTipoRendimento()  : self
Set the value of idTipoRendimento
setIdUnidadeNegocio()  : self
Set the value of idUnidadeNegocio
setIdUsuario()  : self
Set the value of idUsuario
setJurosRentabilidade()  : self
Set the value of jurosRentabilidade
setParticipaCDI()  : self
Set the value of participaCDI
setPrazoCarencia()  : self
Set the value of prazoCarencia
setSaldoAtual()  : self
Set the value of saldoAtual
setSaldoInicial()  : self
Set the value of saldoInicial
setStatus()  : self
Set the value of status
setStatusFluxoCaixa()  : self
Set the value of statusFluxoCaixa
setStatusImobilizado()  : self
Set the value of statusImobilizado
setTaxaAdministracao()  : self
Set the value of taxaAdministracao
setTotalAnexo()  : self
Set the value of totalAnexo
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

security

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

public mixed security = ['update' => 'src\models\RendimentoSecurity::securityUpdate']

validations

Estrutura = ['key' => ['keyRule' => 'Rule message']]

public mixed validations = [ 'data' => ['required' => 'O campo Data Abertura Aplicação é requerido.', 'date' => 'O campo Data Abertura Aplicação não tem data válida.', 'varificaDataAtual' => 'A Data Abertura Aplicação não pode ser maior que a data atual.'], 'idEntidade' => ['required' => 'O campo Entidade Contratada é requerido.'], 'idEntidadeContratada' => ['required' => 'O campo Fornecedor é requerido.'], 'idContaBancaria' => ['required' => 'O campo Conta Bancária é requerido.'], 'idTipoRendimento' => ['required' => 'O campo Tipo de Rendimento é requerido.'], 'idPlanoConta' => ['required' => 'O campo Conta RendimentoPositivo é requerido.'], 'idPlanoContaJurosNeg' => ['required' => 'O campo Conta Rendimento Negativo é requerido.'], 'idUnidadeNegocio' => ['required' => 'O campo Unidade Negocio é requerido.'], 'prazoCarencia' => ['required' => 'O campo Prazo Carência (Dias) é requerido.'], //'participaCDI' => ['required' => 'O campo DI Rendimento é requerido.'], 'taxaAdministracao' => ['required' => 'O campo Taxa de Administração é requerido.'], 'jurosRentabilidade' => ['required' => 'O campo Juros Mensal Projetado é requerido.'], 'descricaoRendimento' => ['required' => 'O campo Descrição Rendimento é requerido.'], ]

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

getDataFinalResgate()

Get the value of dataFinalResgate

public getDataFinalResgate() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getDescricaoRendimento()

Get the value of descricaoRendimento

public getDescricaoRendimento() : mixed

getIdContaBancaria()

Get the value of idContaBancaria

public getIdContaBancaria() : mixed

getIdEntidade()

Get the value of idEntidade

public getIdEntidade() : mixed

getIdEntidadeContratada()

Get the value of idEntidadeContratada

public getIdEntidadeContratada() : mixed

getIdFazenda()

Get the value of idFazenda

public getIdFazenda() : mixed

getIdNegocio()

Get the value of idNegocio

public getIdNegocio() : mixed

getIdPlanoConta()

Get the value of idPlanoConta

public getIdPlanoConta() : mixed

getIdPlanoContaJurosNeg()

Get the value of idPlanoContaJurosNeg

public getIdPlanoContaJurosNeg() : mixed

getIdRendimento()

Get the value of idRendimento

public getIdRendimento() : mixed

getIdTipoRendimento()

Get the value of idTipoRendimento

public getIdTipoRendimento() : mixed

getIdUnidadeNegocio()

Get the value of idUnidadeNegocio

public getIdUnidadeNegocio() : mixed

getIdUsuario()

Get the value of idUsuario

public getIdUsuario() : mixed

getJurosRentabilidade()

Get the value of jurosRentabilidade

public getJurosRentabilidade() : mixed

getParticipaCDI()

Get the value of participaCDI

public getParticipaCDI() : mixed

getPrazoCarencia()

Get the value of prazoCarencia

public getPrazoCarencia() : mixed

getSaldoAtual()

Get the value of saldoAtual

public getSaldoAtual() : mixed

getSaldoInicial()

Get the value of saldoInicial

public getSaldoInicial() : mixed

getStatusFluxoCaixa()

Get the value of statusFluxoCaixa

public getStatusFluxoCaixa() : mixed

getStatusImobilizado()

Get the value of statusImobilizado

public getStatusImobilizado() : mixed

getTable()

public getTable() : mixed

getTaxaAdministracao()

Get the value of taxaAdministracao

public getTaxaAdministracao() : mixed

getTotalAnexo()

Get the value of totalAnexo

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

setData()

Set the value of data

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

setDataFinalResgate()

Set the value of dataFinalResgate

public setDataFinalResgate(mixed $dataFinalResgate) : self
Parameters
$dataFinalResgate : mixed
Return values
self

setDataHora()

Set the value of dataHora

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

setDescricaoRendimento()

Set the value of descricaoRendimento

public setDescricaoRendimento(mixed $descricaoRendimento) : self
Parameters
$descricaoRendimento : mixed
Return values
self

setIdContaBancaria()

Set the value of idContaBancaria

public setIdContaBancaria(mixed $idContaBancaria) : self
Parameters
$idContaBancaria : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

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

setIdEntidadeContratada()

Set the value of idEntidadeContratada

public setIdEntidadeContratada(mixed $idEntidadeContratada) : self
Parameters
$idEntidadeContratada : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

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

setIdNegocio()

Set the value of idNegocio

public setIdNegocio(mixed $idNegocio) : self
Parameters
$idNegocio : mixed
Return values
self

setIdPlanoConta()

Set the value of idPlanoConta

public setIdPlanoConta(mixed $idPlanoConta) : self
Parameters
$idPlanoConta : mixed
Return values
self

setIdPlanoContaJurosNeg()

Set the value of idPlanoContaJurosNeg

public setIdPlanoContaJurosNeg(mixed $idPlanoContaJurosNeg) : self
Parameters
$idPlanoContaJurosNeg : mixed
Return values
self

setIdRendimento()

Set the value of idRendimento

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

setIdTipoRendimento()

Set the value of idTipoRendimento

public setIdTipoRendimento(mixed $idTipoRendimento) : self
Parameters
$idTipoRendimento : mixed
Return values
self

setIdUnidadeNegocio()

Set the value of idUnidadeNegocio

public setIdUnidadeNegocio(mixed $idUnidadeNegocio) : self
Parameters
$idUnidadeNegocio : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setJurosRentabilidade()

Set the value of jurosRentabilidade

public setJurosRentabilidade(mixed $jurosRentabilidade) : self
Parameters
$jurosRentabilidade : mixed
Return values
self

setParticipaCDI()

Set the value of participaCDI

public setParticipaCDI(mixed $participaCDI) : self
Parameters
$participaCDI : mixed
Return values
self

setPrazoCarencia()

Set the value of prazoCarencia

public setPrazoCarencia(mixed $prazoCarencia) : self
Parameters
$prazoCarencia : mixed
Return values
self

setSaldoAtual()

Set the value of saldoAtual

public setSaldoAtual(mixed $saldoAtual) : self
Parameters
$saldoAtual : mixed
Return values
self

setSaldoInicial()

Set the value of saldoInicial

public setSaldoInicial(mixed $saldoInicial) : self
Parameters
$saldoInicial : mixed
Return values
self

setStatus()

Set the value of status

public setStatus(mixed $status) : self
Parameters
$status : mixed
Return values
self

setStatusFluxoCaixa()

Set the value of statusFluxoCaixa

public setStatusFluxoCaixa(mixed $statusFluxoCaixa) : self
Parameters
$statusFluxoCaixa : mixed
Return values
self

setStatusImobilizado()

Set the value of statusImobilizado

public setStatusImobilizado(mixed $statusImobilizado) : self
Parameters
$statusImobilizado : mixed
Return values
self

setTaxaAdministracao()

Set the value of taxaAdministracao

public setTaxaAdministracao(mixed $taxaAdministracao) : self
Parameters
$taxaAdministracao : mixed
Return values
self

setTotalAnexo()

Set the value of totalAnexo

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