Documentation

ManutencaoAtivoEntity extends Entity
in package

Table of Contents

Constants

auditlog  = ['exclude_fields' => ['DataHora'], 'object_rel' => 'idManut']
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
const_values  = []
database  = \config\Config::DB_DEFAULT
db_table  = 'cad_ativos_manutencao'
pk_field  = 'idManut'
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': <...>
TIPO_FORNECEDOR  = 2
TIPO_MECANICO  = 1
tracking  = true
validations  = ['data' => ['required' => 'O campo Data Início é requerido.'], 'qtidadeHoras' => ['required' => 'O campo Qtidade Horas Serviço é requerido.'], 'idAtivo' => ['required' => 'O campo Ativo é requerido.'], 'kmHorimetro' => ['required' => 'O campo Km/Horímetro é requerido.'], 'statusRevisao' => ['required' => 'O campo Revisão é requerido.'], 'statusManutencao' => ['required' => 'O campo Serviço Finalizado é requerido.'], 'trocaOleo' => ['required' => 'O campo Alerta Manutenção é requerido.'], 'idSubCatManut' => ['required' => 'O campo SubCategoria é requerido.']]
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$anexo  : mixed
$AnoAgricola  : mixed
$AnoAgricolaSafra  : mixed
$custoHoraMB  : mixed
$data  : mixed
$dataFimManut  : mixed
$DataHora  : mixed
$dataPgto  : mixed
$duracaoKmHorimetro  : mixed
$horaFim  : mixed
$horaInicio  : mixed
$idAtivo  : mixed
$idContasPagar  : mixed
$idContasPagarItem  : mixed
$idDepartamento  : mixed
$idEntidade  : mixed
$idFazenda  : mixed
$idManut  : mixed
$idPedidoFornec  : mixed
$idSubCatManut  : mixed
$idUsuario  : mixed
$idVariavelControle  : mixed
$kmHorimetro  : mixed
$motivoPendencia  : mixed
$obs  : mixed
$qtidadeHoras  : mixed
$statusManutencao  : mixed
$statusRevisao  : mixed
$tipoCustoMB  : mixed
$tipoManutencao  : mixed
$tipoTrocaOleo  : mixed
$trocaOleo  : mixed
$valorMaoObra  : mixed
$valorOutrosProdutos  : mixed
$valorProdutos  : mixed
$verificado  : mixed
$vidaUtilDepreciacao  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAnexo()  : mixed
Get the value of anexo
getAnoAgricola()  : mixed
Get the value of AnoAgricola
getAnoAgricolaSafra()  : mixed
Get the value of AnoAgricolaSafra
getAuditlog()  : mixed
getConst()  : mixed
getConstObj()  : mixed
getCustoHoraMB()  : mixed
Get the value of custoHoraMB
getData()  : mixed
Get the value of data
getDatabase()  : mixed
getDataFimManut()  : mixed
Get the value of dataFimManut
getDataHora()  : mixed
Get the value of DataHora
getDataPgto()  : mixed
Get the value of dataPgto
getDBDriver()  : mixed
getDBTable()  : mixed
getDuracaoKmHorimetro()  : mixed
Get the value of duracaoKmHorimetro
getHoraFim()  : mixed
Get the value of horaFim
getHoraInicio()  : mixed
Get the value of horaInicio
getIdAtivo()  : mixed
Get the value of idAtivo
getIdContasPagar()  : mixed
Get the value of idContasPagar
getIdContasPagarItem()  : mixed
Get the value of idContasPagarItem
getIdDepartamento()  : mixed
Get the value of idDepartamento
getIdEntidade()  : mixed
Get the value of idEntidade
getIdFazenda()  : mixed
Get the value of idFazenda
getIdManut()  : mixed
Get the value of idManut
getIdPedidoFornec()  : mixed
Get the value of idPedidoFornec
getIdSubCatManut()  : mixed
Get the value of idSubCatManut
getIdUsuario()  : mixed
Get the value of idUsuario
getIdVariavelControle()  : mixed
Get the value of idVariavelControle
getKmHorimetro()  : mixed
Get the value of kmHorimetro
getMotivoPendencia()  : mixed
Get the value of motivoPendencia
getObs()  : mixed
Get the value of obs
getQtidadeHoras()  : mixed
Get the value of qtidadeHoras
getStatusManutencao()  : mixed
Get the value of statusManutencao
getStatusRevisao()  : mixed
Get the value of statusRevisao
getTable()  : mixed
getTipoCustoMB()  : mixed
Get the value of tipoCustoMB
getTipoManutencao()  : mixed
Get the value of tipoManutencao
getTipoTrocaOleo()  : mixed
Get the value of tipoTrocaOleo
getTrocaOleo()  : mixed
Get the value of trocaOleo
getValorMaoObra()  : mixed
Get the value of valorMaoObra
getValorOutrosProdutos()  : mixed
Get the value of valorOutrosProdutos
getValorProdutos()  : mixed
Get the value of valorProdutos
getVerificado()  : mixed
Get the value of verificado
getVidaUtilDepreciacao()  : mixed
Get the value of vidaUtilDepreciacao
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
setAnexo()  : self
Set the value of anexo
setAnoAgricola()  : self
Set the value of AnoAgricola
setAnoAgricolaSafra()  : self
Set the value of AnoAgricolaSafra
setCustoHoraMB()  : self
Set the value of custoHoraMB
setData()  : self
Set the value of data
setDataFimManut()  : self
Set the value of dataFimManut
setDataHora()  : self
Set the value of DataHora
setDataPgto()  : self
Set the value of dataPgto
setDuracaoKmHorimetro()  : self
Set the value of duracaoKmHorimetro
setHoraFim()  : self
Set the value of horaFim
setHoraInicio()  : self
Set the value of horaInicio
setIdAtivo()  : self
Set the value of idAtivo
setIdContasPagar()  : self
Set the value of idContasPagar
setIdContasPagarItem()  : self
Set the value of idContasPagarItem
setIdDepartamento()  : self
Set the value of idDepartamento
setIdEntidade()  : self
Set the value of idEntidade
setIdFazenda()  : self
Set the value of idFazenda
setIdManut()  : self
Set the value of idManut
setIdPedidoFornec()  : self
Set the value of idPedidoFornec
setIdSubCatManut()  : self
Set the value of idSubCatManut
setIdUsuario()  : self
Set the value of idUsuario
setIdVariavelControle()  : self
Set the value of idVariavelControle
setKmHorimetro()  : self
Set the value of kmHorimetro
setMotivoPendencia()  : self
Set the value of motivoPendencia
setObs()  : self
Set the value of obs
setQtidadeHoras()  : self
Set the value of qtidadeHoras
setStatusManutencao()  : self
Set the value of statusManutencao
setStatusRevisao()  : self
Set the value of statusRevisao
setTipoCustoMB()  : self
Set the value of tipoCustoMB
setTipoManutencao()  : self
Set the value of tipoManutencao
setTipoTrocaOleo()  : self
Set the value of tipoTrocaOleo
setTrocaOleo()  : self
Set the value of trocaOleo
setValorMaoObra()  : self
Set the value of valorMaoObra
setValorOutrosProdutos()  : self
Set the value of valorOutrosProdutos
setValorProdutos()  : self
Set the value of valorProdutos
setVerificado()  : self
Set the value of verificado
setVidaUtilDepreciacao()  : self
Set the value of vidaUtilDepreciacao
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'], 'object_rel' => 'idManut']

