MarcacaoEventoEntity
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 = 'pessoa_entidades_marcacao_eventos'
- pk_field = 'idMarcacao'
- 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 = ['data' => ['required' => 'O campo Data é requerido.'], 'mesCompetencia' => ['required' => 'O campo Competência é requerido.'], 'codigoEmpresa' => ['required' => 'O campo Código Empresa é requerido.'], 'codigoEvento' => ['required' => 'O campo Evento é requerido.'], 'codigoFuncionario' => ['required' => 'O campo Funcionário é requerido.'], 'codigoPagto' => ['required' => 'O campo Tipo Pagamento é requerido.'], 'qtd' => ['required' => 'O campo Quantidade é requerido.'], 'valor' => ['required' => 'O campo Valor é requerido.']]
Properties
- $atualizado : mixed
- $codigoEmpresa : mixed
- $codigoEvento : mixed
- $codigoFuncionario : mixed
- $codigoPagto : mixed
- $data : mixed
- $dataHora : mixed
- $idMarcacao : mixed
- $idMarcacaoTablet : mixed
- $idUsuario : mixed
- $localTrabalho : mixed
- $mesCompetencia : mixed
- $obs : mixed
- $qtd : mixed
- $valor : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAtualizado() : mixed
- Get the value of atualizado
- getAuditlog() : mixed
- getCodigoEmpresa() : mixed
- Get the value of codigoEmpresa
- getCodigoEvento() : mixed
- Get the value of codigoEvento
- getCodigoFuncionario() : mixed
- Get the value of codigoFuncionario
- getCodigoPagto() : mixed
- Get the value of codigoPagto
- getConst() : mixed
- getConstObj() : mixed
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of dataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getIdMarcacao() : mixed
- Get the value of idMarcacao
- getIdMarcacaoTablet() : mixed
- Get the value of idMarcacaoTablet
- getIdUsuario() : mixed
- Get the value of idUsuario
- getLocalTrabalho() : mixed
- Get the value of localTrabalho
- getMesCompetencia() : mixed
- Get the value of mesCompetencia
- getObs() : mixed
- Get the value of obs
- getQtd() : mixed
- Get the value of qtd
- getTable() : mixed
- getValor() : mixed
- Get the value of valor
- 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
- setAtualizado() : self
- Set the value of atualizado
- setCodigoEmpresa() : self
- Set the value of codigoEmpresa
- setCodigoEvento() : self
- Set the value of codigoEvento
- setCodigoFuncionario() : self
- Set the value of codigoFuncionario
- setCodigoPagto() : self
- Set the value of codigoPagto
- setData() : self
- Set the value of data
- setDataHora() : self
- Set the value of dataHora
- setIdMarcacao() : self
- Set the value of idMarcacao
- setIdMarcacaoTablet() : self
- Set the value of idMarcacaoTablet
- setIdUsuario() : self
- Set the value of idUsuario
- setLocalTrabalho() : self
- Set the value of localTrabalho
- setMesCompetencia() : self
- Set the value of mesCompetencia
- setObs() : self
- Set the value of obs
- setQtd() : self
- Set the value of qtd
- setValor() : self
- Set the value of valor
- 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
= 'pessoa_entidades_marcacao_eventos'
pk_field
public
mixed
pk_field
= 'idMarcacao'
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
= ['data' => ['required' => 'O campo Data é requerido.'], 'mesCompetencia' => ['required' => 'O campo Competência é requerido.'], 'codigoEmpresa' => ['required' => 'O campo Código Empresa é requerido.'], 'codigoEvento' => ['required' => 'O campo Evento é requerido.'], 'codigoFuncionario' => ['required' => 'O campo Funcionário é requerido.'], 'codigoPagto' => ['required' => 'O campo Tipo Pagamento é requerido.'], 'qtd' => ['required' => 'O campo Quantidade é requerido.'], 'valor' => ['required' => 'O campo Valor é requerido.']]
Properties
$atualizado
private
mixed
$atualizado
$codigoEmpresa
private
mixed
$codigoEmpresa
$codigoEvento
private
mixed
$codigoEvento
$codigoFuncionario
private
mixed
$codigoFuncionario
$codigoPagto
private
mixed
$codigoPagto
$data
private
mixed
$data
$dataHora
private
mixed
$dataHora
$idMarcacao
private
mixed
$idMarcacao
$idMarcacaoTablet
private
mixed
$idMarcacaoTablet
$idUsuario
private
mixed
$idUsuario
$localTrabalho
private
mixed
$localTrabalho
$mesCompetencia
private
mixed
$mesCompetencia
$obs
private
mixed
$obs
$qtd
private
mixed
$qtd
$valor
private
mixed
$valor
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 = []
getAtualizado()
Get the value of atualizado
public
getAtualizado() : mixed
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getCodigoEmpresa()
Get the value of codigoEmpresa
public
getCodigoEmpresa() : mixed
getCodigoEvento()
Get the value of codigoEvento
public
getCodigoEvento() : mixed
getCodigoFuncionario()
Get the value of codigoFuncionario
public
getCodigoFuncionario() : mixed
getCodigoPagto()
Get the value of codigoPagto
public
getCodigoPagto() : 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
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of dataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getIdMarcacao()
Get the value of idMarcacao
public
getIdMarcacao() : mixed
getIdMarcacaoTablet()
Get the value of idMarcacaoTablet
public
getIdMarcacaoTablet() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getLocalTrabalho()
Get the value of localTrabalho
public
getLocalTrabalho() : mixed
getMesCompetencia()
Get the value of mesCompetencia
public
getMesCompetencia() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getQtd()
Get the value of qtd
public
getQtd() : mixed
getTable()
public
getTable() : mixed
getValor()
Get the value of valor
public
getValor() : 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
setAtualizado()
Set the value of atualizado
public
setAtualizado(mixed $atualizado) : self
Parameters
- $atualizado : mixed
Return values
selfsetCodigoEmpresa()
Set the value of codigoEmpresa
public
setCodigoEmpresa(mixed $codigoEmpresa) : self
Parameters
- $codigoEmpresa : mixed
Return values
selfsetCodigoEvento()
Set the value of codigoEvento
public
setCodigoEvento(mixed $codigoEvento) : self
Parameters
- $codigoEvento : mixed
Return values
selfsetCodigoFuncionario()
Set the value of codigoFuncionario
public
setCodigoFuncionario(mixed $codigoFuncionario) : self
Parameters
- $codigoFuncionario : mixed
Return values
selfsetCodigoPagto()
Set the value of codigoPagto
public
setCodigoPagto(mixed $codigoPagto) : self
Parameters
- $codigoPagto : mixed
Return values
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataHora()
Set the value of dataHora
public
setDataHora(mixed $dataHora) : self
Parameters
- $dataHora : mixed
Return values
selfsetIdMarcacao()
Set the value of idMarcacao
public
setIdMarcacao(mixed $idMarcacao) : self
Parameters
- $idMarcacao : mixed
Return values
selfsetIdMarcacaoTablet()
Set the value of idMarcacaoTablet
public
setIdMarcacaoTablet(mixed $idMarcacaoTablet) : self
Parameters
- $idMarcacaoTablet : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetLocalTrabalho()
Set the value of localTrabalho
public
setLocalTrabalho(mixed $localTrabalho) : self
Parameters
- $localTrabalho : mixed
Return values
selfsetMesCompetencia()
Set the value of mesCompetencia
public
setMesCompetencia(mixed $mesCompetencia) : self
Parameters
- $mesCompetencia : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetQtd()
Set the value of qtd
public
setQtd(mixed $qtd) : self
Parameters
- $qtd : mixed
Return values
selfsetValor()
Set the value of valor
public
setValor(mixed $valor) : self
Parameters
- $valor : 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 = '*'