Documentation

ContaAnaliticaEntity extends Entity
in package

Table of Contents

Constants

auditlog  = ['exclude_fields' => ['DataHora']]
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
C_DOC_FISCAL  = "2"
const_values  = []
database  = \config\Config::DB_DEFAULT
db_table  = 'finan_planocontas'
DEDUTIVEIS_TOTAIS  = "6"
N_CLASSIFICADO  = "4"
N_DEDUTIVEIS  = "3"
pk_field  = 'idPlanoConta'
S_DOC_FISCAL  = "5"
sanitize  = ['ordem' => 'onlyNumber', 'idContaDRE_vinculo' => 'onlyNumber']
Estrutura = ['key' => 'rule']
security  = ['select' => 'src\models\ContaAnaliticaSecurity::securitySelect']
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
TODOS  = "1"
Situação IR relatório result. financeiro
tracking  = true
validations  = ['DescricaoConta' => ['required' => 'O campo Nome da Conta é obrigatório.'], 'destinoConta' => ['required' => 'O campo Obejtivo é obrigatório.'], 'ordem' => ['required' => 'O campo Ordem é obrigatório.'], 'idPlanoContaCategoria' => ['required' => 'O campo Centro Gerencial é obrigatório.'], 'porcentagemAlerta' => ['required' => 'O campo % Alerta é obrigatório.'], 'situacaoIR' => ['required' => 'O campo Situação IR é obrigatório.']]
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$aparece  : mixed
$caminho  : mixed
$classificacao  : mixed
$controleAdiantamento  : mixed
$DataHora  : mixed
$descontaEBTIDA  : mixed
$DescricaoConta  : mixed
$DescricaoContaLivroCaixa  : mixed
$destinoConta  : mixed
$forcaIR  : mixed
$idCentroCusto  : mixed
$idCont1  : mixed
$idCont2  : mixed
$idCont3  : mixed
$idContaDRE  : mixed
$idContaDREorigem  : mixed
$idDepartamento  : mixed
$idEmpresa  : mixed
$idNegocioObrigatorio  : mixed
$idPlanoConta  : mixed
$idPlanoContaCategoria  : mixed
$idUsuario  : mixed
$impactarAtivo  : mixed
$obs  : mixed
$opcaoFinanciamento  : mixed
$ordem  : mixed
$porcentagemAlerta  : mixed
$situacaoIR  : mixed
$sqlConsulta  : mixed
$sqlConsulta2  : mixed
$status  : mixed
$statusAlerta  : mixed
$temIR  : mixed
$TipoBP  : mixed
$TipoCaixa  : mixed
$tipoConsulta  : mixed
$TipoDRE  : mixed
$valorsqlConsulta  : mixed
$valorsqlConsulta2  : mixed
$viewPlan  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAparece()  : mixed
Get the value of aparece
getAuditlog()  : mixed
getCaminho()  : mixed
Get the value of caminho
getClassificacao()  : mixed
Get the value of classificacao
getConst()  : mixed
getConstObj()  : mixed
getControleAdiantamento()  : mixed
Get the value of controleAdiantamento
getDatabase()  : mixed
getDataHora()  : mixed
Get the value of DataHora
getDBDriver()  : mixed
getDBTable()  : mixed
getDescontaEBTIDA()  : mixed
Get the value of descontaEBTIDA
getDescricaoConta()  : mixed
Get the value of DescricaoConta
getDescricaoContaLivroCaixa()  : mixed
Get the value of DescricaoContaLivroCaixa
getDestinoConta()  : mixed
Get the value of destinoConta
getForcaIR()  : mixed
Get the value of forcaIR
getIdCentroCusto()  : mixed
Get the value of idCentroCusto
getIdCont1()  : mixed
Get the value of idCont1
getIdCont2()  : mixed
Get the value of idCont2
getIdCont3()  : mixed
Get the value of idCont3
getIdContaDRE()  : mixed
Get the value of idContaDRE
getIdContaDREorigem()  : mixed
Get the value of idContaDREorigem
getIdDepartamento()  : mixed
Get the value of idDepartamento
getIdEmpresa()  : mixed
Get the value of idEmpresa
getIdNegocioObrigatorio()  : mixed
Get the value of idNegocioObrigatorio
getIdPlanoConta()  : mixed
Get the value of idPlanoConta
getIdPlanoContaCategoria()  : mixed
Get the value of idPlanoContaCategoria
getIdUsuario()  : mixed
Get the value of idUsuario
getImpactarAtivo()  : mixed
Get the value of impactarAtivo
getObs()  : mixed
Get the value of obs
getOpcaoFinanciamento()  : mixed
Get the value of opcaoFinanciamento
getOrdem()  : mixed
Get the value of ordem
getPorcentagemAlerta()  : mixed
Get the value of porcentagemAlerta
getSituacaoIR()  : mixed
Get the value of situacaoIR
getSqlConsulta()  : mixed
Get the value of sqlConsulta
getSqlConsulta2()  : mixed
Get the value of sqlConsulta2
getStatus()  : mixed
Get the value of status
getStatusAlerta()  : mixed
Get the value of statusAlerta
getTable()  : mixed
getTemIR()  : mixed
Get the value of temIR
getTipoBP()  : mixed
Get the value of TipoBP
getTipoCaixa()  : mixed
Get the value of TipoCaixa
getTipoConsulta()  : mixed
Get the value of tipoConsulta
getTipoDRE()  : mixed
Get the value of TipoDRE
getValorsqlConsulta()  : mixed
Get the value of valorsqlConsulta
getValorsqlConsulta2()  : mixed
Get the value of valorsqlConsulta2
getViewPlan()  : mixed
Get the value of viewPlan
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
setAparece()  : self
Set the value of aparece
setCaminho()  : self
Set the value of caminho
setClassificacao()  : self
Set the value of classificacao
setControleAdiantamento()  : self
Set the value of controleAdiantamento
setDataHora()  : self
Set the value of DataHora
setDescontaEBTIDA()  : self
Set the value of descontaEBTIDA
setDescricaoConta()  : self
Set the value of DescricaoConta
setDescricaoContaLivroCaixa()  : self
Set the value of DescricaoContaLivroCaixa
setDestinoConta()  : self
Set the value of destinoConta
setForcaIR()  : self
Set the value of forcaIR
setIdCentroCusto()  : self
Set the value of idCentroCusto
setIdCont1()  : self
Set the value of idCont1
setIdCont2()  : self
Set the value of idCont2
setIdCont3()  : self
Set the value of idCont3
setIdContaDRE()  : self
Set the value of idContaDRE
setIdContaDREorigem()  : self
Set the value of idContaDREorigem
setIdDepartamento()  : self
Set the value of idDepartamento
setIdEmpresa()  : self
Set the value of idEmpresa
setIdNegocioObrigatorio()  : self
Set the value of idNegocioObrigatorio
setIdPlanoConta()  : self
Set the value of idPlanoConta
setIdPlanoContaCategoria()  : self
Set the value of idPlanoContaCategoria
setIdUsuario()  : self
Set the value of idUsuario
setImpactarAtivo()  : self
Set the value of impactarAtivo
setObs()  : self
Set the value of obs
setOpcaoFinanciamento()  : self
Set the value of opcaoFinanciamento
setOrdem()  : self
Set the value of ordem
setPorcentagemAlerta()  : self
Set the value of porcentagemAlerta
setSituacaoIR()  : self
Set the value of situacaoIR
setSqlConsulta()  : self
Set the value of sqlConsulta
setSqlConsulta2()  : self
Set the value of sqlConsulta2
setStatus()  : self
Set the value of status
setStatusAlerta()  : self
Set the value of statusAlerta
setTemIR()  : self
Set the value of temIR
setTipoBP()  : self
Set the value of TipoBP
setTipoCaixa()  : self
Set the value of TipoCaixa
setTipoConsulta()  : self
Set the value of tipoConsulta
setTipoDRE()  : self
Set the value of TipoDRE
setValorsqlConsulta()  : self
Set the value of valorsqlConsulta
setValorsqlConsulta2()  : self
Set the value of valorsqlConsulta2
setViewPlan()  : self
Set the value of viewPlan
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

