Documentation

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

sanitize

public mixed sanitize = []

security

Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>

public mixed security = ['update' => 'src\models\PaginaSecurity::securityUpdate']

validations

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

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

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_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

setCaminhoPagina()

Set the value of caminhoPagina

public setCaminhoPagina(mixed $caminhoPagina) : self
Parameters
$caminhoPagina : mixed
Return values
self

setCampofixo()

Set the value of campofixo

public setCampofixo(mixed $campofixo) : self
Parameters
$campofixo : mixed
Return values
self

setCampoPermissao()

Set the value of campoPermissao

public setCampoPermissao(mixed $campoPermissao) : self
Parameters
$campoPermissao : mixed
Return values
self

setControllerMethod()

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
self

setHead_html()

Set the value of head_html

public setHead_html(mixed $head_html) : self
Parameters
$head_html : mixed
Return values
self

setIdPagina()

Set the value of idPagina

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

setIdPaginaCategoria()

Set the value of idPaginaCategoria

public setIdPaginaCategoria(mixed $idPaginaCategoria) : self
Parameters
$idPaginaCategoria : mixed
Return values
self

setIdPaginaRelacao()

Set the value of idPaginaRelacao

public setIdPaginaRelacao(mixed $idPaginaRelacao) : self
Parameters
$idPaginaRelacao : 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_permanente

public setLink_permanente(mixed $link_permanente) : self
Parameters
$link_permanente : mixed
Return values
self

setLinkDirect()

Set the value of linkDirect

public setLinkDirect(mixed $linkDirect) : self
Parameters
$linkDirect : mixed
Return values
self

setNameTable()

Set the value of nameTable

public setNameTable(mixed $nameTable) : self
Parameters
$nameTable : mixed
Return values
self

setNomePagina()

Set the value of nomePagina

public setNomePagina(mixed $nomePagina) : self
Parameters
$nomePagina : mixed
Return values
self

setOnBoarding()

Set the value of onBoarding

public setOnBoarding(mixed $onBoarding) : self
Parameters
$onBoarding : mixed
Return values
self

setOrdem()

Set the value of ordem

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

setRaizPagina()

Set the value of raizPagina

public setRaizPagina(mixed $raizPagina) : self
Parameters
$raizPagina : mixed
Return values
self

setRoute()

Set the value of route

public setRoute(mixed $route) : self
Parameters
$route : mixed
Return values
self

setScreenRecord()

Set the value of screenRecord

public setScreenRecord(mixed $screenRecord) : self
Parameters
$screenRecord : mixed
Return values
self

setStatus()

Set the value of status

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

setTagPesquisa()

Set the value of tagPesquisa

public setTagPesquisa(mixed $tagPesquisa) : self
Parameters
$tagPesquisa : mixed
Return values
self

setTextoManual()

Set the value of textoManual

public setTextoManual(mixed $textoManual) : self
Parameters
$textoManual : mixed
Return values
self

setTipoPagina()

Set the value of tipoPagina

public setTipoPagina(mixed $tipoPagina) : self
Parameters
$tipoPagina : mixed
Return values
self

setTituloPagina()

Set the value of tituloPagina

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