ManutencaoAtivoPessoasEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = []
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'cad_ativos_manutencao_pessoas'
- pk_field = 'idManutPessoas'
- sanitize = ['custoHora' => ['required' => 'O campo Custo Hora é obrigatório.'], 'qtidadeHoras' => ['required' => 'O campo Quantidade Horas Total é requerido.']]
- 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
- $custoHora : mixed
- $custoTotal : mixed
- $dataManutencao : mixed
- $horaFim : mixed
- $horaInicio : mixed
- $idEntidade : mixed
- $idManut : mixed
- $idManutPessoas : mixed
- $qtidadeHoras : mixed
- $salarioBase : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getCustoHora() : mixed
- Get the value of custoHora
- getCustoTotal() : mixed
- Get the value of custoTotal
- getDatabase() : mixed
- getDataManutencao() : mixed
- Get the value of dataManutencao
- getDBDriver() : mixed
- getDBTable() : mixed
- getHoraFim() : mixed
- Get the value of horaFim
- getHoraInicio() : mixed
- Get the value of horaInicio
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdManut() : mixed
- Get the value of idManut
- getIdManutPessoas() : mixed
- Get the value of idManutPessoas
- getQtidadeHoras() : mixed
- Get the value of qtidadeHoras
- getSalarioBase() : mixed
- Get the value of salarioBase
- 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
- setCustoHora() : self
- Set the value of custoHora
- setCustoTotal() : self
- Set the value of custoTotal
- setDataManutencao() : self
- Set the value of dataManutencao
- setHoraFim() : self
- Set the value of horaFim
- setHoraInicio() : self
- Set the value of horaInicio
- setIdEntidade() : self
- Set the value of idEntidade
- setIdManut() : self
- Set the value of idManut
- setIdManutPessoas() : self
- Set the value of idManutPessoas
- setQtidadeHoras() : self
- Set the value of qtidadeHoras
- setSalarioBase() : self
- Set the value of salarioBase
- 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
= 'cad_ativos_manutencao_pessoas'
pk_field
public
mixed
pk_field
= 'idManutPessoas'
sanitize
Estrutura = ['key' => 'rule']
public
mixed
sanitize
= ['custoHora' => ['required' => 'O campo Custo Hora é obrigatório.'], 'qtidadeHoras' => ['required' => 'O campo Quantidade Horas Total é requerido.']]
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
$custoHora
private
mixed
$custoHora
$custoTotal
private
mixed
$custoTotal
$dataManutencao
private
mixed
$dataManutencao
$horaFim
private
mixed
$horaFim
$horaInicio
private
mixed
$horaInicio
$idEntidade
private
mixed
$idEntidade
$idManut
private
mixed
$idManut
$idManutPessoas
private
mixed
$idManutPessoas
$qtidadeHoras
private
mixed
$qtidadeHoras
$salarioBase
private
mixed
$salarioBase
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
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
getCustoHora()
Get the value of custoHora
public
getCustoHora() : mixed
getCustoTotal()
Get the value of custoTotal
public
getCustoTotal() : mixed
getDatabase()
public
getDatabase() : mixed
getDataManutencao()
Get the value of dataManutencao
public
getDataManutencao() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getHoraFim()
Get the value of horaFim
public
getHoraFim() : mixed
getHoraInicio()
Get the value of horaInicio
public
getHoraInicio() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdManut()
Get the value of idManut
public
getIdManut() : mixed
getIdManutPessoas()
Get the value of idManutPessoas
public
getIdManutPessoas() : mixed
getQtidadeHoras()
Get the value of qtidadeHoras
public
getQtidadeHoras() : mixed
getSalarioBase()
Get the value of salarioBase
public
getSalarioBase() : 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
setCustoHora()
Set the value of custoHora
public
setCustoHora(mixed $custoHora) : self
Parameters
- $custoHora : mixed
Return values
selfsetCustoTotal()
Set the value of custoTotal
public
setCustoTotal(mixed $custoTotal) : self
Parameters
- $custoTotal : mixed
Return values
selfsetDataManutencao()
Set the value of dataManutencao
public
setDataManutencao(mixed $dataManutencao) : self
Parameters
- $dataManutencao : mixed
Return values
selfsetHoraFim()
Set the value of horaFim
public
setHoraFim(mixed $horaFim) : self
Parameters
- $horaFim : mixed
Return values
selfsetHoraInicio()
Set the value of horaInicio
public
setHoraInicio(mixed $horaInicio) : self
Parameters
- $horaInicio : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdManut()
Set the value of idManut
public
setIdManut(mixed $idManut) : self
Parameters
- $idManut : mixed
Return values
selfsetIdManutPessoas()
Set the value of idManutPessoas
public
setIdManutPessoas(mixed $idManutPessoas) : self
Parameters
- $idManutPessoas : mixed
Return values
selfsetQtidadeHoras()
Set the value of qtidadeHoras
public
setQtidadeHoras(mixed $qtidadeHoras) : self
Parameters
- $qtidadeHoras : mixed
Return values
selfsetSalarioBase()
Set the value of salarioBase
public
setSalarioBase(mixed $salarioBase) : self
Parameters
- $salarioBase : 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 = '*'