Documentation

ContaCorrenteEntity extends Entity
in package

Table of Contents

Constants

auditlog  = ['exclude_fields' => ['DataHora'], 'obfuscate_fields' => ['passwdBanking']]
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
const_values  = []
database  = \config\Config::DB_DEFAULT
db_table  = 'finan_contasbancarias'
pk_field  = 'idContaBancaria'
sanitize  = ['CNPJCPF' => 'onlyNumber', 'numeroConta' => 'onlyNumber', 'Agencia' => 'onlyNumber', 'ofxBanking' => 'noRules']
Estrutura = ['key' => 'rule']
security  = ['update' => 'src\models\ContaCorrenteSecurity::securityUpdate']
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
tipoCPFCNPJ  = ['CPF' => '1', 'CNPJ' => '2', 'OUTROS' => '3']
Constants from database table
tracking  = true
validations  = ['DataAbertura' => ['required' => 'O campo Data Abertura é obrigatório.', 'varificaDataAtual' => 'A Data Abertura não pode ser maior que a data atual.'], 'IdBanco' => ['required' => 'O campo Nome Banco é obrigatório.'], 'statusFC' => ['required' => 'O campo Impactar Fluxo Caixa é obrigatório.'], 'status' => ['required' => 'O campo Status é obrigatório.'], 'DescConta' => ['required' => 'O campo Descrição Conta é obrigatório.'], 'nomeConta' => ['required' => 'O campo Nome da Conta é obrigatório.'], 'limiteCredito' => ['required' => 'O campo Limire de Crédito Cheque Especial é obrigatório.'], 'limiteCreditoFinanciamento' => ['required' => 'O campo Limite Crédito Financiamento é obrigatório.'], 'Agencia' => ['required' => 'O campo Agência é obrigatório.'], 'digitoConta' => ['required' => 'O campo Dígito da Conta é obrigatório.'], 'numeroConta' => ['required' => 'O campo Número da Conta é obrigatório.'], 'CNPJCPF' => ['required' => 'O campo CPF/CNPJ Conta é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ invalido.']]

Properties

