PlanoContaAgendaEntity
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_planocontas_agenda'
- pk_field = 'idPlanoContaAgenda'
- sanitize = []
- Estrutura = ['key' => 'rule']
- 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 = ['idPlanoConta' => ['required' => 'O campo Plano de Conta é obrigatório.'], 'idUnidadeNegocio' => ['required' => 'O campo Unidade de Negócio é obrigatório.'], 'valor' => ['required' => 'O campo Valor é obrigatório.'], 'descricao' => ['required' => 'O campo Descrição é obrigatório.'], 'parcela' => ['required' => 'O campo Parcela é obrigatório.'], 'diaVencimento' => ['required' => 'O campo Dia do Vencimento é obrigatório.'], 'prazoDias' => ['required' => 'O campo Prazo Lançamento (dias) é obrigatório.'], 'idTipoPagamento' => ['required' => 'O campo Forma Pagamento é obrigatório.']]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $DataHora : mixed
- $descricao : mixed
- $diaVencimento : mixed
- $idContaBancaria : mixed
- $idDepartamento : mixed
- $idEntidade : mixed
- $idEntidadeBanco : mixed
- $idFazenda : mixed
- $idNegocio : mixed
- $idPlanoConta : mixed
- $idPlanoContaAgenda : mixed
- $idTipoPagamento : mixed
- $idUnidadeNegocio : mixed
- $idUsuario : mixed
- $idVariavelControle : mixed
- $limiteValor : mixed
- $mesVencimento : mixed
- $parcela : mixed
- $prazoDias : mixed
- $statusPrevisao : mixed
- $valor : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getDescricao() : mixed
- Get the value of descricao
- getDiaVencimento() : mixed
- Get the value of diaVencimento
- getIdContaBancaria() : mixed
- Get the value of idContaBancaria
- getIdDepartamento() : mixed
- Get the value of idDepartamento
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdEntidadeBanco() : mixed
- Get the value of idEntidadeBanco
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdNegocio() : mixed
- Get the value of idNegocio
- getIdPlanoConta() : mixed
- Get the value of idPlanoConta
- getIdPlanoContaAgenda() : mixed
- Get the value of idPlanoContaAgenda
- getIdTipoPagamento() : mixed
- Get the value of idTipoPagamento
- getIdUnidadeNegocio() : mixed
- Get the value of idUnidadeNegocio
- getIdUsuario() : mixed
- Get the value of idUsuario
- getIdVariavelControle() : mixed
- Get the value of idVariavelControle
- getLimiteValor() : mixed
- Get the value of limiteValor
- getMesVencimento() : mixed
- Get the value of mesVencimento
- getParcela() : mixed
- Get the value of parcela
- getPrazoDias() : mixed
- Get the value of prazoDias
- getStatusPrevisao() : mixed
- Get the value of idDepartamento
- getTable() : mixed
- getValor() : mixed
- Get the value of valor
- 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
- setDataHora() : self
- Set the value of DataHora
- setDescricao() : self
- Set the value of descricao
- setDiaVencimento() : self
- Set the value of diaVencimento
- setIdContaBancaria() : self
- Set the value of idContaBancaria
- setIdDepartamento() : self
- Set the value of idDepartamento
- setIdEntidade() : self
- Set the value of idEntidade
- setIdEntidadeBanco() : self
- Set the value of idEntidadeBanco
- setIdFazenda() : self
- Set the value of idFazenda
- setIdNegocio() : self
- Set the value of idNegocio
- setIdPlanoConta() : self
- Set the value of idPlanoConta
- setIdPlanoContaAgenda() : self
- Set the value of idPlanoContaAgenda
- setIdTipoPagamento() : self
- Set the value of idTipoPagamento
- setIdUnidadeNegocio() : self
- Set the value of idUnidadeNegocio
- setIdUsuario() : self
- Set the value of idUsuario
- setIdVariavelControle() : self
- Set the value of idVariavelControle
- setLimiteValor() : self
- Set the value of limiteValor
- setMesVencimento() : self
- Set the value of mesVencimento
- setParcela() : self
- Set the value of parcela
- setPrazoDias() : self
- Set the value of prazoDias
- setStatusPrevisao() : self
- Set the value of idDepartamento
- setValor() : self
- Set the value of valor
- 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
= 'finan_planocontas_agenda'
pk_field
public
mixed
pk_field
= 'idPlanoContaAgenda'
sanitize
Estrutura = ['key' => 'rule']
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
Estrutura = ['key' => ['keyRule' => 'Rule message']]
public
mixed
validations
= ['idPlanoConta' => ['required' => 'O campo Plano de Conta é obrigatório.'], 'idUnidadeNegocio' => ['required' => 'O campo Unidade de Negócio é obrigatório.'], 'valor' => ['required' => 'O campo Valor é obrigatório.'], 'descricao' => ['required' => 'O campo Descrição é obrigatório.'], 'parcela' => ['required' => 'O campo Parcela é obrigatório.'], 'diaVencimento' => ['required' => 'O campo Dia do Vencimento é obrigatório.'], 'prazoDias' => ['required' => 'O campo Prazo Lançamento (dias) é obrigatório.'], 'idTipoPagamento' => ['required' => 'O campo Forma Pagamento é obrigatório.']]
Properties
$DataHora
private
mixed
$DataHora
$descricao
private
mixed
$descricao
$diaVencimento
private
mixed
$diaVencimento
$idContaBancaria
private
mixed
$idContaBancaria
$idDepartamento
private
mixed
$idDepartamento
$idEntidade
private
mixed
$idEntidade
$idEntidadeBanco
private
mixed
$idEntidadeBanco
$idFazenda
private
mixed
$idFazenda
$idNegocio
private
mixed
$idNegocio
$idPlanoConta
private
mixed
$idPlanoConta
$idPlanoContaAgenda
private
mixed
$idPlanoContaAgenda
$idTipoPagamento
private
mixed
$idTipoPagamento
$idUnidadeNegocio
private
mixed
$idUnidadeNegocio
$idUsuario
private
mixed
$idUsuario
$idVariavelControle
private
mixed
$idVariavelControle
$limiteValor
private
mixed
$limiteValor
$mesVencimento
private
mixed
$mesVencimento
$parcela
private
mixed
$parcela
$prazoDias
private
mixed
$prazoDias
$statusPrevisao
private
mixed
$statusPrevisao
$valor
private
mixed
$valor
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
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDescricao()
Get the value of descricao
public
getDescricao() : mixed
getDiaVencimento()
Get the value of diaVencimento
public
getDiaVencimento() : mixed
getIdContaBancaria()
Get the value of idContaBancaria
public
getIdContaBancaria() : mixed
getIdDepartamento()
Get the value of idDepartamento
public
getIdDepartamento() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntidadeBanco()
Get the value of idEntidadeBanco
public
getIdEntidadeBanco() : 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
getIdPlanoContaAgenda()
Get the value of idPlanoContaAgenda
public
getIdPlanoContaAgenda() : mixed
getIdTipoPagamento()
Get the value of idTipoPagamento
public
getIdTipoPagamento() : mixed
getIdUnidadeNegocio()
Get the value of idUnidadeNegocio
public
getIdUnidadeNegocio() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getIdVariavelControle()
Get the value of idVariavelControle
public
getIdVariavelControle() : mixed
getLimiteValor()
Get the value of limiteValor
public
getLimiteValor() : mixed
getMesVencimento()
Get the value of mesVencimento
public
getMesVencimento() : mixed
getParcela()
Get the value of parcela
public
getParcela() : mixed
getPrazoDias()
Get the value of prazoDias
public
getPrazoDias() : mixed
getStatusPrevisao()
Get the value of idDepartamento
public
getStatusPrevisao() : mixed
getTable()
public
getTable() : mixed
getValor()
Get the value of valor
public
getValor() : 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
setDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDescricao()
Set the value of descricao
public
setDescricao(mixed $descricao) : self
Parameters
- $descricao : mixed
Return values
selfsetDiaVencimento()
Set the value of diaVencimento
public
setDiaVencimento(mixed $diaVencimento) : self
Parameters
- $diaVencimento : mixed
Return values
selfsetIdContaBancaria()
Set the value of idContaBancaria
public
setIdContaBancaria(mixed $idContaBancaria) : self
Parameters
- $idContaBancaria : mixed
Return values
selfsetIdDepartamento()
Set the value of idDepartamento
public
setIdDepartamento(mixed $idDepartamento) : self
Parameters
- $idDepartamento : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEntidadeBanco()
Set the value of idEntidadeBanco
public
setIdEntidadeBanco(mixed $idEntidadeBanco) : self
Parameters
- $idEntidadeBanco : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdNegocio()
Set the value of idNegocio
public
setIdNegocio(mixed $idNegocio) : self
Parameters
- $idNegocio : mixed
Return values
selfsetIdPlanoConta()
Set the value of idPlanoConta
public
setIdPlanoConta(mixed $idPlanoConta) : self
Parameters
- $idPlanoConta : mixed
Return values
selfsetIdPlanoContaAgenda()
Set the value of idPlanoContaAgenda
public
setIdPlanoContaAgenda(mixed $idPlanoContaAgenda) : self
Parameters
- $idPlanoContaAgenda : mixed
Return values
selfsetIdTipoPagamento()
Set the value of idTipoPagamento
public
setIdTipoPagamento(mixed $idTipoPagamento) : self
Parameters
- $idTipoPagamento : mixed
Return values
selfsetIdUnidadeNegocio()
Set the value of idUnidadeNegocio
public
setIdUnidadeNegocio(mixed $idUnidadeNegocio) : self
Parameters
- $idUnidadeNegocio : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetIdVariavelControle()
Set the value of idVariavelControle
public
setIdVariavelControle(mixed $idVariavelControle) : self
Parameters
- $idVariavelControle : mixed
Return values
selfsetLimiteValor()
Set the value of limiteValor
public
setLimiteValor(mixed $limiteValor) : self
Parameters
- $limiteValor : mixed
Return values
selfsetMesVencimento()
Set the value of mesVencimento
public
setMesVencimento(mixed $mesVencimento) : self
Parameters
- $mesVencimento : mixed
Return values
selfsetParcela()
Set the value of parcela
public
setParcela(mixed $parcela) : self
Parameters
- $parcela : mixed
Return values
selfsetPrazoDias()
Set the value of prazoDias
public
setPrazoDias(mixed $prazoDias) : self
Parameters
- $prazoDias : mixed
Return values
selfsetStatusPrevisao()
Set the value of idDepartamento
public
setStatusPrevisao(mixed $statusPrevisao) : self
Parameters
- $statusPrevisao : mixed
Return values
selfsetValor()
Set the value of valor
public
setValor(mixed $valor) : self
Parameters
- $valor : 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 = '*'