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
db_table
public
mixed
db_table
= 'cad_ativos_manutencao'
pk_field
public
mixed
pk_field
= 'idManut'
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']
TIPO_FORNECEDOR
public
mixed
TIPO_FORNECEDOR
= 2
TIPO_MECANICO
public
mixed
TIPO_MECANICO
= 1
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
$anexo
private
mixed
$anexo
$AnoAgricola
private
mixed
$AnoAgricola
$AnoAgricolaSafra
private
mixed
$AnoAgricolaSafra
$custoHoraMB
private
mixed
$custoHoraMB
$data
private
mixed
$data
$dataFimManut
private
mixed
$dataFimManut
$DataHora
private
mixed
$DataHora
$dataPgto
private
mixed
$dataPgto
$duracaoKmHorimetro
private
mixed
$duracaoKmHorimetro
$horaFim
private
mixed
$horaFim
$horaInicio
private
mixed
$horaInicio
$idAtivo
private
mixed
$idAtivo
$idContasPagar
private
mixed
$idContasPagar
$idContasPagarItem
private
mixed
$idContasPagarItem
$idDepartamento
private
mixed
$idDepartamento
$idEntidade
private
mixed
$idEntidade
$idFazenda
private
mixed
$idFazenda
$idManut
private
mixed
$idManut
$idPedidoFornec
private
mixed
$idPedidoFornec
$idSubCatManut
private
mixed
$idSubCatManut
$idUsuario
private
mixed
$idUsuario
$idVariavelControle
private
mixed
$idVariavelControle
$kmHorimetro
private
mixed
$kmHorimetro
$motivoPendencia
private
mixed
$motivoPendencia
$obs
private
mixed
$obs
$qtidadeHoras
private
mixed
$qtidadeHoras
$statusManutencao
private
mixed
$statusManutencao
$statusRevisao
private
mixed
$statusRevisao
$tipoCustoMB
private
mixed
$tipoCustoMB
$tipoManutencao
private
mixed
$tipoManutencao
$tipoTrocaOleo
private
mixed
$tipoTrocaOleo
$trocaOleo
private
mixed
$trocaOleo
$valorMaoObra
private
mixed
$valorMaoObra
$valorOutrosProdutos
private
mixed
$valorOutrosProdutos
$valorProdutos
private
mixed
$valorProdutos
$verificado
private
mixed
$verificado
$vidaUtilDepreciacao
private
mixed
$vidaUtilDepreciacao
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 = []
getAnexo()
Get the value of anexo
public
getAnexo() : mixed
getAnoAgricola()
Get the value of AnoAgricola
public
getAnoAgricola() : 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
getCustoHoraMB()
Get the value of custoHoraMB
public
getCustoHoraMB() : mixed
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataFimManut()
Get the value of dataFimManut
public
getDataFimManut() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDataPgto()
Get the value of dataPgto
public
getDataPgto() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDuracaoKmHorimetro()
Get the value of duracaoKmHorimetro
public
getDuracaoKmHorimetro() : mixed
getHoraFim()
Get the value of horaFim
public
getHoraFim() : mixed
getHoraInicio()
Get the value of horaInicio
public
getHoraInicio() : mixed
getIdAtivo()
Get the value of idAtivo
public
getIdAtivo() : mixed
getIdContasPagar()
Get the value of idContasPagar
public
getIdContasPagar() : mixed
getIdContasPagarItem()
Get the value of idContasPagarItem
public
getIdContasPagarItem() : mixed
getIdDepartamento()
Get the value of idDepartamento
public
getIdDepartamento() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdManut()
Get the value of idManut
public
getIdManut() : mixed
getIdPedidoFornec()
Get the value of idPedidoFornec
public
getIdPedidoFornec() : mixed
getIdSubCatManut()
Get the value of idSubCatManut
public
getIdSubCatManut() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getIdVariavelControle()
Get the value of idVariavelControle
public
getIdVariavelControle() : mixed
getKmHorimetro()
Get the value of kmHorimetro
public
getKmHorimetro() : mixed
getMotivoPendencia()
Get the value of motivoPendencia
public
getMotivoPendencia() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getQtidadeHoras()
Get the value of qtidadeHoras
public
getQtidadeHoras() : mixed
getStatusManutencao()
Get the value of statusManutencao
public
getStatusManutencao() : mixed
getStatusRevisao()
Get the value of statusRevisao
public
getStatusRevisao() : mixed
getTable()
public
getTable() : mixed
getTipoCustoMB()
Get the value of tipoCustoMB
public
getTipoCustoMB() : mixed
getTipoManutencao()
Get the value of tipoManutencao
public
getTipoManutencao() : mixed
getTipoTrocaOleo()
Get the value of tipoTrocaOleo
public
getTipoTrocaOleo() : mixed
getTrocaOleo()
Get the value of trocaOleo
public
getTrocaOleo() : mixed
getValorMaoObra()
Get the value of valorMaoObra
public
getValorMaoObra() : mixed
getValorOutrosProdutos()
Get the value of valorOutrosProdutos
public
getValorOutrosProdutos() : mixed
getValorProdutos()
Get the value of valorProdutos
public
getValorProdutos() : mixed
getVerificado()
Get the value of verificado
public
getVerificado() : mixed
getVidaUtilDepreciacao()
Get the value of vidaUtilDepreciacao
public
getVidaUtilDepreciacao() : 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
setAnexo()
Set the value of anexo
public
setAnexo(mixed $anexo) : self
Parameters
- $anexo : mixed
Return values
selfsetAnoAgricola()
Set the value of AnoAgricola
public
setAnoAgricola(mixed $AnoAgricola) : self
Parameters
- $AnoAgricola : mixed
Return values
selfsetAnoAgricolaSafra()
Set the value of AnoAgricolaSafra
public
setAnoAgricolaSafra(mixed $AnoAgricolaSafra) : self
Parameters
- $AnoAgricolaSafra : mixed
Return values
selfsetCustoHoraMB()
Set the value of custoHoraMB
public
setCustoHoraMB(mixed $custoHoraMB) : self
Parameters
- $custoHoraMB : mixed
Return values
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataFimManut()
Set the value of dataFimManut
public
setDataFimManut(mixed $dataFimManut) : self
Parameters
- $dataFimManut : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDataPgto()
Set the value of dataPgto
public
setDataPgto(mixed $dataPgto) : self
Parameters
- $dataPgto : mixed
Return values
selfsetDuracaoKmHorimetro()
Set the value of duracaoKmHorimetro
public
setDuracaoKmHorimetro(mixed $duracaoKmHorimetro) : self
Parameters
- $duracaoKmHorimetro : 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
selfsetIdAtivo()
Set the value of idAtivo
public
setIdAtivo(mixed $idAtivo) : self
Parameters
- $idAtivo : mixed
Return values
selfsetIdContasPagar()
Set the value of idContasPagar
public
setIdContasPagar(mixed $idContasPagar) : self
Parameters
- $idContasPagar : mixed
Return values
selfsetIdContasPagarItem()
Set the value of idContasPagarItem
public
setIdContasPagarItem(mixed $idContasPagarItem) : self
Parameters
- $idContasPagarItem : mixed
Return values
selfsetIdDepartamento()
Set the value of idDepartamento
public
setIdDepartamento(mixed $idDepartamento) : self
Parameters
- $idDepartamento : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdManut()
Set the value of idManut
public
setIdManut(mixed $idManut) : self
Parameters
- $idManut : mixed
Return values
selfsetIdPedidoFornec()
Set the value of idPedidoFornec
public
setIdPedidoFornec(mixed $idPedidoFornec) : self
Parameters
- $idPedidoFornec : mixed
Return values
selfsetIdSubCatManut()
Set the value of idSubCatManut
public
setIdSubCatManut(mixed $idSubCatManut) : self
Parameters
- $idSubCatManut : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetIdVariavelControle()
Set the value of idVariavelControle
public
setIdVariavelControle(mixed $idVariavelControle) : self
Parameters
- $idVariavelControle : mixed
Return values
selfsetKmHorimetro()
Set the value of kmHorimetro
public
setKmHorimetro(mixed $kmHorimetro) : self
Parameters
- $kmHorimetro : mixed
Return values
selfsetMotivoPendencia()
Set the value of motivoPendencia
public
setMotivoPendencia(mixed $motivoPendencia) : self
Parameters
- $motivoPendencia : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetQtidadeHoras()
Set the value of qtidadeHoras
public
setQtidadeHoras(mixed $qtidadeHoras) : self
Parameters
- $qtidadeHoras : mixed
Return values
selfsetStatusManutencao()
Set the value of statusManutencao
public
setStatusManutencao(mixed $statusManutencao) : self
Parameters
- $statusManutencao : mixed
Return values
selfsetStatusRevisao()
Set the value of statusRevisao
public
setStatusRevisao(mixed $statusRevisao) : self
Parameters
- $statusRevisao : mixed
Return values
selfsetTipoCustoMB()
Set the value of tipoCustoMB
public
setTipoCustoMB(mixed $tipoCustoMB) : self
Parameters
- $tipoCustoMB : mixed
Return values
selfsetTipoManutencao()
Set the value of tipoManutencao
public
setTipoManutencao(mixed $tipoManutencao) : self
Parameters
- $tipoManutencao : mixed
Return values
selfsetTipoTrocaOleo()
Set the value of tipoTrocaOleo
public
setTipoTrocaOleo(mixed $tipoTrocaOleo) : self
Parameters
- $tipoTrocaOleo : mixed
Return values
selfsetTrocaOleo()
Set the value of trocaOleo
public
setTrocaOleo(mixed $trocaOleo) : self
Parameters
- $trocaOleo : mixed
Return values
selfsetValorMaoObra()
Set the value of valorMaoObra
public
setValorMaoObra(mixed $valorMaoObra) : self
Parameters
- $valorMaoObra : mixed
Return values
selfsetValorOutrosProdutos()
Set the value of valorOutrosProdutos
public
setValorOutrosProdutos(mixed $valorOutrosProdutos) : self
Parameters
- $valorOutrosProdutos : mixed
Return values
selfsetValorProdutos()
Set the value of valorProdutos
public
setValorProdutos(mixed $valorProdutos) : self
Parameters
- $valorProdutos : mixed
Return values
selfsetVerificado()
Set the value of verificado
public
setVerificado(mixed $verificado) : self
Parameters
- $verificado : mixed
Return values
selfsetVidaUtilDepreciacao()
Set the value of vidaUtilDepreciacao
public
setVidaUtilDepreciacao(mixed $vidaUtilDepreciacao) : self
Parameters
- $vidaUtilDepreciacao : 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 = '*'