PaginaEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = []
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'paginas_html'
- pk_field = 'idPagina'
- sanitize = []
- security = ['update' => 'src\models\PaginaSecurity::securityUpdate']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = []
Properties
- $caminhoPagina : mixed
- $campofixo : mixed
- $campoPermissao : mixed
- $controllerMethod : mixed
- $dataHora : mixed
- $head_html : mixed
- $idPagina : mixed
- $idPaginaCategoria : mixed
- $idPaginaRelacao : mixed
- $idUsuario : mixed
- $link_permanente : mixed
- $linkDirect : mixed
- $nameTable : mixed
- $nomePagina : mixed
- $onBoarding : mixed
- $ordem : mixed
- $raizPagina : mixed
- $route : mixed
- $screenRecord : mixed
- $status : mixed
- $tagPesquisa : mixed
- $textoManual : mixed
- $tipoPagina : mixed
- $tituloPagina : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCaminhoPagina() : mixed
- Get the value of caminhoPagina
- getCampofixo() : mixed
- Get the value of campofixo
- getCampoPermissao() : mixed
- Get the value of campoPermissao
- getConst() : mixed
- getConstObj() : mixed
- getControllerMethod() : mixed
- Get the value of controllerMethod
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of dataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getHead_html() : mixed
- Get the value of head_html
- getIdPagina() : mixed
- Get the value of idPagina
- getIdPaginaCategoria() : mixed
- Get the value of idPaginaCategoria
- getIdPaginaRelacao() : mixed
- Get the value of idPaginaRelacao
- getIdUsuario() : mixed
- Get the value of idUsuario
- getLink_permanente() : mixed
- Get the value of link_permanente
- getLinkDirect() : mixed
- Get the value of linkDirect
- getNameTable() : mixed
- Get the value of nameTable
- getNomePagina() : mixed
- Get the value of nomePagina
- getOnBoarding() : mixed
- Get the value of onBoarding
- getOrdem() : mixed
- Get the value of ordem
- getRaizPagina() : mixed
- Get the value of raizPagina
- getRoute() : mixed
- Get the value of route
- getScreenRecord() : mixed
- Get the value of screenRecord
- getStatus() : mixed
- Get the value of status
- getTable() : mixed
- getTagPesquisa() : mixed
- Get the value of tagPesquisa
- getTextoManual() : mixed
- Get the value of textoManual
- getTipoPagina() : mixed
- Get the value of tipoPagina
- getTituloPagina() : mixed
- Get the value of tituloPagina
- 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
- setCaminhoPagina() : self
- Set the value of caminhoPagina
- setCampofixo() : self
- Set the value of campofixo
- setCampoPermissao() : self
- Set the value of campoPermissao
- setControllerMethod() : mixed
- Set the value of controllerMethod
- setDataHora() : self
- Set the value of dataHora
- setHead_html() : self
- Set the value of head_html
- setIdPagina() : self
- Set the value of idPagina
- setIdPaginaCategoria() : self
- Set the value of idPaginaCategoria
- setIdPaginaRelacao() : self
- Set the value of idPaginaRelacao
- setIdUsuario() : self
- Set the value of idUsuario
- setLink_permanente() : self
- Set the value of link_permanente
- setLinkDirect() : self
- Set the value of linkDirect
- setNameTable() : self
- Set the value of nameTable
- setNomePagina() : self
- Set the value of nomePagina
- setOnBoarding() : self
- Set the value of onBoarding
- setOrdem() : self
- Set the value of ordem
- setRaizPagina() : self
- Set the value of raizPagina
- setRoute() : self
- Set the value of route
- setScreenRecord() : self
- Set the value of screenRecord
- setStatus() : self
- Set the value of status
- setTagPesquisa() : self
- Set the value of tagPesquisa
- setTextoManual() : self
- Set the value of textoManual
- setTipoPagina() : self
- Set the value of tipoPagina
- setTituloPagina() : self
- Set the value of tituloPagina
- 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
= 'paginas_html'
pk_field
public
mixed
pk_field
= 'idPagina'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['update' => 'src\models\PaginaSecurity::securityUpdate']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= []
Properties
$caminhoPagina
private
mixed
$caminhoPagina
$campofixo
private
mixed
$campofixo
$campoPermissao
private
mixed
$campoPermissao
$controllerMethod
private
mixed
$controllerMethod
$dataHora
private
mixed
$dataHora
$head_html
private
mixed
$head_html
$idPagina
private
mixed
$idPagina
$idPaginaCategoria
private
mixed
$idPaginaCategoria
$idPaginaRelacao
private
mixed
$idPaginaRelacao
$idUsuario
private
mixed
$idUsuario
$link_permanente
private
mixed
$link_permanente
$linkDirect
private
mixed
$linkDirect
$nameTable
private
mixed
$nameTable
$nomePagina
private
mixed
$nomePagina
$onBoarding
private
mixed
$onBoarding
$ordem
private
mixed
$ordem
$raizPagina
private
mixed
$raizPagina
$route
private
mixed
$route
$screenRecord
private
mixed
$screenRecord
$status
private
mixed
$status
$tagPesquisa
private
mixed
$tagPesquisa
$textoManual
private
mixed
$textoManual
$tipoPagina
private
mixed
$tipoPagina
$tituloPagina
private
mixed
$tituloPagina
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
getCaminhoPagina()
Get the value of caminhoPagina
public
getCaminhoPagina() : mixed
getCampofixo()
Get the value of campofixo
public
getCampofixo() : mixed
getCampoPermissao()
Get the value of campoPermissao
public
getCampoPermissao() : 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
getControllerMethod()
Get the value of controllerMethod
public
getControllerMethod() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of dataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getHead_html()
Get the value of head_html
public
getHead_html() : mixed
getIdPagina()
Get the value of idPagina
public
getIdPagina() : mixed
getIdPaginaCategoria()
Get the value of idPaginaCategoria
public
getIdPaginaCategoria() : mixed
getIdPaginaRelacao()
Get the value of idPaginaRelacao
public
getIdPaginaRelacao() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getLink_permanente()
Get the value of link_permanente
public
getLink_permanente() : mixed
getLinkDirect()
Get the value of linkDirect
public
getLinkDirect() : mixed
getNameTable()
Get the value of nameTable
public
getNameTable() : mixed
getNomePagina()
Get the value of nomePagina
public
getNomePagina() : mixed
getOnBoarding()
Get the value of onBoarding
public
getOnBoarding() : mixed
getOrdem()
Get the value of ordem
public
getOrdem() : mixed
getRaizPagina()
Get the value of raizPagina
public
getRaizPagina() : mixed
getRoute()
Get the value of route
public
getRoute() : mixed
getScreenRecord()
Get the value of screenRecord
public
getScreenRecord() : mixed
getStatus()
Get the value of status
public
getStatus() : mixed
getTable()
public
getTable() : mixed
getTagPesquisa()
Get the value of tagPesquisa
public
getTagPesquisa() : mixed
getTextoManual()
Get the value of textoManual
public
getTextoManual() : mixed
getTipoPagina()
Get the value of tipoPagina
public
getTipoPagina() : mixed
getTituloPagina()
Get the value of tituloPagina
public
getTituloPagina() : 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
setCaminhoPagina()
Set the value of caminhoPagina
public
setCaminhoPagina(mixed $caminhoPagina) : self
Parameters
- $caminhoPagina : mixed
Return values
selfsetCampofixo()
Set the value of campofixo
public
setCampofixo(mixed $campofixo) : self
Parameters
- $campofixo : mixed
Return values
selfsetCampoPermissao()
Set the value of campoPermissao
public
setCampoPermissao(mixed $campoPermissao) : self
Parameters
- $campoPermissao : mixed
Return values
selfsetControllerMethod()
Set the value of controllerMethod
public
setControllerMethod(mixed $controllerMethod) : mixed
Parameters
- $controllerMethod : mixed
setDataHora()
Set the value of dataHora
public
setDataHora(mixed $dataHora) : self
Parameters
- $dataHora : mixed
Return values
selfsetHead_html()
Set the value of head_html
public
setHead_html(mixed $head_html) : self
Parameters
- $head_html : mixed
Return values
selfsetIdPagina()
Set the value of idPagina
public
setIdPagina(mixed $idPagina) : self
Parameters
- $idPagina : mixed
Return values
selfsetIdPaginaCategoria()
Set the value of idPaginaCategoria
public
setIdPaginaCategoria(mixed $idPaginaCategoria) : self
Parameters
- $idPaginaCategoria : mixed
Return values
selfsetIdPaginaRelacao()
Set the value of idPaginaRelacao
public
setIdPaginaRelacao(mixed $idPaginaRelacao) : self
Parameters
- $idPaginaRelacao : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetLink_permanente()
Set the value of link_permanente
public
setLink_permanente(mixed $link_permanente) : self
Parameters
- $link_permanente : mixed
Return values
selfsetLinkDirect()
Set the value of linkDirect
public
setLinkDirect(mixed $linkDirect) : self
Parameters
- $linkDirect : mixed
Return values
selfsetNameTable()
Set the value of nameTable
public
setNameTable(mixed $nameTable) : self
Parameters
- $nameTable : mixed
Return values
selfsetNomePagina()
Set the value of nomePagina
public
setNomePagina(mixed $nomePagina) : self
Parameters
- $nomePagina : mixed
Return values
selfsetOnBoarding()
Set the value of onBoarding
public
setOnBoarding(mixed $onBoarding) : self
Parameters
- $onBoarding : mixed
Return values
selfsetOrdem()
Set the value of ordem
public
setOrdem(mixed $ordem) : self
Parameters
- $ordem : mixed
Return values
selfsetRaizPagina()
Set the value of raizPagina
public
setRaizPagina(mixed $raizPagina) : self
Parameters
- $raizPagina : mixed
Return values
selfsetRoute()
Set the value of route
public
setRoute(mixed $route) : self
Parameters
- $route : mixed
Return values
selfsetScreenRecord()
Set the value of screenRecord
public
setScreenRecord(mixed $screenRecord) : self
Parameters
- $screenRecord : mixed
Return values
selfsetStatus()
Set the value of status
public
setStatus(mixed $status) : self
Parameters
- $status : mixed
Return values
selfsetTagPesquisa()
Set the value of tagPesquisa
public
setTagPesquisa(mixed $tagPesquisa) : self
Parameters
- $tagPesquisa : mixed
Return values
selfsetTextoManual()
Set the value of textoManual
public
setTextoManual(mixed $textoManual) : self
Parameters
- $textoManual : mixed
Return values
selfsetTipoPagina()
Set the value of tipoPagina
public
setTipoPagina(mixed $tipoPagina) : self
Parameters
- $tipoPagina : mixed
Return values
selfsetTituloPagina()
Set the value of tituloPagina
public
setTituloPagina(mixed $tituloPagina) : self
Parameters
- $tituloPagina : 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 = '*'