CotacaoIntegracaoEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['*']]
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DASHBOARD
- db_table = 'cotacao_integracao'
- pk_field = 'idCotacaoIntegracao'
- 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 = []
Properties
- $aparece : mixed
- $DataHora : mixed
- $decimais : mixed
- $dividiValor : mixed
- $entreVarIni : mixed
- $entreVarIni0 : mixed
- $fonte : mixed
- $idCotacaoIntegracao : mixed
- $idUsuario : mixed
- $link : mixed
- $moedaCotacao : mixed
- $nomeCotacao : mixed
- $ordem : mixed
- $sql_consulta : mixed
- $status : mixed
- $statusBP : mixed
- $tipoRetorno : mixed
- $ultimaDataCotacao : mixed
- $valorAtualCotacao : mixed
- $valorSimulaCotacao : mixed
- $vetorValor : mixed
- $vetorVarIni : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAparece() : mixed
- Get the value of aparece
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getDecimais() : mixed
- Get the value of decimais
- getDividiValor() : mixed
- Get the value of dividiValor
- getEntreVarIni() : mixed
- Get the value of entreVarIni
- getEntreVarIni0() : mixed
- Get the value of entreVarIni0
- getFonte() : mixed
- Get the value of fonte
- getIdCotacaoIntegracao() : mixed
- Get the value of idCotacaoIntegracao
- getIdUsuario() : mixed
- Get the value of idUsuario
- getLink() : mixed
- Get the value of link
- getMoedaCotacao() : mixed
- Get the value of moedaCotacao
- getNomeCotacao() : mixed
- Get the value of nomeCotacao
- getOrdem() : mixed
- Get the value of ordem
- getSql_consulta() : mixed
- Get the value of sql_consulta
- getStatus() : mixed
- Get the value of status
- getStatusBP() : mixed
- Get the value of statusBP
- getTable() : mixed
- getTipoRetorno() : mixed
- Get the value of tipoRetorno
- getUltimaDataCotacao() : mixed
- Get the value of ultimaDataCotacao
- getValorAtualCotacao() : mixed
- Get the value of valorAtualCotacao
- getValorSimulaCotacao() : mixed
- Get the value of valorSimulaCotacao
- getVetorValor() : mixed
- Get the value of vetorValor
- getVetorVarIni() : mixed
- Get the value of vetorVarIni
- 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
- setDataHora() : self
- Set the value of DataHora
- setDecimais() : self
- Set the value of decimais
- setDividiValor() : self
- Set the value of dividiValor
- setEntreVarIni() : self
- Set the value of entreVarIni
- setEntreVarIni0() : self
- Set the value of entreVarIni0
- setFonte() : self
- Set the value of fonte
- setIdCotacaoIntegracao() : self
- Set the value of idCotacaoIntegracao
- setIdUsuario() : self
- Set the value of idUsuario
- setLink() : self
- Set the value of link
- setMoedaCotacao() : self
- Set the value of moedaCotacao
- setNomeCotacao() : self
- Set the value of nomeCotacao
- setOrdem() : self
- Set the value of ordem
- setSql_consulta() : self
- Set the value of sql_consulta
- setStatus() : self
- Set the value of status
- setStatusBP() : self
- Set the value of statusBP
- setTipoRetorno() : self
- Set the value of tipoRetorno
- setUltimaDataCotacao() : self
- Set the value of ultimaDataCotacao
- setValorAtualCotacao() : self
- Set the value of valorAtualCotacao
- setValorSimulaCotacao() : self
- Set the value of valorSimulaCotacao
- setVetorValor() : self
- Set the value of vetorValor
- setVetorVarIni() : self
- Set the value of vetorVarIni
- 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' => ['*']]
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DASHBOARD
db_table
public
mixed
db_table
= 'cotacao_integracao'
pk_field
public
mixed
pk_field
= 'idCotacaoIntegracao'
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
= []
Properties
$aparece
private
mixed
$aparece
$DataHora
private
mixed
$DataHora
$decimais
private
mixed
$decimais
$dividiValor
private
mixed
$dividiValor
$entreVarIni
private
mixed
$entreVarIni
$entreVarIni0
private
mixed
$entreVarIni0
$fonte
private
mixed
$fonte
$idCotacaoIntegracao
private
mixed
$idCotacaoIntegracao
$idUsuario
private
mixed
$idUsuario
$link
private
mixed
$link
$moedaCotacao
private
mixed
$moedaCotacao
$nomeCotacao
private
mixed
$nomeCotacao
$ordem
private
mixed
$ordem
$sql_consulta
private
mixed
$sql_consulta
$status
private
mixed
$status
$statusBP
private
mixed
$statusBP
$tipoRetorno
private
mixed
$tipoRetorno
$ultimaDataCotacao
private
mixed
$ultimaDataCotacao
$valorAtualCotacao
private
mixed
$valorAtualCotacao
$valorSimulaCotacao
private
mixed
$valorSimulaCotacao
$vetorValor
private
mixed
$vetorValor
$vetorVarIni
private
mixed
$vetorVarIni
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 = []
getAparece()
Get the value of aparece
public
getAparece() : 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
getDecimais()
Get the value of decimais
public
getDecimais() : mixed
getDividiValor()
Get the value of dividiValor
public
getDividiValor() : mixed
getEntreVarIni()
Get the value of entreVarIni
public
getEntreVarIni() : mixed
getEntreVarIni0()
Get the value of entreVarIni0
public
getEntreVarIni0() : mixed
getFonte()
Get the value of fonte
public
getFonte() : mixed
getIdCotacaoIntegracao()
Get the value of idCotacaoIntegracao
public
getIdCotacaoIntegracao() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getLink()
Get the value of link
public
getLink() : mixed
getMoedaCotacao()
Get the value of moedaCotacao
public
getMoedaCotacao() : mixed
getNomeCotacao()
Get the value of nomeCotacao
public
getNomeCotacao() : mixed
getOrdem()
Get the value of ordem
public
getOrdem() : mixed
getSql_consulta()
Get the value of sql_consulta
public
getSql_consulta() : mixed
getStatus()
Get the value of status
public
getStatus() : mixed
getStatusBP()
Get the value of statusBP
public
getStatusBP() : mixed
getTable()
public
getTable() : mixed
getTipoRetorno()
Get the value of tipoRetorno
public
getTipoRetorno() : mixed
getUltimaDataCotacao()
Get the value of ultimaDataCotacao
public
getUltimaDataCotacao() : mixed
getValorAtualCotacao()
Get the value of valorAtualCotacao
public
getValorAtualCotacao() : mixed
getValorSimulaCotacao()
Get the value of valorSimulaCotacao
public
getValorSimulaCotacao() : mixed
getVetorValor()
Get the value of vetorValor
public
getVetorValor() : mixed
getVetorVarIni()
Get the value of vetorVarIni
public
getVetorVarIni() : 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
setAparece()
Set the value of aparece
public
setAparece(mixed $aparece) : self
Parameters
- $aparece : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDecimais()
Set the value of decimais
public
setDecimais(mixed $decimais) : self
Parameters
- $decimais : mixed
Return values
selfsetDividiValor()
Set the value of dividiValor
public
setDividiValor(mixed $dividiValor) : self
Parameters
- $dividiValor : mixed
Return values
selfsetEntreVarIni()
Set the value of entreVarIni
public
setEntreVarIni(mixed $entreVarIni) : self
Parameters
- $entreVarIni : mixed
Return values
selfsetEntreVarIni0()
Set the value of entreVarIni0
public
setEntreVarIni0(mixed $entreVarIni0) : self
Parameters
- $entreVarIni0 : mixed
Return values
selfsetFonte()
Set the value of fonte
public
setFonte(mixed $fonte) : self
Parameters
- $fonte : mixed
Return values
selfsetIdCotacaoIntegracao()
Set the value of idCotacaoIntegracao
public
setIdCotacaoIntegracao(mixed $idCotacaoIntegracao) : self
Parameters
- $idCotacaoIntegracao : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetLink()
Set the value of link
public
setLink(mixed $link) : self
Parameters
- $link : mixed
Return values
selfsetMoedaCotacao()
Set the value of moedaCotacao
public
setMoedaCotacao(mixed $moedaCotacao) : self
Parameters
- $moedaCotacao : mixed
Return values
selfsetNomeCotacao()
Set the value of nomeCotacao
public
setNomeCotacao(mixed $nomeCotacao) : self
Parameters
- $nomeCotacao : mixed
Return values
selfsetOrdem()
Set the value of ordem
public
setOrdem(mixed $ordem) : self
Parameters
- $ordem : mixed
Return values
selfsetSql_consulta()
Set the value of sql_consulta
public
setSql_consulta(mixed $sql_consulta) : self
Parameters
- $sql_consulta : mixed
Return values
selfsetStatus()
Set the value of status
public
setStatus(mixed $status) : self
Parameters
- $status : mixed
Return values
selfsetStatusBP()
Set the value of statusBP
public
setStatusBP(mixed $statusBP) : self
Parameters
- $statusBP : mixed
Return values
selfsetTipoRetorno()
Set the value of tipoRetorno
public
setTipoRetorno(mixed $tipoRetorno) : self
Parameters
- $tipoRetorno : mixed
Return values
selfsetUltimaDataCotacao()
Set the value of ultimaDataCotacao
public
setUltimaDataCotacao(mixed $ultimaDataCotacao) : self
Parameters
- $ultimaDataCotacao : mixed
Return values
selfsetValorAtualCotacao()
Set the value of valorAtualCotacao
public
setValorAtualCotacao(mixed $valorAtualCotacao) : self
Parameters
- $valorAtualCotacao : mixed
Return values
selfsetValorSimulaCotacao()
Set the value of valorSimulaCotacao
public
setValorSimulaCotacao(mixed $valorSimulaCotacao) : self
Parameters
- $valorSimulaCotacao : mixed
Return values
selfsetVetorValor()
Set the value of vetorValor
public
setVetorValor(mixed $vetorValor) : self
Parameters
- $vetorValor : mixed
Return values
selfsetVetorVarIni()
Set the value of vetorVarIni
public
setVetorVarIni(mixed $vetorVarIni) : self
Parameters
- $vetorVarIni : 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 = '*'