Estrutura = ['key' => 'rule']

public mixed sanitize = ['ordem' => 'onlyNumber', 'idContaDRE_vinculo' => 'onlyNumber']

security

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

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

validations

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

public mixed validations = ['DescricaoConta' => ['required' => 'O campo Nome da Conta é obrigatório.'], 'destinoConta' => ['required' => 'O campo Obejtivo é obrigatório.'], 'ordem' => ['required' => 'O campo Ordem é obrigatório.'], 'idPlanoContaCategoria' => ['required' => 'O campo Centro Gerencial é obrigatório.'], 'porcentagemAlerta' => ['required' => 'O campo % Alerta é obrigatório.'], 'situacaoIR' => ['required' => 'O campo Situação IR é obrigatório.']]

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

getControleAdiantamento()

Get the value of controleAdiantamento

public getControleAdiantamento() : mixed

getDatabase()

public getDatabase() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getDescricaoContaLivroCaixa()

Get the value of DescricaoContaLivroCaixa

public getDescricaoContaLivroCaixa() : mixed

getIdContaDREorigem()

Get the value of idContaDREorigem

public getIdContaDREorigem() : mixed

getIdNegocioObrigatorio()

Get the value of idNegocioObrigatorio

public getIdNegocioObrigatorio() : mixed