const_values

public mixed const_values = []

database

public mixed database = \config\Config::DB_DEFAULT

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 = ['data' => ['required' => 'O campo Data Início é requerido.'], 'qtidadeHoras' => ['required' => 'O campo Qtidade Horas Serviço é requerido.'], 'idAtivo' => ['required' => 'O campo Ativo é requerido.'], 'kmHorimetro' => ['required' => 'O campo Km/Horímetro é requerido.'], 'statusRevisao' => ['required' => 'O campo Revisão é requerido.'], 'statusManutencao' => ['required' => 'O campo Serviço Finalizado é requerido.'], 'trocaOleo' => ['required' => 'O campo Alerta Manutenção é requerido.'], 'idSubCatManut' => ['required' => 'O campo SubCategoria é requerido.']]

Properties

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 = []

getAnoAgricolaSafra()

Get the value of AnoAgricolaSafra

public getAnoAgricolaSafra() : 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

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getDuracaoKmHorimetro()

Get the value of duracaoKmHorimetro

public getDuracaoKmHorimetro() : mixed

getIdContasPagarItem()

Get the value of idContasPagarItem

public getIdContasPagarItem() : mixed

getIdVariavelControle()

Get the value of idVariavelControle

public getIdVariavelControle() : mixed

getStatusManutencao()

