Documentation

TrackingEntity extends Entity
in package

Table of Contents

Constants

auditlog  = ['exclude_fields' => ['*']]
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
const_values  = []
database  = \config\Config::DB_LOG
db_table  = 'trackinglog_model'
pk_field  = 'idTracking'
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  = false
validations  = []
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$acao  : mixed
$data  : mixed
$hostAddr  : mixed
$idPagina  : mixed
$idTracking  : mixed
$idUsuario  : mixed
$interacao  : mixed
$ip  : mixed
$navegador  : mixed
$navegadorVersao  : mixed
$sistema  : mixed
$sistemaVersao  : mixed
$token  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAcao()  : mixed
Get the value of acao
getAuditlog()  : mixed
getConst()  : mixed
getConstObj()  : mixed
getData()  : mixed
Get the value of data
getDatabase()  : mixed
getDBDriver()  : mixed
getDBTable()  : mixed
getHostAddr()  : mixed
Get the value of hostAddr
getIdPagina()  : mixed
Get the value of idPagina
getIdTracking()  : mixed
Get the value of idTracking
getIdUsuario()  : mixed
Get the value of idUsuario
getInteracao()  : mixed
Get the value of interacao
getIp()  : mixed
Get the value of ip
getNavegador()  : mixed
Get the value of navegador
getNavegadorVersao()  : mixed
Get the value of navegadorVersao
getSistema()  : mixed
Get the value of sistema
getSistemaVersao()  : mixed
Get the value of sistemaVersao
getTable()  : mixed
getToken()  : mixed
Get the value of token
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
setAcao()  : self
Set the value of acao
setData()  : self
Set the value of data
setHostAddr()  : self
Set the value of hostAddr
setIdPagina()  : self
Set the value of idPagina
setIdTracking()  : self
Set the value of idTracking
setIdUsuario()  : self
Set the value of idUsuario
setInteracao()  : self
Set the value of interacao
setIp()  : self
Set the value of ip
setNavegador()  : self
Set the value of navegador
setNavegadorVersao()  : self
Set the value of navegadorVersao
setSistema()  : self
Set the value of sistema
setSistemaVersao()  : self
Set the value of sistemaVersao
setToken()  : self
Set the value of token
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 = []

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

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

getHostAddr()

Get the value of hostAddr

public getHostAddr() : mixed

getIdPagina()

Get the value of idPagina

public getIdPagina() : mixed

getIdTracking()

Get the value of idTracking

public getIdTracking() : mixed

getIdUsuario()

Get the value of idUsuario

public getIdUsuario() : mixed

getInteracao()

Get the value of interacao

public getInteracao() : mixed

getNavegador()

Get the value of navegador

public getNavegador() : mixed

getNavegadorVersao()

Get the value of navegadorVersao

public getNavegadorVersao() : mixed

getSistema()

Get the value of sistema

public getSistema() : mixed

getSistemaVersao()

Get the value of sistemaVersao

public getSistemaVersao() : mixed

getTable()

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

setAcao()

Set the value of acao

public setAcao(mixed $acao) : self
Parameters
$acao : mixed
Return values
self

setData()

Set the value of data

public setData(mixed $data) : self
Parameters
$data : mixed
Return values
self

setHostAddr()

Set the value of hostAddr

public setHostAddr(mixed $hostAddr) : self
Parameters
$hostAddr : mixed
Return values
self

setIdPagina()

Set the value of idPagina

public setIdPagina(mixed $idPagina) : self
Parameters
$idPagina : mixed
Return values
self

setIdTracking()

Set the value of idTracking

public setIdTracking(mixed $idTracking) : self
Parameters
$idTracking : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setInteracao()

Set the value of interacao

public setInteracao(mixed $interacao) : self
Parameters
$interacao : mixed
Return values
self

setIp()

Set the value of ip

public setIp(mixed $ip) : self
Parameters
$ip : mixed
Return values
self

setNavegador()

Set the value of navegador

public setNavegador(mixed $navegador) : self
Parameters
$navegador : mixed
Return values
self

setNavegadorVersao()

Set the value of navegadorVersao

public setNavegadorVersao(mixed $navegadorVersao) : self
Parameters
$navegadorVersao : mixed
Return values
self

setSistema()

Set the value of sistema

public setSistema(mixed $sistema) : self
Parameters
$sistema : mixed
Return values
self

setSistemaVersao()

Set the value of sistemaVersao

public setSistemaVersao(mixed $sistemaVersao) : self
Parameters
$sistemaVersao : mixed
Return values
self

setToken()

Set the value of token

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