getIdPlanoContaCategoria()

Get the value of idPlanoContaCategoria

public getIdPlanoContaCategoria() : mixed

getOpcaoFinanciamento()

Get the value of opcaoFinanciamento

public getOpcaoFinanciamento() : mixed

getPorcentagemAlerta()

Get the value of porcentagemAlerta

public getPorcentagemAlerta() : mixed

getTable()

public getTable() : mixed

getValorsqlConsulta()

Get the value of valorsqlConsulta

public getValorsqlConsulta() : mixed

getValorsqlConsulta2()

Get the value of valorsqlConsulta2

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

setAparece()

Set the value of aparece

public setAparece(mixed $aparece) : self
Parameters
$aparece : mixed
Return values
self

setCaminho()

Set the value of caminho

public setCaminho(mixed $caminho) : self
Parameters
$caminho : mixed
Return values
self

setClassificacao()

Set the value of classificacao

public setClassificacao(mixed $classificacao) : self
Parameters
$classificacao : mixed
Return values
self

setControleAdiantamento()

Set the value of controleAdiantamento

public setControleAdiantamento(mixed $controleAdiantamento) : self
Parameters
$controleAdiantamento : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setDescontaEBTIDA()

Set the value of descontaEBTIDA

public setDescontaEBTIDA(mixed $descontaEBTIDA) : self
Parameters
$descontaEBTIDA : mixed
Return values
self

setDescricaoConta()

Set the value of DescricaoConta

public setDescricaoConta(mixed $DescricaoConta) : self
Parameters
$DescricaoConta : mixed
Return values
self

setDescricaoContaLivroCaixa()

Set the value of DescricaoContaLivroCaixa

public setDescricaoContaLivroCaixa(mixed $DescricaoContaLivroCaixa) : self
Parameters
$DescricaoContaLivroCaixa : mixed
Return values
self

setDestinoConta()

Set the value of destinoConta

public setDestinoConta(mixed $destinoConta) : self
Parameters
$destinoConta : mixed
Return values
self

setForcaIR()

Set the value of forcaIR

public setForcaIR(mixed $forcaIR) : self
Parameters
$forcaIR : mixed
Return values
self

setIdCentroCusto()

Set the value of idCentroCusto

public setIdCentroCusto(mixed $idCentroCusto) : self
Parameters
$idCentroCusto : mixed
Return values
self

setIdCont1()

Set the value of idCont1

public setIdCont1(mixed $idCont1) : self
Parameters
$idCont1 : mixed
Return values
self

setIdCont2()

Set the value of idCont2

public setIdCont2(mixed $idCont2) : self
Parameters
$idCont2 : mixed
Return values
self

setIdCont3()

Set the value of idCont3

public setIdCont3(mixed $idCont3) : self
Parameters
$idCont3 : mixed
Return values
self

setIdContaDRE()

Set the value of idContaDRE