$Agencia  : mixed
$chequeTerceiro  : mixed
$CNPJCPF  : mixed
$codigoEmpresaBancoConvenio  : mixed
$codigoEmpresaINTSYS  : mixed
$codigoINTSYS  : mixed
$codigoPlanoContaINTSYS  : mixed
$controleAdiantamento  : mixed
$DataAbertura  : mixed
$DataHora  : mixed
$dataofxBanking  : mixed
$dataProximaAtualizaOFX  : mixed
$DescConta  : mixed
$digitoAgencia  : mixed
$digitoConta  : mixed
$GerenteBanco  : mixed
$IdBanco  : mixed
$idContaBancaria  : mixed
$idUnidadeNegocio  : mixed
$idUsuario  : mixed
$limiteCredito  : mixed
$limiteCreditoFinanciamento  : mixed
$nomeConta  : mixed
$numeroConta  : mixed
$ofxBanking  : mixed
$passwdBanking  : mixed
$saldoAbertura  : mixed
$saldoAtual  : mixed
$saldoBanco  : mixed
$saldoConfere  : mixed
$saldoMinimo  : mixed
$status  : mixed
$statusFC  : mixed
$tipoCPFCNPJ  : mixed
$titular  : mixed
$ultimaDataConfere  : mixed
$usuarioBanking  : mixed
$usuarioEmpresaBanking  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAgencia()  : mixed
Get the value of Agencia
getAuditlog()  : mixed
getChequeTerceiro()  : mixed
Get the value of chequeTerceiro
getCNPJCPF()  : mixed
Get the value of CNPJCPF
getCodigoEmpresaBancoConvenio()  : mixed
Get the value of codigoEmpresaBancoConvenio
getCodigoEmpresaINTSYS()  : mixed
Get the value of codigoEmpresaINTSYS
getCodigoINTSYS()  : mixed
Get the value of codigoINTSYS
getCodigoPlanoContaINTSYS()  : mixed
Get the value of codigoPlanoContaINTSYS
getConst()  : mixed
getConstObj()  : mixed
getControleAdiantamento()  : mixed
Get the value of controleAdiantamento
getDataAbertura()  : mixed
Get the value of DataAbertura
getDatabase()  : mixed
getDataHora()  : mixed
Get the value of DataHora
getDataofxBanking()  : mixed
Get the value of dataofxBanking
getDataProximaAtualizaOFX()  : mixed
Get the value of dataProximaAtualizaOFX
getDBDriver()  : mixed
getDBTable()  : mixed
getDescConta()  : mixed
Get the value of DescConta
getDigitoAgencia()  : mixed
Get the value of digitoAgencia
getDigitoConta()  : mixed
Get the value of digitoConta
getGerenteBanco()  : mixed
Get the value of GerenteBanco
getIdBanco()  : mixed
Get the value of IdBanco
getIdContaBancaria()  : mixed
Get the value of idContaBancaria
getIdUnidadeNegocio()  : mixed
Get the value of idUnidadeNegocio
getIdUsuario()  : mixed
Get the value of idUsuario
getLimiteCredito()  : mixed
Get the value of limiteCredito
getLimiteCreditoFinanciamento()  : mixed
Get the value of limiteCreditoFinanciamento
getNomeConta()  : mixed
Get the value of nomeConta
getNumeroConta()  : mixed
Get the value of numeroConta
getOfxBanking()  : mixed
Get the value of ofxBanking
getPasswdBanking()  : mixed
Get the value of passwdBanking
getSaldoAbertura()  : mixed
Get the value of saldoAbertura
getSaldoAtual()  : mixed
Get the value of saldoAtual
getSaldoBanco()  : mixed
Get the value of saldoBanco
getSaldoConfere()  : mixed
Get the value of saldoConfere
getSaldoMinimo()  : mixed
Get the value of saldoMinimo
getStatus()  : mixed
Get the value of status
getStatusFC()  : mixed
Get the value of statusFC
getTable()  : mixed
getTipoCPFCNPJ()  : mixed
Get the value of tipoCPFCNPJ
getTitular()  : mixed
Get the value of titular
getUltimaDataConfere()  : mixed
Get the value of ultimaDataConfere
getUsuarioBanking()  : mixed
Get the value of usuarioBanking
getUsuarioEmpresaBanking()  : mixed
Get the value of usuarioEmpresaBanking
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
setAgencia()  : self
Set the value of Agencia
setChequeTerceiro()  : self
Set the value of chequeTerceiro
setCNPJCPF()  : self
Set the value of CNPJCPF
setCodigoEmpresaBancoConvenio()  : self
Set the value of codigoEmpresaBancoConvenio
setCodigoEmpresaINTSYS()  : self
Set the value of codigoEmpresaINTSYS
setCodigoINTSYS()  : self
Set the value of codigoINTSYS
setCodigoPlanoContaINTSYS()  : self
Set the value of codigoPlanoContaINTSYS
setControleAdiantamento()  : self
Set the value of controleAdiantamento
setDataAbertura()  : self
Set the value of DataAbertura
setDataHora()  : self
Set the value of DataHora
setDataofxBanking()  : self
Set the value of dataofxBanking
setDataProximaAtualizaOFX()  : self
Set the value of dataProximaAtualizaOFX
setDescConta()  : self
Set the value of DescConta
setDigitoAgencia()  : self
Set the value of digitoAgencia
setDigitoConta()  : self
Set the value of digitoConta
setGerenteBanco()  : self
Set the value of GerenteBanco
setIdBanco()  : self
Set the value of IdBanco
setIdContaBancaria()  : self
Set the value of idContaBancaria
setIdUnidadeNegocio()  : self
Set the value of idUnidadeNegocio
setIdUsuario()  : self
Set the value of idUsuario
setLimiteCredito()  : self
Set the value of limiteCredito
setLimiteCreditoFinanciamento()  : self
Set the value of limiteCreditoFinanciamento
setNomeConta()  : self
Set the value of nomeConta
setNumeroConta()  : self
Set the value of numeroConta
setOfxBanking()  : self
Set the value of ofxBanking
setPasswdBanking()  : self
Set the value of passwdBanking
setSaldoAbertura()  : self
Set the value of saldoAbertura
setSaldoAtual()  : self
Set the value of saldoAtual
setSaldoBanco()  : self
Set the value of saldoBanco
setSaldoConfere()  : self
Set the value of saldoConfere
setSaldoMinimo()  : self
Set the value of saldoMinimo
setStatus()  : self
Set the value of status
setStatusFC()  : self
Set the value of statusFC
setTipoCPFCNPJ()  : self
Set the value of tipoCPFCNPJ
setTitular()  : self
Set the value of titular
setUltimaDataConfere()  : self
Set the value of ultimaDataConfere
setUsuarioBanking()  : self
Set the value of usuarioBanking
setUsuarioEmpresaBanking()  : self
Set the value of usuarioEmpresaBanking
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'], 'obfuscate_fields' => ['passwdBanking']]

const_values

public mixed const_values = []

database

public mixed database = \config\Config::DB_DEFAULT

sanitize

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

public mixed sanitize = ['CNPJCPF' => 'onlyNumber', 'numeroConta' => 'onlyNumber', 'Agencia' => 'onlyNumber', 'ofxBanking' => 'noRules']

