CentralAvisoEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['DataHora']]
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'avisos_usuarios'
- pk_field = 'idAvisoUsuario'
- 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 = true
- validations = []
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $codigoEnvioEmail : mixed
- $codigoEnvioWhatsapp : mixed
- $DataHora : mixed
- $dataHoraEnvioEmail : mixed
- $dataHoraEnvioWhatsapp : mixed
- $enviarEmail : mixed
- $enviarWhatsapp : mixed
- $idAviso : mixed
- $idAvisoUsuario : mixed
- $idUsuario : mixed
- $lido : mixed
- $linkDescriptionWhatsapp : mixed
- $linkWhatsapp : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCodigoEnvioEmail() : mixed
- Get the value of codigoEnvioEmail
- getCodigoEnvioWhatsapp() : mixed
- Get the value of codigoEnvioWhatsapp
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDataHoraEnvioEmail() : mixed
- Get the value of dataHoraEnvioEmail
- getDataHoraEnvioWhatsapp() : mixed
- Get the value of dataHoraEnvioWhatsapp
- getDBDriver() : mixed
- getDBTable() : mixed
- getEnviarEmail() : mixed
- Get the value of enviarEmail
- getEnviarWhatsapp() : mixed
- Get the value of enviarWhatsapp
- getIdAviso() : mixed
- Get the value of idAviso
- getIdAvisoUsuario() : mixed
- Get the value of idAvisoUsuario
- getIdUsuario() : mixed
- Get the value of idUsuario
- getLido() : mixed
- Get the value of lido
- getLinkDescriptionWhatsapp() : mixed
- Get the value of linkDescriptionWhatsapp
- getLinkWhatsapp() : mixed
- Get the value of linkWhatsapp
- getTable() : mixed
- 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
- setCodigoEnvioEmail() : self
- Set the value of codigoEnvioEmail
- setCodigoEnvioWhatsapp() : self
- Set the value of codigoEnvioWhatsapp
- setDataHora() : self
- Set the value of DataHora
- setDataHoraEnvioEmail() : self
- Set the value of dataHoraEnvioEmail
- setDataHoraEnvioWhatsapp() : self
- Set the value of dataHoraEnvioWhatsapp
- setEnviarEmail() : self
- Set the value of enviarEmail
- setEnviarWhatsapp() : self
- Set the value of enviarWhatsapp
- setIdAviso() : self
- Set the value of idAviso
- setIdAvisoUsuario() : self
- Set the value of idAvisoUsuario
- setIdUsuario() : self
- Set the value of idUsuario
- setLido() : self
- Set the value of lido
- setLinkDescriptionWhatsapp() : self
- Set the value of linkDescriptionWhatsapp
- setLinkWhatsapp() : self
- Set the value of linkWhatsapp
- 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']]
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'avisos_usuarios'
pk_field
public
mixed
pk_field
= 'idAvisoUsuario'
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']
tracking
public
mixed
tracking
= true
validations
Estrutura = ['key' => ['keyRule' => 'Rule message']]
public
mixed
validations
= []
Properties
$codigoEnvioEmail
private
mixed
$codigoEnvioEmail
$codigoEnvioWhatsapp
private
mixed
$codigoEnvioWhatsapp
$DataHora
private
mixed
$DataHora
$dataHoraEnvioEmail
private
mixed
$dataHoraEnvioEmail
$dataHoraEnvioWhatsapp
private
mixed
$dataHoraEnvioWhatsapp
$enviarEmail
private
mixed
$enviarEmail
$enviarWhatsapp
private
mixed
$enviarWhatsapp
$idAviso
private
mixed
$idAviso
$idAvisoUsuario
private
mixed
$idAvisoUsuario
$idUsuario
private
mixed
$idUsuario
$lido
private
mixed
$lido
$linkDescriptionWhatsapp
private
mixed
$linkDescriptionWhatsapp
$linkWhatsapp
private
mixed
$linkWhatsapp
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
getCodigoEnvioEmail()
Get the value of codigoEnvioEmail
public
getCodigoEnvioEmail() : mixed
getCodigoEnvioWhatsapp()
Get the value of codigoEnvioWhatsapp
public
getCodigoEnvioWhatsapp() : 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
getDataHoraEnvioEmail()
Get the value of dataHoraEnvioEmail
public
getDataHoraEnvioEmail() : mixed
getDataHoraEnvioWhatsapp()
Get the value of dataHoraEnvioWhatsapp
public
getDataHoraEnvioWhatsapp() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getEnviarEmail()
Get the value of enviarEmail
public
getEnviarEmail() : mixed
getEnviarWhatsapp()
Get the value of enviarWhatsapp
public
getEnviarWhatsapp() : mixed
getIdAviso()
Get the value of idAviso
public
getIdAviso() : mixed
getIdAvisoUsuario()
Get the value of idAvisoUsuario
public
getIdAvisoUsuario() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getLido()
Get the value of lido
public
getLido() : mixed
getLinkDescriptionWhatsapp()
Get the value of linkDescriptionWhatsapp
public
getLinkDescriptionWhatsapp() : mixed
getLinkWhatsapp()
Get the value of linkWhatsapp
public
getLinkWhatsapp() : mixed
getTable()
public
getTable() : 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
setCodigoEnvioEmail()
Set the value of codigoEnvioEmail
public
setCodigoEnvioEmail(mixed $codigoEnvioEmail) : self
Parameters
- $codigoEnvioEmail : mixed
Return values
selfsetCodigoEnvioWhatsapp()
Set the value of codigoEnvioWhatsapp
public
setCodigoEnvioWhatsapp(mixed $codigoEnvioWhatsapp) : self
Parameters
- $codigoEnvioWhatsapp : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDataHoraEnvioEmail()
Set the value of dataHoraEnvioEmail
public
setDataHoraEnvioEmail(mixed $dataHoraEnvioEmail) : self
Parameters
- $dataHoraEnvioEmail : mixed
Return values
selfsetDataHoraEnvioWhatsapp()
Set the value of dataHoraEnvioWhatsapp
public
setDataHoraEnvioWhatsapp(mixed $dataHoraEnvioWhatsapp) : self
Parameters
- $dataHoraEnvioWhatsapp : mixed
Return values
selfsetEnviarEmail()
Set the value of enviarEmail
public
setEnviarEmail(mixed $enviarEmail) : self
Parameters
- $enviarEmail : mixed
Return values
selfsetEnviarWhatsapp()
Set the value of enviarWhatsapp
public
setEnviarWhatsapp(mixed $enviarWhatsapp) : self
Parameters
- $enviarWhatsapp : mixed
Return values
selfsetIdAviso()
Set the value of idAviso
public
setIdAviso(mixed $idAviso) : self
Parameters
- $idAviso : mixed
Return values
selfsetIdAvisoUsuario()
Set the value of idAvisoUsuario
public
setIdAvisoUsuario(mixed $idAvisoUsuario) : self
Parameters
- $idAvisoUsuario : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetLido()
Set the value of lido
public
setLido(mixed $lido) : self
Parameters
- $lido : mixed
Return values
selfsetLinkDescriptionWhatsapp()
Set the value of linkDescriptionWhatsapp
public
setLinkDescriptionWhatsapp(mixed $linkDescriptionWhatsapp) : self
Parameters
- $linkDescriptionWhatsapp : mixed
Return values
selfsetLinkWhatsapp()
Set the value of linkWhatsapp
public
setLinkWhatsapp(mixed $linkWhatsapp) : self
Parameters
- $linkWhatsapp : 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 = '*'