public setIdContaDRE(mixed $idContaDRE) : self
Parameters
$idContaDRE : mixed
Return values
self

setIdContaDREorigem()

Set the value of idContaDREorigem

public setIdContaDREorigem(mixed $idContaDREorigem) : self
Parameters
$idContaDREorigem : mixed
Return values
self

setIdDepartamento()

Set the value of idDepartamento

public setIdDepartamento(mixed $idDepartamento) : self
Parameters
$idDepartamento : mixed
Return values
self

setIdEmpresa()

Set the value of idEmpresa

public setIdEmpresa(mixed $idEmpresa) : self
Parameters
$idEmpresa : mixed
Return values
self

setIdNegocioObrigatorio()

Set the value of idNegocioObrigatorio

public setIdNegocioObrigatorio(mixed $idNegocioObrigatorio) : self
Parameters
$idNegocioObrigatorio : mixed
Return values
self

setIdPlanoConta()

Set the value of idPlanoConta

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

setIdPlanoContaCategoria()

Set the value of idPlanoContaCategoria

public setIdPlanoContaCategoria(mixed $idPlanoContaCategoria) : self
Parameters
$idPlanoContaCategoria : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setImpactarAtivo()

Set the value of impactarAtivo

public setImpactarAtivo(mixed $impactarAtivo) : self
Parameters
$impactarAtivo : mixed
Return values
self

setObs()

Set the value of obs

public setObs(mixed $obs) : self
Parameters
$obs : mixed
Return values
self

setOpcaoFinanciamento()

Set the value of opcaoFinanciamento

public setOpcaoFinanciamento(mixed $opcaoFinanciamento) : self
Parameters
$opcaoFinanciamento : mixed
Return values
self

setOrdem()

Set the value of ordem

public setOrdem(mixed $ordem) : self
Parameters
$ordem : mixed
Return values
self

setPorcentagemAlerta()

Set the value of porcentagemAlerta

public setPorcentagemAlerta(mixed $porcentagemAlerta) : self
Parameters
$porcentagemAlerta : mixed
Return values
self

setSituacaoIR()

Set the value of situacaoIR

public setSituacaoIR(mixed $situacaoIR) : self
Parameters
$situacaoIR : mixed
Return values
self

setSqlConsulta()

Set the value of sqlConsulta

public setSqlConsulta(mixed $sqlConsulta) : self
Parameters
$sqlConsulta : mixed
Return values
self

setSqlConsulta2()

Set the value of sqlConsulta2

public setSqlConsulta2(mixed $sqlConsulta2) : self
Parameters
$sqlConsulta2 : mixed
Return values
self

setStatus()

Set the value of status

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

setStatusAlerta()

Set the value of statusAlerta

public setStatusAlerta(mixed $statusAlerta) : self
Parameters
$statusAlerta : mixed
Return values
self

setTemIR()

Set the value of temIR

public setTemIR(mixed $temIR) : self
Parameters
$temIR : mixed
Return values
self

setTipoBP()

Set the value of TipoBP

public setTipoBP(mixed $TipoBP) : self
Parameters
$TipoBP : mixed
Return values
self

setTipoCaixa()

Set the value of TipoCaixa

public setTipoCaixa(mixed $TipoCaixa) : self
Parameters
$TipoCaixa : mixed
Return values
self

setTipoConsulta()

Set the value of tipoConsulta

public setTipoConsulta(mixed $tipoConsulta) : self
Parameters
$tipoConsulta : mixed
Return values
self

setTipoDRE()

Set the value of TipoDRE

public setTipoDRE(mixed $TipoDRE) : self
Parameters
$TipoDRE : mixed
Return values
self

setValorsqlConsulta()

Set the value of valorsqlConsulta

public setValorsqlConsulta(mixed $valorsqlConsulta) : self
Parameters
$valorsqlConsulta : mixed
Return values
self

setValorsqlConsulta2()

Set the value of valorsqlConsulta2

public setValorsqlConsulta2(mixed $valorsqlConsulta2) : self
Parameters
$valorsqlConsulta2 : mixed
Return values
self

setViewPlan()

Set the value of viewPlan

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