FinanciamentoAtivoEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = []
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'finan_financiamento_ativos'
- pk_field = 'idFinanAtivo'
- sanitize = []
- 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 = ['grauGarantia' => ['required' => 'O campo Grau da Garantia é obrigatório.'], 'valorGarantia' => ['required' => 'O campo Valor da Garantia é obrigatório.']]
Properties
- $AnoAgricolaSafra : mixed
- $areaAplicadaHa : mixed
- $descricaoGarantia : mixed
- $grauGarantia : mixed
- $idAtivo : mixed
- $idFazenda : mixed
- $idFazendaAreaAplicada : mixed
- $idFinanAtivo : mixed
- $idFinanciamento : mixed
- $idMatriculaCusteio : mixed
- $idMatriculaGarantia : mixed
- $participacao : mixed
- $tipoGarantia : mixed
- $valorGarantia : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAnoAgricolaSafra() : mixed
- Get the value of AnoAgricolaSafra
- getAreaAplicadaHa() : mixed
- Get the value of areaAplicadaHa
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDBDriver() : mixed
- getDBTable() : mixed
- getDescricaoGarantia() : mixed
- Get the value of descricaoGarantia
- getGrauGarantia() : mixed
- Get the value of grauGarantia
- getIdAtivo() : mixed
- Get the value of idAtivo
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdFazendaAreaAplicada() : mixed
- Get the value of idFazendaAreaAplicada
- getIdFinanAtivo() : mixed
- Get the value of idFinanAtivo
- getIdFinanciamento() : mixed
- Get the value of idFinanciamento
- getIdMatriculaCusteio() : mixed
- Get the value of idMatriculaCusteio
- getIdMatriculaGarantia() : mixed
- Get the value of idMatriculaGarantia
- getParticipacao() : mixed
- Get the value of participacao
- getTable() : mixed
- getTipoGarantia() : mixed
- Get the value of tipoGarantia
- getValorGarantia() : mixed
- Get the value of valorGarantia
- 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
- setAnoAgricolaSafra() : self
- Set the value of AnoAgricolaSafra
- setAreaAplicadaHa() : self
- Set the value of areaAplicadaHa
- setDescricaoGarantia() : self
- Set the value of descricaoGarantia
- setGrauGarantia() : self
- Set the value of grauGarantia
- setIdAtivo() : self
- Set the value of idAtivo
- setIdFazenda() : self
- Set the value of idFazenda
- setIdFazendaAreaAplicada() : self
- Set the value of idFazendaAreaAplicada
- setIdFinanAtivo() : self
- Set the value of idFinanAtivo
- setIdFinanciamento() : self
- Set the value of idFinanciamento
- setIdMatriculaCusteio() : self
- Set the value of idMatriculaCusteio
- setIdMatriculaGarantia() : self
- Set the value of idMatriculaGarantia
- setParticipacao() : self
- Set the value of participacao
- setTipoGarantia() : self
- Set the value of tipoGarantia
- setValorGarantia() : self
- Set the value of valorGarantia
- 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
= []
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'finan_financiamento_ativos'
pk_field
public
mixed
pk_field
= 'idFinanAtivo'
sanitize
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
public
mixed
validations
= ['grauGarantia' => ['required' => 'O campo Grau da Garantia é obrigatório.'], 'valorGarantia' => ['required' => 'O campo Valor da Garantia é obrigatório.']]
Properties
$AnoAgricolaSafra
private
mixed
$AnoAgricolaSafra
$areaAplicadaHa
private
mixed
$areaAplicadaHa
$descricaoGarantia
private
mixed
$descricaoGarantia
$grauGarantia
private
mixed
$grauGarantia
$idAtivo
private
mixed
$idAtivo
$idFazenda
private
mixed
$idFazenda
$idFazendaAreaAplicada
private
mixed
$idFazendaAreaAplicada
$idFinanAtivo
private
mixed
$idFinanAtivo
$idFinanciamento
private
mixed
$idFinanciamento
$idMatriculaCusteio
private
mixed
$idMatriculaCusteio
$idMatriculaGarantia
private
mixed
$idMatriculaGarantia
$participacao
private
mixed
$participacao
$tipoGarantia
private
mixed
$tipoGarantia
$valorGarantia
private
mixed
$valorGarantia
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 = []
getAnoAgricolaSafra()
Get the value of AnoAgricolaSafra
public
getAnoAgricolaSafra() : mixed
getAreaAplicadaHa()
Get the value of areaAplicadaHa
public
getAreaAplicadaHa() : 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
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDescricaoGarantia()
Get the value of descricaoGarantia
public
getDescricaoGarantia() : mixed
getGrauGarantia()
Get the value of grauGarantia
public
getGrauGarantia() : mixed
getIdAtivo()
Get the value of idAtivo
public
getIdAtivo() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdFazendaAreaAplicada()
Get the value of idFazendaAreaAplicada
public
getIdFazendaAreaAplicada() : mixed
getIdFinanAtivo()
Get the value of idFinanAtivo
public
getIdFinanAtivo() : mixed
getIdFinanciamento()
Get the value of idFinanciamento
public
getIdFinanciamento() : mixed
getIdMatriculaCusteio()
Get the value of idMatriculaCusteio
public
getIdMatriculaCusteio() : mixed
getIdMatriculaGarantia()
Get the value of idMatriculaGarantia
public
getIdMatriculaGarantia() : mixed
getParticipacao()
Get the value of participacao
public
getParticipacao() : mixed
getTable()
public
getTable() : mixed
getTipoGarantia()
Get the value of tipoGarantia
public
getTipoGarantia() : mixed
getValorGarantia()
Get the value of valorGarantia
public
getValorGarantia() : 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
setAnoAgricolaSafra()
Set the value of AnoAgricolaSafra
public
setAnoAgricolaSafra(mixed $AnoAgricolaSafra) : self
Parameters
- $AnoAgricolaSafra : mixed
Return values
selfsetAreaAplicadaHa()
Set the value of areaAplicadaHa
public
setAreaAplicadaHa(mixed $areaAplicadaHa) : self
Parameters
- $areaAplicadaHa : mixed
Return values
selfsetDescricaoGarantia()
Set the value of descricaoGarantia
public
setDescricaoGarantia(mixed $descricaoGarantia) : self
Parameters
- $descricaoGarantia : mixed
Return values
selfsetGrauGarantia()
Set the value of grauGarantia
public
setGrauGarantia(mixed $grauGarantia) : self
Parameters
- $grauGarantia : mixed
Return values
selfsetIdAtivo()
Set the value of idAtivo
public
setIdAtivo(mixed $idAtivo) : self
Parameters
- $idAtivo : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdFazendaAreaAplicada()
Set the value of idFazendaAreaAplicada
public
setIdFazendaAreaAplicada(mixed $idFazendaAreaAplicada) : self
Parameters
- $idFazendaAreaAplicada : mixed
Return values
selfsetIdFinanAtivo()
Set the value of idFinanAtivo
public
setIdFinanAtivo(mixed $idFinanAtivo) : self
Parameters
- $idFinanAtivo : mixed
Return values
selfsetIdFinanciamento()
Set the value of idFinanciamento
public
setIdFinanciamento(mixed $idFinanciamento) : self
Parameters
- $idFinanciamento : mixed
Return values
selfsetIdMatriculaCusteio()
Set the value of idMatriculaCusteio
public
setIdMatriculaCusteio(mixed $idMatriculaCusteio) : self
Parameters
- $idMatriculaCusteio : mixed
Return values
selfsetIdMatriculaGarantia()
Set the value of idMatriculaGarantia
public
setIdMatriculaGarantia(mixed $idMatriculaGarantia) : self
Parameters
- $idMatriculaGarantia : mixed
Return values
selfsetParticipacao()
Set the value of participacao
public
setParticipacao(mixed $participacao) : self
Parameters
- $participacao : mixed
Return values
selfsetTipoGarantia()
Set the value of tipoGarantia
public
setTipoGarantia(mixed $tipoGarantia) : self
Parameters
- $tipoGarantia : mixed
Return values
selfsetValorGarantia()
Set the value of valorGarantia
public
setValorGarantia(mixed $valorGarantia) : self
Parameters
- $valorGarantia : 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 = '*'