PaginaUsuarioEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['DataHora'], 'object_rel' => 'idUsuario']
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'paginas_html_usuarios'
- pk_field = 'idPaginaUsuario'
- 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
- $apagar : mixed
- $cadastrar : mixed
- $DataHora : mixed
- $editar : mixed
- $favorito : mixed
- $idPagina : mixed
- $idPaginaUsuario : mixed
- $idUsuario : mixed
- $idUsuarioAltera : mixed
- $visualizar : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getApagar() : mixed
- Get the value of apagar
- getAuditlog() : mixed
- getCadastrar() : mixed
- Get the value of cadastrar
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getEditar() : mixed
- Get the value of editar
- getFavorito() : mixed
- Get the value of favorito
- getIdPagina() : mixed
- Get the value of idPagina
- getIdPaginaUsuario() : mixed
- Get the value of idPaginaUsuario
- getIdUsuario() : mixed
- Get the value of idUsuario
- getIdUsuarioAltera() : mixed
- Get the value of idUsuarioAltera
- getTable() : mixed
- getVisualizar() : mixed
- Get the value of visualizar
- 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
- setApagar() : self
- Set the value of apagar
- setCadastrar() : self
- Set the value of cadastrar
- setDataHora() : self
- Set the value of DataHora
- setEditar() : self
- Set the value of editar
- setFavorito() : self
- Set the value of favorito
- setIdPagina() : self
- Set the value of idPagina
- setIdPaginaUsuario() : self
- Set the value of idPaginaUsuario
- setIdUsuario() : self
- Set the value of idUsuario
- setIdUsuarioAltera() : self
- Set the value of idUsuarioAltera
- setVisualizar() : self
- Set the value of visualizar
- 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'], 'object_rel' => 'idUsuario']
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'paginas_html_usuarios'
pk_field
public
mixed
pk_field
= 'idPaginaUsuario'
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
$apagar
private
mixed
$apagar
$cadastrar
private
mixed
$cadastrar
$DataHora
private
mixed
$DataHora
$editar
private
mixed
$editar
$favorito
private
mixed
$favorito
$idPagina
private
mixed
$idPagina
$idPaginaUsuario
private
mixed
$idPaginaUsuario
$idUsuario
private
mixed
$idUsuario
$idUsuarioAltera
private
mixed
$idUsuarioAltera
$visualizar
private
mixed
$visualizar
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 = []
getApagar()
Get the value of apagar
public
getApagar() : mixed
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getCadastrar()
Get the value of cadastrar
public
getCadastrar() : 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
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getEditar()
Get the value of editar
public
getEditar() : mixed
getFavorito()
Get the value of favorito
public
getFavorito() : mixed
getIdPagina()
Get the value of idPagina
public
getIdPagina() : mixed
getIdPaginaUsuario()
Get the value of idPaginaUsuario
public
getIdPaginaUsuario() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getIdUsuarioAltera()
Get the value of idUsuarioAltera
public
getIdUsuarioAltera() : mixed
getTable()
public
getTable() : mixed
getVisualizar()
Get the value of visualizar
public
getVisualizar() : 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
setApagar()
Set the value of apagar
public
setApagar(mixed $apagar) : self
Parameters
- $apagar : mixed
Return values
selfsetCadastrar()
Set the value of cadastrar
public
setCadastrar(mixed $cadastrar) : self
Parameters
- $cadastrar : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetEditar()
Set the value of editar
public
setEditar(mixed $editar) : self
Parameters
- $editar : mixed
Return values
selfsetFavorito()
Set the value of favorito
public
setFavorito(mixed $favorito) : self
Parameters
- $favorito : mixed
Return values
selfsetIdPagina()
Set the value of idPagina
public
setIdPagina(mixed $idPagina) : self
Parameters
- $idPagina : mixed
Return values
selfsetIdPaginaUsuario()
Set the value of idPaginaUsuario
public
setIdPaginaUsuario(mixed $idPaginaUsuario) : self
Parameters
- $idPaginaUsuario : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetIdUsuarioAltera()
Set the value of idUsuarioAltera
public
setIdUsuarioAltera(mixed $idUsuarioAltera) : self
Parameters
- $idUsuarioAltera : mixed
Return values
selfsetVisualizar()
Set the value of visualizar
public
setVisualizar(mixed $visualizar) : self
Parameters
- $visualizar : 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 = '*'