Get the value of statusManutencao

public getStatusManutencao() : mixed

getTable()

public getTable() : mixed

getValorOutrosProdutos()

Get the value of valorOutrosProdutos

public getValorOutrosProdutos() : mixed

getVidaUtilDepreciacao()

Get the value of vidaUtilDepreciacao

public getVidaUtilDepreciacao() : mixed

hasField()

public static hasField(mixed $field) : mixed
Parameters
$field : mixed

insert_or_select()

Funcao que insere ou seleciona se existe

public insert_or_select([mixed $where = [] ]) : null|Entity
Parameters
$where : mixed = []
Return values
null|Entity

insert_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
bool

securityInsert()

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

setAnexo()

Set the value of anexo

public setAnexo(mixed $anexo) : self
Parameters
$anexo : mixed
Return values
self

setAnoAgricola()

Set the value of AnoAgricola

public setAnoAgricola(mixed $AnoAgricola) : self
Parameters
$AnoAgricola : mixed
Return values
self

setAnoAgricolaSafra()

Set the value of AnoAgricolaSafra

public setAnoAgricolaSafra(mixed $AnoAgricolaSafra) : self
Parameters
$AnoAgricolaSafra : mixed
Return values
self

setCustoHoraMB()

Set the value of custoHoraMB

public setCustoHoraMB(mixed $custoHoraMB) : self
Parameters
$custoHoraMB : mixed
Return values
self

setData()

Set the value of data

public setData(mixed $data) : self
Parameters
$data : mixed
Return values
self

setDataFimManut()

Set the value of dataFimManut

public setDataFimManut(mixed $dataFimManut) : self
Parameters
$dataFimManut : mixed
Return values
self

setDataHora()

Set the value of DataHora

public setDataHora(mixed $DataHora) : self
Parameters
$DataHora : mixed
Return values
self

setDataPgto()

Set the value of dataPgto

public setDataPgto(mixed $dataPgto) : self
Parameters
$dataPgto : mixed
Return values
self

setDuracaoKmHorimetro()

Set the value of duracaoKmHorimetro

public setDuracaoKmHorimetro(mixed $duracaoKmHorimetro) : self
Parameters
$duracaoKmHorimetro : mixed
Return values
self

setHoraFim()

Set the value of horaFim

public setHoraFim(mixed $horaFim) : self
Parameters
$horaFim : mixed
Return values
self

setHoraInicio()

Set the value of horaInicio

public setHoraInicio(mixed $horaInicio) : self
Parameters
$horaInicio : mixed
Return values
self

setIdAtivo()

Set the value of idAtivo

public setIdAtivo(mixed $idAtivo) : self
Parameters
$idAtivo : mixed
Return values
self

setIdContasPagar()

Set the value of idContasPagar

public setIdContasPagar(mixed $idContasPagar) : self
Parameters
$idContasPagar : mixed
Return values
self

setIdContasPagarItem()

Set the value of idContasPagarItem

public setIdContasPagarItem(mixed $idContasPagarItem) : self
Parameters
$idContasPagarItem : mixed
Return values
self

setIdDepartamento()

Set the value of idDepartamento

public setIdDepartamento(mixed $idDepartamento) : self
Parameters
$idDepartamento : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