security

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

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

tipoCPFCNPJ

Constants from database table

public mixed tipoCPFCNPJ = ['CPF' => '1', 'CNPJ' => '2', 'OUTROS' => '3']

validations

public mixed validations = ['DataAbertura' => ['required' => 'O campo Data Abertura é obrigatório.', 'varificaDataAtual' => 'A Data Abertura não pode ser maior que a data atual.'], 'IdBanco' => ['required' => 'O campo Nome Banco é obrigatório.'], 'statusFC' => ['required' => 'O campo Impactar Fluxo Caixa é obrigatório.'], 'status' => ['required' => 'O campo Status é obrigatório.'], 'DescConta' => ['required' => 'O campo Descrição Conta é obrigatório.'], 'nomeConta' => ['required' => 'O campo Nome da Conta é obrigatório.'], 'limiteCredito' => ['required' => 'O campo Limire de Crédito Cheque Especial é obrigatório.'], 'limiteCreditoFinanciamento' => ['required' => 'O campo Limite Crédito Financiamento é obrigatório.'], 'Agencia' => ['required' => 'O campo Agência é obrigatório.'], 'digitoConta' => ['required' => 'O campo Dígito da Conta é obrigatório.'], 'numeroConta' => ['required' => 'O campo Número da Conta é obrigatório.'], 'CNPJCPF' => ['required' => 'O campo CPF/CNPJ Conta é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ invalido.']]

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

getChequeTerceiro()

Get the value of chequeTerceiro

public getChequeTerceiro() : mixed

getCodigoEmpresaBancoConvenio()

Get the value of codigoEmpresaBancoConvenio

public getCodigoEmpresaBancoConvenio() : mixed

getCodigoEmpresaINTSYS()

Get the value of codigoEmpresaINTSYS

public getCodigoEmpresaINTSYS() : mixed

getCodigoPlanoContaINTSYS()

Get the value of codigoPlanoContaINTSYS

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

getControleAdiantamento()

Get the value of controleAdiantamento

public getControleAdiantamento() : mixed

getDatabase()

public getDatabase() : mixed

getDataofxBanking()

Get the value of dataofxBanking

public getDataofxBanking() : mixed

getDataProximaAtualizaOFX()

Get the value of dataProximaAtualizaOFX

public getDataProximaAtualizaOFX() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getDigitoAgencia()

Get the value of digitoAgencia

public getDigitoAgencia() : mixed

getIdContaBancaria()

Get the value of idContaBancaria

public getIdContaBancaria() : mixed

getIdUnidadeNegocio()

Get the value of idUnidadeNegocio

public getIdUnidadeNegocio() : mixed

getLimiteCredito()

Get the value of limiteCredito

public getLimiteCredito() : mixed

getLimiteCreditoFinanciamento()

Get the value of limiteCreditoFinanciamento

public getLimiteCreditoFinanciamento() : mixed

getPasswdBanking()

Get the value of passwdBanking

public getPasswdBanking() : mixed

getSaldoAbertura()

Get the value of saldoAbertura

public getSaldoAbertura() : mixed

getTable()

public getTable() : mixed

getUltimaDataConfere()

Get the value of ultimaDataConfere

public getUltimaDataConfere() : mixed

getUsuarioBanking()

Get the value of usuarioBanking

public getUsuarioBanking() : mixed

getUsuarioEmpresaBanking()

Get the value of usuarioEmpresaBanking

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

setAgencia()

Set the value of Agencia

public setAgencia(mixed $Agencia) : self
Parameters
$Agencia : mixed
Return values
self

setChequeTerceiro()

Set the value of chequeTerceiro

public setChequeTerceiro(mixed $chequeTerceiro) : self
Parameters
$chequeTerceiro : mixed
Return values
self

setCNPJCPF()

Set the value of CNPJCPF

public setCNPJCPF(mixed $CNPJCPF) : self
Parameters
$CNPJCPF : mixed
Return values
self

setCodigoEmpresaBancoConvenio()

Set the value of codigoEmpresaBancoConvenio

public setCodigoEmpresaBancoConvenio(mixed $codigoEmpresaBancoConvenio) : self
Parameters
$codigoEmpresaBancoConvenio : mixed
Return values
self

setCodigoEmpresaINTSYS()

Set the value of codigoEmpresaINTSYS

public setCodigoEmpresaINTSYS(mixed $codigoEmpresaINTSYS) : self
Parameters
$codigoEmpresaINTSYS : mixed
Return values
self

setCodigoINTSYS()

Set the value of codigoINTSYS

public setCodigoINTSYS(mixed $codigoINTSYS) : self
Parameters
$codigoINTSYS : mixed
Return values
self

