AtivoEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['DataHora'], 'object_rel' => 'idAtivo']
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'cad_ativos'
- pk_field = 'idAtivo'
- sanitize = []
- Estrutura = ['key' => 'rule']
- security = ['select' => 'src\models\AtivoSecurity::securitySelect', 'update' => 'src\models\AtivoSecurity::securityUpdate']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ['dataCompra' => ['required' => 'O Campo Data de Compra é requerido.'], 'codigoAtivo' => ['required' => 'O Campo Código Ativo é requerido.'], 'nomeAtivo' => ['required' => 'O Campo Nome Ativo é requerido.'], 'idTipoAtivo' => ['required' => 'O Campo Tipo Ativo é requerido.'], 'valorAtivo' => ['required' => 'O Campo Valor Ativo é requerido.'], 'vidaAtualvalor' => ['required' => 'O Campo Valor Atual Ativo é requerido.'], 'vidaUtil' => ['required' => 'O Campo Vida Útil Anos é requerido.'], 'custoHora' => ['required' => 'O campo Custo Hora Comercial é requerido.']]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $ano : mixed
- $anoModelo : mixed
- $bombaImplemento : mixed
- $capacidadeBomba : mixed
- $chassi : mixed
- $codigoAtivo : mixed
- $cor : mixed
- $crv : mixed
- $custoCombustivel : mixed
- $custoDepreciacao : mixed
- $custoHora : mixed
- $custoHoraEfetivo : mixed
- $custoJuros : mixed
- $custoManutencao : mixed
- $dataCompra : mixed
- $DataHora : mixed
- $horasRodadas : mixed
- $idAtivo : mixed
- $idContasPagar : mixed
- $idDepartamento : mixed
- $idEntidadeResponsavel : mixed
- $idFazenda : mixed
- $idFazendaCompra : mixed
- $idTipoAtivo : mixed
- $idTipoAtivoCategoria : mixed
- $idUsuario : mixed
- $Km : mixed
- $KmHorimetroOleo : mixed
- $KmHorimetroTroca : mixed
- $KmHorimetroTrocaAntigo : mixed
- $KmHorimetroTrocaNovo : mixed
- $marca : mixed
- $modelo : mixed
- $nomeAtivo : mixed
- $numeroSerie : mixed
- $obs : mixed
- $placa : mixed
- $renavam : mixed
- $status : mixed
- $statusManutencao : mixed
- $tipoAtualizacao : mixed
- $tipoContrataTerceiro : mixed
- $totalAnexo : mixed
- $usaFluxometro : mixed
- $valorAtivo : mixed
- $vidaAtualvalor : mixed
- $vidaUtil : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAno() : mixed
- Get the value of ano
- getAnoModelo() : mixed
- Get the value of anoModelo
- getAuditlog() : mixed
- getBombaImplemento() : mixed
- Get the value of bombaImplemento
- getCapacidadeBomba() : mixed
- Get the value of capacidadeBomba
- getChassi() : mixed
- Get the value of chassi
- getCodigoAtivo() : mixed
- Get the value of codigoAtivo
- getConst() : mixed
- getConstObj() : mixed
- getCor() : mixed
- Get the value of cor
- getCrv() : mixed
- Get the value of crv
- getCustoCombustivel() : mixed
- Get the value of custoCombustivel
- getCustoDepreciacao() : mixed
- Get the value of custoDepreciacao
- getCustoHora() : mixed
- Get the value of custoHora
- getCustoHoraEfetivo() : mixed
- Get the value of custoHoraEfetivo
- getCustoJuros() : mixed
- Get the value of custoJuros
- getCustoManutencao() : mixed
- Get the value of custoManutencao
- getDatabase() : mixed
- getDataCompra() : mixed
- Get the value of dataCompra
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getHorasRodadas() : mixed
- Get the value of horasRodadas
- getIdAtivo() : mixed
- Get the value of idAtivo
- getIdContasPagar() : mixed
- Get the value of idContasPagar
- getIdDepartamento() : mixed
- Get the value of idDepartamento
- getIdEntidadeResponsavel() : mixed
- Get the value of idEntidadeResponsavel
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdFazendaCompra() : mixed
- Get the value of idFazendaCompra
- getIdTipoAtivo() : mixed
- Get the value of idTipoAtivo
- getIdTipoAtivoCategoria() : mixed
- Get the value of idTipoAtivoCategoria
- getIdUsuario() : mixed
- Get the value of idUsuario
- getKm() : mixed
- Get the value of Km
- getKmHorimetroOleo() : mixed
- Get the value of KmHorimetroOleo
- getKmHorimetroTroca() : mixed
- Get the value of KmHorimetroTroca
- getKmHorimetroTrocaAntigo() : mixed
- Get the value of KmHorimetroTrocaAntigo
- getKmHorimetroTrocaNovo() : mixed
- Get the value of KmHorimetroTrocaNovo
- getMarca() : mixed
- Get the value of marca
- getModelo() : mixed
- Get the value of modelo
- getNomeAtivo() : mixed
- Get the value of nomeAtivo
- getNumeroSerie() : mixed
- Get the value of numeroSerie
- getObs() : mixed
- Get the value of obs
- getPlaca() : mixed
- Get the value of placa
- getRenavam() : mixed
- Get the value of renavam
- getStatus() : mixed
- Get the value of status
- getStatusManutencao() : mixed
- Get the value of statusManutencao
- getTable() : mixed
- getTipoAtualizacao() : mixed
- Get the value of tipoAtualizacao
- getTipoContrataTerceiro() : mixed
- getTotalAnexo() : mixed
- Get the value of totalAnexo
- getUsaFluxometro() : mixed
- Get the value of usaFluxometro
- getValorAtivo() : mixed
- Get the value of valorAtivo
- getVidaAtualvalor() : mixed
- Get the value of vidaAtualvalor
- getVidaUtil() : mixed
- Get the value of vidaUtil
- 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
- setAno() : self
- Set the value of ano
- setAnoModelo() : self
- Set the value of anoModelo
- setBombaImplemento() : self
- Set the value of bombaImplemento
- setCapacidadeBomba() : self
- Set the value of capacidadeBomba
- setChassi() : self
- Set the value of chassi
- setCodigoAtivo() : self
- Set the value of codigoAtivo
- setCor() : self
- Set the value of cor
- setCrv() : self
- Set the value of crv
- setCustoCombustivel() : self
- Set the value of custoCombustivel
- setCustoDepreciacao() : self
- Set the value of custoDepreciacao
- setCustoHora() : self
- Set the value of custoHora
- setCustoHoraEfetivo() : self
- Set the value of custoHoraEfetivo
- setCustoJuros() : self
- Set the value of custoJuros
- setCustoManutencao() : self
- Set the value of custoManutencao
- setDataCompra() : self
- Set the value of dataCompra
- setDataHora() : self
- Set the value of DataHora
- setHorasRodadas() : self
- Set the value of horasRodadas
- setIdAtivo() : self
- Set the value of idAtivo
- setIdContasPagar() : self
- Set the value of idContasPagar
- setIdDepartamento() : self
- Set the value of idDepartamento
- setIdEntidadeResponsavel() : self
- Set the value of idEntidadeResponsavel
- setIdFazenda() : self
- Set the value of idFazenda
- setIdFazendaCompra() : self
- Set the value of idFazendaCompra
- setIdTipoAtivo() : self
- Set the value of idTipoAtivo
- setIdTipoAtivoCategoria() : self
- Set the value of idTipoAtivoCategoria
- setIdUsuario() : self
- Set the value of idUsuario
- setKm() : self
- Set the value of Km
- setKmHorimetroOleo() : self
- Set the value of KmHorimetroOleo
- setKmHorimetroTroca() : self
- Set the value of KmHorimetroTroca
- setKmHorimetroTrocaAntigo() : self
- Set the value of KmHorimetroTrocaAntigo
- setKmHorimetroTrocaNovo() : self
- Set the value of KmHorimetroTrocaNovo
- setMarca() : self
- Set the value of marca
- setModelo() : self
- Set the value of modelo
- setNomeAtivo() : self
- Set the value of nomeAtivo
- setNumeroSerie() : self
- Set the value of numeroSerie
- setObs() : self
- Set the value of obs
- setPlaca() : self
- Set the value of placa
- setRenavam() : self
- Set the value of renavam
- setStatus() : self
- Set the value of status
- setStatusManutencao() : self
- Set the value of statusManutencao
- setTipoAtualizacao() : self
- Set the value of tipoAtualizacao
- setTipoContrataTerceiro() : self
- Set the value of tipoContrataTerceiro
- setTotalAnexo() : self
- Set the value of totalAnexo
- setUsaFluxometro() : self
- Set the value of usaFluxometro
- setValorAtivo() : self
- Set the value of valorAtivo
- setVidaAtualvalor() : self
- Set the value of vidaAtualvalor
- setVidaUtil() : self
- Set the value of vidaUtil
- 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' => 'idAtivo']
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'cad_ativos'
pk_field
public
mixed
pk_field
= 'idAtivo'
sanitize
Estrutura = ['key' => 'rule']
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['select' => 'src\models\AtivoSecurity::securitySelect', 'update' => 'src\models\AtivoSecurity::securityUpdate']
tracking
public
mixed
tracking
= true
validations
Estrutura = ['key' => ['keyRule' => 'Rule message']]
public
mixed
validations
= ['dataCompra' => ['required' => 'O Campo Data de Compra é requerido.'], 'codigoAtivo' => ['required' => 'O Campo Código Ativo é requerido.'], 'nomeAtivo' => ['required' => 'O Campo Nome Ativo é requerido.'], 'idTipoAtivo' => ['required' => 'O Campo Tipo Ativo é requerido.'], 'valorAtivo' => ['required' => 'O Campo Valor Ativo é requerido.'], 'vidaAtualvalor' => ['required' => 'O Campo Valor Atual Ativo é requerido.'], 'vidaUtil' => ['required' => 'O Campo Vida Útil Anos é requerido.'], 'custoHora' => ['required' => 'O campo Custo Hora Comercial é requerido.']]
Properties
$ano
private
mixed
$ano
$anoModelo
private
mixed
$anoModelo
$bombaImplemento
private
mixed
$bombaImplemento
$capacidadeBomba
private
mixed
$capacidadeBomba
$chassi
private
mixed
$chassi
$codigoAtivo
private
mixed
$codigoAtivo
$cor
private
mixed
$cor
$crv
private
mixed
$crv
$custoCombustivel
private
mixed
$custoCombustivel
$custoDepreciacao
private
mixed
$custoDepreciacao
$custoHora
private
mixed
$custoHora
$custoHoraEfetivo
private
mixed
$custoHoraEfetivo
$custoJuros
private
mixed
$custoJuros
$custoManutencao
private
mixed
$custoManutencao
$dataCompra
private
mixed
$dataCompra
$DataHora
private
mixed
$DataHora
$horasRodadas
private
mixed
$horasRodadas
$idAtivo
private
mixed
$idAtivo
$idContasPagar
private
mixed
$idContasPagar
$idDepartamento
private
mixed
$idDepartamento
$idEntidadeResponsavel
private
mixed
$idEntidadeResponsavel
$idFazenda
private
mixed
$idFazenda
$idFazendaCompra
private
mixed
$idFazendaCompra
$idTipoAtivo
private
mixed
$idTipoAtivo
$idTipoAtivoCategoria
private
mixed
$idTipoAtivoCategoria
$idUsuario
private
mixed
$idUsuario
$Km
private
mixed
$Km
$KmHorimetroOleo
private
mixed
$KmHorimetroOleo
$KmHorimetroTroca
private
mixed
$KmHorimetroTroca
$KmHorimetroTrocaAntigo
private
mixed
$KmHorimetroTrocaAntigo
$KmHorimetroTrocaNovo
private
mixed
$KmHorimetroTrocaNovo
$marca
private
mixed
$marca
$modelo
private
mixed
$modelo
$nomeAtivo
private
mixed
$nomeAtivo
$numeroSerie
private
mixed
$numeroSerie
$obs
private
mixed
$obs
$placa
private
mixed
$placa
$renavam
private
mixed
$renavam
$status
private
mixed
$status
$statusManutencao
private
mixed
$statusManutencao
$tipoAtualizacao
private
mixed
$tipoAtualizacao
$tipoContrataTerceiro
private
mixed
$tipoContrataTerceiro
$totalAnexo
private
mixed
$totalAnexo
$usaFluxometro
private
mixed
$usaFluxometro
$valorAtivo
private
mixed
$valorAtivo
$vidaAtualvalor
private
mixed
$vidaAtualvalor
$vidaUtil
private
mixed
$vidaUtil
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 = []
getAno()
Get the value of ano
public
getAno() : mixed
getAnoModelo()
Get the value of anoModelo
public
getAnoModelo() : mixed
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getBombaImplemento()
Get the value of bombaImplemento
public
getBombaImplemento() : mixed
getCapacidadeBomba()
Get the value of capacidadeBomba
public
getCapacidadeBomba() : mixed
getChassi()
Get the value of chassi
public
getChassi() : mixed
getCodigoAtivo()
Get the value of codigoAtivo
public
getCodigoAtivo() : 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
getCor()
Get the value of cor
public
getCor() : mixed
getCrv()
Get the value of crv
public
getCrv() : mixed
getCustoCombustivel()
Get the value of custoCombustivel
public
getCustoCombustivel() : mixed
getCustoDepreciacao()
Get the value of custoDepreciacao
public
getCustoDepreciacao() : mixed
getCustoHora()
Get the value of custoHora
public
getCustoHora() : mixed
getCustoHoraEfetivo()
Get the value of custoHoraEfetivo
public
getCustoHoraEfetivo() : mixed
getCustoJuros()
Get the value of custoJuros
public
getCustoJuros() : mixed
getCustoManutencao()
Get the value of custoManutencao
public
getCustoManutencao() : mixed
getDatabase()
public
getDatabase() : mixed
getDataCompra()
Get the value of dataCompra
public
getDataCompra() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getHorasRodadas()
Get the value of horasRodadas
public
getHorasRodadas() : mixed
getIdAtivo()
Get the value of idAtivo
public
getIdAtivo() : mixed
getIdContasPagar()
Get the value of idContasPagar
public
getIdContasPagar() : mixed
getIdDepartamento()
Get the value of idDepartamento
public
getIdDepartamento() : mixed
getIdEntidadeResponsavel()
Get the value of idEntidadeResponsavel
public
getIdEntidadeResponsavel() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdFazendaCompra()
Get the value of idFazendaCompra
public
getIdFazendaCompra() : mixed
getIdTipoAtivo()
Get the value of idTipoAtivo
public
getIdTipoAtivo() : mixed
getIdTipoAtivoCategoria()
Get the value of idTipoAtivoCategoria
public
getIdTipoAtivoCategoria() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getKm()
Get the value of Km
public
getKm() : mixed
getKmHorimetroOleo()
Get the value of KmHorimetroOleo
public
getKmHorimetroOleo() : mixed
getKmHorimetroTroca()
Get the value of KmHorimetroTroca
public
getKmHorimetroTroca() : mixed
getKmHorimetroTrocaAntigo()
Get the value of KmHorimetroTrocaAntigo
public
getKmHorimetroTrocaAntigo() : mixed
getKmHorimetroTrocaNovo()
Get the value of KmHorimetroTrocaNovo
public
getKmHorimetroTrocaNovo() : mixed
getMarca()
Get the value of marca
public
getMarca() : mixed
getModelo()
Get the value of modelo
public
getModelo() : mixed
getNomeAtivo()
Get the value of nomeAtivo
public
getNomeAtivo() : mixed
getNumeroSerie()
Get the value of numeroSerie
public
getNumeroSerie() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getPlaca()
Get the value of placa
public
getPlaca() : mixed
getRenavam()
Get the value of renavam
public
getRenavam() : mixed
getStatus()
Get the value of status
public
getStatus() : mixed
getStatusManutencao()
Get the value of statusManutencao
public
getStatusManutencao() : mixed
getTable()
public
getTable() : mixed
getTipoAtualizacao()
Get the value of tipoAtualizacao
public
getTipoAtualizacao() : mixed
getTipoContrataTerceiro()
public
getTipoContrataTerceiro() : mixed
getTotalAnexo()
Get the value of totalAnexo
public
getTotalAnexo() : mixed
getUsaFluxometro()
Get the value of usaFluxometro
public
getUsaFluxometro() : mixed
getValorAtivo()
Get the value of valorAtivo
public
getValorAtivo() : mixed
getVidaAtualvalor()
Get the value of vidaAtualvalor
public
getVidaAtualvalor() : mixed
getVidaUtil()
Get the value of vidaUtil
public
getVidaUtil() : 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
setAno()
Set the value of ano
public
setAno(mixed $ano) : self
Parameters
- $ano : mixed
Return values
selfsetAnoModelo()
Set the value of anoModelo
public
setAnoModelo(mixed $anoModelo) : self
Parameters
- $anoModelo : mixed
Return values
selfsetBombaImplemento()
Set the value of bombaImplemento
public
setBombaImplemento(mixed $bombaImplemento) : self
Parameters
- $bombaImplemento : mixed
Return values
selfsetCapacidadeBomba()
Set the value of capacidadeBomba
public
setCapacidadeBomba(mixed $capacidadeBomba) : self
Parameters
- $capacidadeBomba : mixed
Return values
selfsetChassi()
Set the value of chassi
public
setChassi(mixed $chassi) : self
Parameters
- $chassi : mixed
Return values
selfsetCodigoAtivo()
Set the value of codigoAtivo
public
setCodigoAtivo(mixed $codigoAtivo) : self
Parameters
- $codigoAtivo : mixed
Return values
selfsetCor()
Set the value of cor
public
setCor(mixed $cor) : self
Parameters
- $cor : mixed
Return values
selfsetCrv()
Set the value of crv
public
setCrv(mixed $crv) : self
Parameters
- $crv : mixed
Return values
selfsetCustoCombustivel()
Set the value of custoCombustivel
public
setCustoCombustivel(mixed $custoCombustivel) : self
Parameters
- $custoCombustivel : mixed
Return values
selfsetCustoDepreciacao()
Set the value of custoDepreciacao
public
setCustoDepreciacao(mixed $custoDepreciacao) : self
Parameters
- $custoDepreciacao : mixed
Return values
selfsetCustoHora()
Set the value of custoHora
public
setCustoHora(mixed $custoHora) : self
Parameters
- $custoHora : mixed
Return values
selfsetCustoHoraEfetivo()
Set the value of custoHoraEfetivo
public
setCustoHoraEfetivo(mixed $custoHoraEfetivo) : self
Parameters
- $custoHoraEfetivo : mixed
Return values
selfsetCustoJuros()
Set the value of custoJuros
public
setCustoJuros(mixed $custoJuros) : self
Parameters
- $custoJuros : mixed
Return values
selfsetCustoManutencao()
Set the value of custoManutencao
public
setCustoManutencao(mixed $custoManutencao) : self
Parameters
- $custoManutencao : mixed
Return values
selfsetDataCompra()
Set the value of dataCompra
public
setDataCompra(mixed $dataCompra) : self
Parameters
- $dataCompra : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetHorasRodadas()
Set the value of horasRodadas
public
setHorasRodadas(mixed $horasRodadas) : self
Parameters
- $horasRodadas : 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
selfsetIdDepartamento()
Set the value of idDepartamento
public
setIdDepartamento(mixed $idDepartamento) : self
Parameters
- $idDepartamento : mixed
Return values
selfsetIdEntidadeResponsavel()
Set the value of idEntidadeResponsavel
public
setIdEntidadeResponsavel(mixed $idEntidadeResponsavel) : self
Parameters
- $idEntidadeResponsavel : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdFazendaCompra()
Set the value of idFazendaCompra
public
setIdFazendaCompra(mixed $idFazendaCompra) : self
Parameters
- $idFazendaCompra : mixed
Return values
selfsetIdTipoAtivo()
Set the value of idTipoAtivo
public
setIdTipoAtivo(mixed $idTipoAtivo) : self
Parameters
- $idTipoAtivo : mixed
Return values
selfsetIdTipoAtivoCategoria()
Set the value of idTipoAtivoCategoria
public
setIdTipoAtivoCategoria(mixed $idTipoAtivoCategoria) : self
Parameters
- $idTipoAtivoCategoria : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetKm()
Set the value of Km
public
setKm(mixed $Km) : self
Parameters
- $Km : mixed
Return values
selfsetKmHorimetroOleo()
Set the value of KmHorimetroOleo
public
setKmHorimetroOleo(mixed $KmHorimetroOleo) : self
Parameters
- $KmHorimetroOleo : mixed
Return values
selfsetKmHorimetroTroca()
Set the value of KmHorimetroTroca
public
setKmHorimetroTroca(mixed $KmHorimetroTroca) : self
Parameters
- $KmHorimetroTroca : mixed
Return values
selfsetKmHorimetroTrocaAntigo()
Set the value of KmHorimetroTrocaAntigo
public
setKmHorimetroTrocaAntigo(mixed $KmHorimetroTrocaAntigo) : self
Parameters
- $KmHorimetroTrocaAntigo : mixed
Return values
selfsetKmHorimetroTrocaNovo()
Set the value of KmHorimetroTrocaNovo
public
setKmHorimetroTrocaNovo(mixed $KmHorimetroTrocaNovo) : self
Parameters
- $KmHorimetroTrocaNovo : mixed
Return values
selfsetMarca()
Set the value of marca
public
setMarca(mixed $marca) : self
Parameters
- $marca : mixed
Return values
selfsetModelo()
Set the value of modelo
public
setModelo(mixed $modelo) : self
Parameters
- $modelo : mixed
Return values
selfsetNomeAtivo()
Set the value of nomeAtivo
public
setNomeAtivo(mixed $nomeAtivo) : self
Parameters
- $nomeAtivo : mixed
Return values
selfsetNumeroSerie()
Set the value of numeroSerie
public
setNumeroSerie(mixed $numeroSerie) : self
Parameters
- $numeroSerie : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetPlaca()
Set the value of placa
public
setPlaca(mixed $placa) : self
Parameters
- $placa : mixed
Return values
selfsetRenavam()
Set the value of renavam
public
setRenavam(mixed $renavam) : self
Parameters
- $renavam : mixed
Return values
selfsetStatus()
Set the value of status
public
setStatus(mixed $status) : self
Parameters
- $status : mixed
Return values
selfsetStatusManutencao()
Set the value of statusManutencao
public
setStatusManutencao(mixed $statusManutencao) : self
Parameters
- $statusManutencao : mixed
Return values
selfsetTipoAtualizacao()
Set the value of tipoAtualizacao
public
setTipoAtualizacao(mixed $tipoAtualizacao) : self
Parameters
- $tipoAtualizacao : mixed
Return values
selfsetTipoContrataTerceiro()
Set the value of tipoContrataTerceiro
public
setTipoContrataTerceiro(mixed $tipoContrataTerceiro) : self
Parameters
- $tipoContrataTerceiro : mixed
Return values
selfsetTotalAnexo()
Set the value of totalAnexo
public
setTotalAnexo(mixed $totalAnexo) : self
Parameters
- $totalAnexo : mixed
Return values
selfsetUsaFluxometro()
Set the value of usaFluxometro
public
setUsaFluxometro(mixed $usaFluxometro) : self
Parameters
- $usaFluxometro : mixed
Return values
selfsetValorAtivo()
Set the value of valorAtivo
public
setValorAtivo(mixed $valorAtivo) : self
Parameters
- $valorAtivo : mixed
Return values
selfsetVidaAtualvalor()
Set the value of vidaAtualvalor
public
setVidaAtualvalor(mixed $vidaAtualvalor) : self
Parameters
- $vidaAtualvalor : mixed
Return values
selfsetVidaUtil()
Set the value of vidaUtil
public
setVidaUtil(mixed $vidaUtil) : self
Parameters
- $vidaUtil : 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 = '*'