Documentation

CotacaoEntity 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  = 'cotacao'
pk_field  = 'idCotacao'
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  = []
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$aparece  : mixed
$DataHora  : mixed
$decimais  : mixed
$dividiValor  : mixed
$entreVarIni  : mixed
$entreVarIni0  : mixed
$fonte  : mixed
$idCotacao  : mixed
$idCotacaoIntegracao  : mixed
$idUsuario  : mixed
$link  : mixed
$moedaCotacao  : mixed
$nomeCotacao  : mixed
$ordem  : mixed
$qtdBuscaErro  : 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
getIdCotacao()  : mixed
Get the value of idCotacao
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
getQtdBuscaErro()  : mixed
Get the value of qtdBuscaErro
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
setIdCotacao()  : self
Set the value of idCotacao
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
setQtdBuscaErro()  : self
Set the value of qtdBuscaErro
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' => ['DataHora']]

const_values

public mixed const_values = []

database

public mixed database = \config\Config::DB_DEFAULT

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']

validations

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

public mixed validations = []

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 = []

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

getIdCotacao()

Get the value of idCotacao

public getIdCotacao() : mixed

getIdCotacaoIntegracao()

Get the value of idCotacaoIntegracao

public getIdCotacaoIntegracao() : mixed

getIdUsuario()

Get the value of idUsuario

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

getQtdBuscaErro()

Get the value of qtdBuscaErro

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

setDataHora()

Set the value of DataHora

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

setDecimais()

Set the value of decimais

public setDecimais(mixed $decimais) : self
Parameters
$decimais : mixed
Return values
self

setDividiValor()

Set the value of dividiValor

public setDividiValor(mixed $dividiValor) : self
Parameters
$dividiValor : mixed
Return values
self

setEntreVarIni()

Set the value of entreVarIni

public setEntreVarIni(mixed $entreVarIni) : self
Parameters
$entreVarIni : mixed
Return values
self

setEntreVarIni0()

Set the value of entreVarIni0

public setEntreVarIni0(mixed $entreVarIni0) : self
Parameters
$entreVarIni0 : mixed
Return values
self

setFonte()

Set the value of fonte

public setFonte(mixed $fonte) : self
Parameters
$fonte : mixed
Return values
self

setIdCotacao()

Set the value of idCotacao

public setIdCotacao(mixed $idCotacao) : self
Parameters
$idCotacao : mixed
Return values
self

setIdCotacaoIntegracao()

Set the value of idCotacaoIntegracao

public setIdCotacaoIntegracao(mixed $idCotacaoIntegracao) : self
Parameters
$idCotacaoIntegracao : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

Set the value of link

public setLink(mixed $link) : self
Parameters
$link : mixed
Return values
self

setMoedaCotacao()

Set the value of moedaCotacao

public setMoedaCotacao(mixed $moedaCotacao) : self
Parameters
$moedaCotacao : mixed
Return values
self

setNomeCotacao()

Set the value of nomeCotacao

public setNomeCotacao(mixed $nomeCotacao) : self
Parameters
$nomeCotacao : mixed
Return values
self

setOrdem()

Set the value of ordem

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

setQtdBuscaErro()

Set the value of qtdBuscaErro

public setQtdBuscaErro(mixed $qtdBuscaErro) : self
Parameters
$qtdBuscaErro : mixed
Return values
self

setSql_consulta()

Set the value of sql_consulta

public setSql_consulta(mixed $sql_consulta) : self
Parameters
$sql_consulta : mixed
Return values
self

setStatus()

Set the value of status

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

setStatusBP()

Set the value of statusBP

public setStatusBP(mixed $statusBP) : self
Parameters
$statusBP : mixed
Return values
self

setTipoRetorno()

Set the value of tipoRetorno

public setTipoRetorno(mixed $tipoRetorno) : self
Parameters
$tipoRetorno : mixed
Return values
self

setUltimaDataCotacao()

Set the value of ultimaDataCotacao

public setUltimaDataCotacao(mixed $ultimaDataCotacao) : self
Parameters
$ultimaDataCotacao : mixed
Return values
self

setValorAtualCotacao()

Set the value of valorAtualCotacao

public setValorAtualCotacao(mixed $valorAtualCotacao) : self
Parameters
$valorAtualCotacao : mixed
Return values
self

setValorSimulaCotacao()

Set the value of valorSimulaCotacao

public setValorSimulaCotacao(mixed $valorSimulaCotacao) : self
Parameters
$valorSimulaCotacao : mixed
Return values
self

setVetorValor()

Set the value of vetorValor

public setVetorValor(mixed $vetorValor) : self
Parameters
$vetorValor : mixed
Return values
self

setVetorVarIni()

Set the value of vetorVarIni

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