public setIdEntidade(mixed $idEntidade) : self
Parameters
$idEntidade : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

public setIdFazenda(mixed $idFazenda) : self
Parameters
$idFazenda : mixed
Return values
self

setIdManut()

Set the value of idManut

public setIdManut(mixed $idManut) : self
Parameters
$idManut : mixed
Return values
self

setIdPedidoFornec()

Set the value of idPedidoFornec

public setIdPedidoFornec(mixed $idPedidoFornec) : self
Parameters
$idPedidoFornec : mixed
Return values
self

setIdSubCatManut()

Set the value of idSubCatManut

public setIdSubCatManut(mixed $idSubCatManut) : self
Parameters
$idSubCatManut : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

public setIdUsuario(mixed $idUsuario) : self
Parameters
$idUsuario : mixed
Return values
self

setIdVariavelControle()

Set the value of idVariavelControle

public setIdVariavelControle(mixed $idVariavelControle) : self
Parameters
$idVariavelControle : mixed
Return values
self

setKmHorimetro()

Set the value of kmHorimetro

public setKmHorimetro(mixed $kmHorimetro) : self
Parameters
$kmHorimetro : mixed
Return values
self

setMotivoPendencia()

Set the value of motivoPendencia

public setMotivoPendencia(mixed $motivoPendencia) : self
Parameters
$motivoPendencia : mixed
Return values
self

setObs()

Set the value of obs

public setObs(mixed $obs) : self
Parameters
$obs : mixed
Return values
self

setQtidadeHoras()

Set the value of qtidadeHoras

public setQtidadeHoras(mixed $qtidadeHoras) : self
Parameters
$qtidadeHoras : mixed
Return values
self

setStatusManutencao()

Set the value of statusManutencao

public setStatusManutencao(mixed $statusManutencao) : self
Parameters
$statusManutencao : mixed
Return values
self

setStatusRevisao()

Set the value of statusRevisao

public setStatusRevisao(mixed $statusRevisao) : self
Parameters
$statusRevisao : mixed
Return values
self

setTipoCustoMB()

Set the value of tipoCustoMB

public setTipoCustoMB(mixed $tipoCustoMB) : self
Parameters
$tipoCustoMB : mixed
Return values
self

setTipoManutencao()

Set the value of tipoManutencao

public setTipoManutencao(mixed $tipoManutencao) : self
Parameters
$tipoManutencao : mixed
Return values
self

setTipoTrocaOleo()

Set the value of tipoTrocaOleo

public setTipoTrocaOleo(mixed $tipoTrocaOleo) : self
Parameters
$tipoTrocaOleo : mixed
Return values
self

setTrocaOleo()

Set the value of trocaOleo

public setTrocaOleo(mixed $trocaOleo) : self
Parameters
$trocaOleo : mixed
Return values
self

setValorMaoObra()

Set the value of valorMaoObra

public setValorMaoObra(mixed $valorMaoObra) : self
Parameters
$valorMaoObra : mixed
Return values
self

setValorOutrosProdutos()

Set the value of valorOutrosProdutos

public setValorOutrosProdutos(mixed $valorOutrosProdutos) : self
Parameters
$valorOutrosProdutos : mixed
Return values
self

setValorProdutos()

Set the value of valorProdutos

public setValorProdutos(mixed $valorProdutos) : self
Parameters
$valorProdutos : mixed
Return values
self

setVerificado()

Set the value of verificado

public setVerificado(mixed $verificado) : self
Parameters
$verificado : mixed
Return values
self

setVidaUtilDepreciacao()

Set the value of vidaUtilDepreciacao

public setVidaUtilDepreciacao(mixed $vidaUtilDepreciacao) : self
Parameters
$vidaUtilDepreciacao : mixed
Return values
self

update()

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
bool

where()

Rudimentary ORM functions

public static where([mixed $where = [] ][, mixed $select = '*' ]) : Collection
Parameters
$where : mixed = []
$select : mixed = '*'
Return values
Collection

        
On this page

Search results