ManutencaoAtivoRevisaoEntity
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_revisao'
- pk_field = 'idRevisao'
- 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 = ['idTipoManut' => ['required' => 'O campo Tipo é obrigatório.'], 'Horimetro' => ['required' => 'O campo Horímetro é obrigatório.'], 'duracaoKmHorimetro' => ['required' => 'O campo Duração Km/Horas é obrigatório.'], 'dataLimiteManut' => ['required' => 'O campo Data Limite é obrigatório.']]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $dataLimiteManut : mixed
- $dataUltimoAlerta : mixed
- $duracaoKmHorimetro : mixed
- $Horimetro : mixed
- $idManut : mixed
- $idManutExecucao : mixed
- $idRevisao : mixed
- $idTipoManut : mixed
- $kmAtualAtivo : mixed
- $statusAviso : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDataLimiteManut() : mixed
- Get the value of dataLimiteManut
- getDataUltimoAlerta() : mixed
- Get the value of dataUltimoAlerta
- getDBDriver() : mixed
- getDBTable() : mixed
- getDuracaoKmHorimetro() : mixed
- Get the value of duracaoKmHorimetro
- getHorimetro() : mixed
- Get the value of Horimetro
- getIdManut() : mixed
- Get the value of idManut
- getIdManutExecucao() : mixed
- Get the value of idManutExecucao
- getIdRevisao() : mixed
- Get the value of idRevisao
- getIdTipoManut() : mixed
- Get the value of idTipoManut
- getKmAtualAtivo() : mixed
- Get the value of kmAtualAtivo
- getStatusAviso() : mixed
- Get the value of statusAviso
- 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
- setDataLimiteManut() : self
- Set the value of dataLimiteManut
- setDataUltimoAlerta() : self
- Set the value of dataUltimoAlerta
- setDuracaoKmHorimetro() : self
- Set the value of duracaoKmHorimetro
- setHorimetro() : self
- Set the value of Horimetro
- setIdManut() : self
- Set the value of idManut
- setIdManutExecucao() : self
- Set the value of idManutExecucao
- setIdRevisao() : self
- Set the value of idRevisao
- setIdTipoManut() : self
- Set the value of idTipoManut
- setKmAtualAtivo() : self
- Set the value of kmAtualAtivo
- setStatusAviso() : self
- Set the value of statusAviso
- 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_revisao'
pk_field
public
mixed
pk_field
= 'idRevisao'
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
= ['idTipoManut' => ['required' => 'O campo Tipo é obrigatório.'], 'Horimetro' => ['required' => 'O campo Horímetro é obrigatório.'], 'duracaoKmHorimetro' => ['required' => 'O campo Duração Km/Horas é obrigatório.'], 'dataLimiteManut' => ['required' => 'O campo Data Limite é obrigatório.']]
Properties
$dataLimiteManut
private
mixed
$dataLimiteManut
$dataUltimoAlerta
private
mixed
$dataUltimoAlerta
$duracaoKmHorimetro
private
mixed
$duracaoKmHorimetro
$Horimetro
private
mixed
$Horimetro
$idManut
private
mixed
$idManut
$idManutExecucao
private
mixed
$idManutExecucao
$idRevisao
private
mixed
$idRevisao
$idTipoManut
private
mixed
$idTipoManut
$kmAtualAtivo
private
mixed
$kmAtualAtivo
$statusAviso
private
mixed
$statusAviso
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
getDatabase()
public
getDatabase() : mixed
getDataLimiteManut()
Get the value of dataLimiteManut
public
getDataLimiteManut() : mixed
getDataUltimoAlerta()
Get the value of dataUltimoAlerta
public
getDataUltimoAlerta() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDuracaoKmHorimetro()
Get the value of duracaoKmHorimetro
public
getDuracaoKmHorimetro() : mixed
getHorimetro()
Get the value of Horimetro
public
getHorimetro() : mixed
getIdManut()
Get the value of idManut
public
getIdManut() : mixed
getIdManutExecucao()
Get the value of idManutExecucao
public
getIdManutExecucao() : mixed
getIdRevisao()
Get the value of idRevisao
public
getIdRevisao() : mixed
getIdTipoManut()
Get the value of idTipoManut
public
getIdTipoManut() : mixed
getKmAtualAtivo()
Get the value of kmAtualAtivo
public
getKmAtualAtivo() : mixed
getStatusAviso()
Get the value of statusAviso
public
getStatusAviso() : 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
setDataLimiteManut()
Set the value of dataLimiteManut
public
setDataLimiteManut(mixed $dataLimiteManut) : self
Parameters
- $dataLimiteManut : mixed
Return values
selfsetDataUltimoAlerta()
Set the value of dataUltimoAlerta
public
setDataUltimoAlerta(mixed $dataUltimoAlerta) : self
Parameters
- $dataUltimoAlerta : mixed
Return values
selfsetDuracaoKmHorimetro()
Set the value of duracaoKmHorimetro
public
setDuracaoKmHorimetro(mixed $duracaoKmHorimetro) : self
Parameters
- $duracaoKmHorimetro : mixed
Return values
selfsetHorimetro()
Set the value of Horimetro
public
setHorimetro(mixed $Horimetro) : self
Parameters
- $Horimetro : mixed
Return values
selfsetIdManut()
Set the value of idManut
public
setIdManut(mixed $idManut) : self
Parameters
- $idManut : mixed
Return values
selfsetIdManutExecucao()
Set the value of idManutExecucao
public
setIdManutExecucao(mixed $idManutExecucao) : self
Parameters
- $idManutExecucao : mixed
Return values
selfsetIdRevisao()
Set the value of idRevisao
public
setIdRevisao(mixed $idRevisao) : self
Parameters
- $idRevisao : mixed
Return values
selfsetIdTipoManut()
Set the value of idTipoManut
public
setIdTipoManut(mixed $idTipoManut) : self
Parameters
- $idTipoManut : mixed
Return values
selfsetKmAtualAtivo()
Set the value of kmAtualAtivo
public
setKmAtualAtivo(mixed $kmAtualAtivo) : self
Parameters
- $kmAtualAtivo : mixed
Return values
selfsetStatusAviso()
Set the value of statusAviso
public
setStatusAviso(mixed $statusAviso) : self
Parameters
- $statusAviso : 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 = '*'