PaginaCampoEntity
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_campos'
- pk_field = 'idCampo'
- 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
- $consolidador : mixed
- $edit : mixed
- $filter : mixed
- $filtro_rapido : mixed
- $idCampo : mixed
- $idPagina : mixed
- $nomeCampo : mixed
- $nomeCampoAS : mixed
- $nomeCampoDesc : mixed
- $obs : mixed
- $ordem : mixed
- $totalizador : mixed
- $typeView : mixed
- $view : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getConsolidador() : mixed
- Get the value of consolidador
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDBDriver() : mixed
- getDBTable() : mixed
- getEdit() : mixed
- Get the value of edit
- getFilter() : mixed
- Get the value of filter
- getFiltro_rapido() : mixed
- Get the value of filtro_rapido
- getIdCampo() : mixed
- Get the value of idCampo
- getIdPagina() : mixed
- Get the value of idPagina
- getNomeCampo() : mixed
- Get the value of nomeCampo
- getNomeCampoAS() : mixed
- Get the value of nomeCampoAS
- getNomeCampoDesc() : mixed
- Get the value of nomeCampoDesc
- getObs() : mixed
- Get the value of obs
- getOrdem() : mixed
- Get the value of ordem
- getTable() : mixed
- getTotalizador() : mixed
- Get the value of totalizador
- getTypeView() : mixed
- Get the value of typeView
- getView() : mixed
- Get the value of view
- 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
- setConsolidador() : self
- Set the value of consolidador
- setEdit() : self
- Set the value of edit
- setFilter() : self
- Set the value of filter
- setFiltro_rapido() : self
- Set the value of filtro_rapido
- setIdCampo() : self
- Set the value of idCampo
- setIdPagina() : self
- Set the value of idPagina
- setNomeCampo() : self
- Set the value of nomeCampo
- setNomeCampoAS() : self
- Set the value of nomeCampoAS
- setNomeCampoDesc() : self
- Set the value of nomeCampoDesc
- setObs() : self
- Set the value of obs
- setOrdem() : self
- Set the value of ordem
- setTotalizador() : self
- Set the value of totalizador
- setTypeView() : self
- Set the value of typeView
- setView() : self
- Set the value of view
- 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_campos'
pk_field
public
mixed
pk_field
= 'idCampo'
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
$consolidador
private
mixed
$consolidador
$edit
private
mixed
$edit
$filter
private
mixed
$filter
$filtro_rapido
private
mixed
$filtro_rapido
$idCampo
private
mixed
$idCampo
$idPagina
private
mixed
$idPagina
$nomeCampo
private
mixed
$nomeCampo
$nomeCampoAS
private
mixed
$nomeCampoAS
$nomeCampoDesc
private
mixed
$nomeCampoDesc
$obs
private
mixed
$obs
$ordem
private
mixed
$ordem
$totalizador
private
mixed
$totalizador
$typeView
private
mixed
$typeView
$view
private
mixed
$view
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
getConsolidador()
Get the value of consolidador
public
getConsolidador() : 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
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getEdit()
Get the value of edit
public
getEdit() : mixed
getFilter()
Get the value of filter
public
getFilter() : mixed
getFiltro_rapido()
Get the value of filtro_rapido
public
getFiltro_rapido() : mixed
getIdCampo()
Get the value of idCampo
public
getIdCampo() : mixed
getIdPagina()
Get the value of idPagina
public
getIdPagina() : mixed
getNomeCampo()
Get the value of nomeCampo
public
getNomeCampo() : mixed
getNomeCampoAS()
Get the value of nomeCampoAS
public
getNomeCampoAS() : mixed
getNomeCampoDesc()
Get the value of nomeCampoDesc
public
getNomeCampoDesc() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getOrdem()
Get the value of ordem
public
getOrdem() : mixed
getTable()
public
getTable() : mixed
getTotalizador()
Get the value of totalizador
public
getTotalizador() : mixed
getTypeView()
Get the value of typeView
public
getTypeView() : mixed
getView()
Get the value of view
public
getView() : 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
setConsolidador()
Set the value of consolidador
public
setConsolidador(mixed $consolidador) : self
Parameters
- $consolidador : mixed
Return values
selfsetEdit()
Set the value of edit
public
setEdit(mixed $edit) : self
Parameters
- $edit : mixed
Return values
selfsetFilter()
Set the value of filter
public
setFilter(mixed $filter) : self
Parameters
- $filter : mixed
Return values
selfsetFiltro_rapido()
Set the value of filtro_rapido
public
setFiltro_rapido(mixed $filtro_rapido) : self
Parameters
- $filtro_rapido : mixed
Return values
selfsetIdCampo()
Set the value of idCampo
public
setIdCampo(mixed $idCampo) : self
Parameters
- $idCampo : mixed
Return values
selfsetIdPagina()
Set the value of idPagina
public
setIdPagina(mixed $idPagina) : self
Parameters
- $idPagina : mixed
Return values
selfsetNomeCampo()
Set the value of nomeCampo
public
setNomeCampo(mixed $nomeCampo) : self
Parameters
- $nomeCampo : mixed
Return values
selfsetNomeCampoAS()
Set the value of nomeCampoAS
public
setNomeCampoAS(mixed $nomeCampoAS) : self
Parameters
- $nomeCampoAS : mixed
Return values
selfsetNomeCampoDesc()
Set the value of nomeCampoDesc
public
setNomeCampoDesc(mixed $nomeCampoDesc) : self
Parameters
- $nomeCampoDesc : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetOrdem()
Set the value of ordem
public
setOrdem(mixed $ordem) : self
Parameters
- $ordem : mixed
Return values
selfsetTotalizador()
Set the value of totalizador
public
setTotalizador(mixed $totalizador) : self
Parameters
- $totalizador : mixed
Return values
selfsetTypeView()
Set the value of typeView
public
setTypeView(mixed $typeView) : self
Parameters
- $typeView : mixed
Return values
selfsetView()
Set the value of view
public
setView(mixed $view) : self
Parameters
- $view : 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 = '*'