setCodigoPlanoContaINTSYS()

Set the value of codigoPlanoContaINTSYS

public setCodigoPlanoContaINTSYS(mixed $codigoPlanoContaINTSYS) : self
Parameters
$codigoPlanoContaINTSYS : mixed
Return values
self

setControleAdiantamento()

Set the value of controleAdiantamento

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

setDataAbertura()

Set the value of DataAbertura

public setDataAbertura(mixed $DataAbertura) : self
Parameters
$DataAbertura : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setDataofxBanking()

Set the value of dataofxBanking

public setDataofxBanking(mixed $dataofxBanking) : self
Parameters
$dataofxBanking : mixed
Return values
self

setDataProximaAtualizaOFX()

Set the value of dataProximaAtualizaOFX

public setDataProximaAtualizaOFX(mixed $dataProximaAtualizaOFX) : self
Parameters
$dataProximaAtualizaOFX : mixed
Return values
self

setDescConta()

Set the value of DescConta

public setDescConta(mixed $DescConta) : self
Parameters
$DescConta : mixed
Return values
self

setDigitoAgencia()

Set the value of digitoAgencia

public setDigitoAgencia(mixed $digitoAgencia) : self
Parameters
$digitoAgencia : mixed
Return values
self

setDigitoConta()

Set the value of digitoConta

public setDigitoConta(mixed $digitoConta) : self
Parameters
$digitoConta : mixed
Return values
self

setGerenteBanco()

Set the value of GerenteBanco

public setGerenteBanco(mixed $GerenteBanco) : self
Parameters
$GerenteBanco : mixed
Return values
self

setIdBanco()

Set the value of IdBanco

public setIdBanco(mixed $IdBanco) : self
Parameters
$IdBanco : mixed
Return values
self

setIdContaBancaria()

Set the value of idContaBancaria

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

setLimiteCredito()

Set the value of limiteCredito

public setLimiteCredito(mixed $limiteCredito) : self
Parameters
$limiteCredito : mixed
Return values
self

setLimiteCreditoFinanciamento()

Set the value of limiteCreditoFinanciamento

public setLimiteCreditoFinanciamento(mixed $limiteCreditoFinanciamento) : self
Parameters
$limiteCreditoFinanciamento : mixed
Return values
self

setNomeConta()

Set the value of nomeConta

public setNomeConta(mixed $nomeConta) : self
Parameters
$nomeConta : mixed
Return values
self

setNumeroConta()

Set the value of numeroConta

public setNumeroConta(mixed $numeroConta) : self
Parameters
$numeroConta : mixed
Return values
self

setOfxBanking()

Set the value of ofxBanking

public setOfxBanking(mixed $ofxBanking) : self
Parameters
$ofxBanking : mixed
Return values
self

setPasswdBanking()

Set the value of passwdBanking

public setPasswdBanking(mixed $passwdBanking) : self
Parameters
$passwdBanking : mixed
Return values
self

setSaldoAbertura()

Set the value of saldoAbertura

public setSaldoAbertura(mixed $saldoAbertura) : self
Parameters
$saldoAbertura : mixed
Return values
self

setSaldoAtual()

Set the value of saldoAtual

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

setSaldoBanco()

Set the value of saldoBanco

public setSaldoBanco(mixed $saldoBanco) : self
Parameters
$saldoBanco : mixed
Return values
self

setSaldoConfere()

Set the value of saldoConfere

public setSaldoConfere(mixed $saldoConfere) : self
Parameters
$saldoConfere : mixed
Return values
self

setSaldoMinimo()

Set the value of saldoMinimo

public setSaldoMinimo(mixed $saldoMinimo) : self
Parameters
$saldoMinimo : mixed
Return values
self

setStatus()

Set the value of status

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

setStatusFC()

Set the value of statusFC

public setStatusFC(mixed $statusFC) : self
Parameters
$statusFC : mixed
Return values
self

setTipoCPFCNPJ()

Set the value of tipoCPFCNPJ

public setTipoCPFCNPJ(mixed $tipoCPFCNPJ) : self
Parameters
$tipoCPFCNPJ : mixed
Return values
self

setTitular()

Set the value of titular

public setTitular(mixed $titular) : self
Parameters
$titular : mixed
Return values
self

setUltimaDataConfere()

Set the value of ultimaDataConfere

public setUltimaDataConfere(mixed $ultimaDataConfere) : self
Parameters
$ultimaDataConfere : mixed
Return values
self

setUsuarioBanking()

Set the value of usuarioBanking

public setUsuarioBanking(mixed $usuarioBanking) : self
Parameters
$usuarioBanking : mixed
Return values
self

setUsuarioEmpresaBanking()

Set the value of usuarioEmpresaBanking

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