ProdutosReceitaEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['dataHora']]
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'cad_produtos_receita'
- pk_field = 'idReceita'
- sanitize = []
- Estrutura = ['key' => 'rule']
- security = ['update' => 'src\models\ProdutosReceitaSecurity::securityUpdate']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ['idEntidade' => ['required' => 'O campo Responsável é requerido.'], 'data' => ['required' => 'O campo Data é requerido.'], 'dataAplica' => ['required' => 'O campo Data Aplicação Inicial é requerido.'], 'dataAplicaFim' => ['required' => 'O campo Data Aplicação Final é requerido.'], 'AnoAgricola' => ['required' => 'O campo Ano Safra é requerido.'], 'nomeReceita' => ['required' => 'O campo Descrição é requerido.'], 'idUnidadeNegocio' => ['required' => 'O campo Uni. Negócio é requerido.'], 'idCategoria' => ['required' => 'O campo Categoria é requerido.'], 'prioridade' => ['required' => 'O campo Prioridade é requerido.']]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $AnoAgricola : mixed
- $capacidadeTanque : mixed
- $custoTotalBracal : mixed
- $custoTotalMaquina : mixed
- $data : mixed
- $dataAplica : mixed
- $dataAplicaFim : mixed
- $dataHora : mixed
- $idCategoria : mixed
- $idEntidade : mixed
- $idEstadio : mixed
- $idFazenda : mixed
- $idFormula : mixed
- $idNegocio : mixed
- $idReceita : mixed
- $idServico : mixed
- $idUnidadeNegocio : mixed
- $idUsuario : mixed
- $marchaAplicacao : mixed
- $motivoCancela : mixed
- $nomeReceita : mixed
- $obs : mixed
- $prioridade : mixed
- $qtidadeBombas : mixed
- $qtidadeHoraBracal : mixed
- $qtidadeHoraMaquina : mixed
- $qtidadeLitrosAgua : mixed
- $rotacao : mixed
- $status : mixed
- $tipoReceita : mixed
- $totalHaPastagens : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAnoAgricola() : mixed
- Get the value of AnoAgricola
- getAuditlog() : mixed
- getCapacidadeTanque() : mixed
- Get the value of capacidadeTanque
- getConst() : mixed
- getConstObj() : mixed
- getCustoTotalBracal() : mixed
- Get the value of custoTotalBracal
- getCustoTotalMaquina() : mixed
- Get the value of custoTotalMaquina
- getData() : mixed
- Get the value of data
- getDataAplica() : mixed
- Get the value of dataAplica
- getDataAplicaFim() : mixed
- Get the value of dataAplicaFim
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of dataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getIdCategoria() : mixed
- Get the value of idCategoria
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdEstadio() : mixed
- Get the value of idEstadio
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdFormula() : mixed
- Get the value of idFormula
- getIdNegocio() : mixed
- Get the value of idNegocio
- getIdReceita() : mixed
- Get the value of idReceita
- getIdServico() : mixed
- Get the value of idServico
- getIdUnidadeNegocio() : mixed
- Get the value of idUnidadeNegocio
- getIdUsuario() : mixed
- Get the value of idUsuario
- getMarchaAplicacao() : mixed
- Get the value of marchaAplicacao
- getMotivoCancela() : mixed
- Get the value of motivoCancela
- getNomeReceita() : mixed
- Get the value of nomeReceita
- getObs() : mixed
- Get the value of obs
- getPrioridade() : mixed
- Get the value of prioridade
- getQtidadeBombas() : mixed
- Get the value of qtidadeBombas
- getQtidadeHoraBracal() : mixed
- Get the value of qtidadeHoraBracal
- getQtidadeHoraMaquina() : mixed
- Get the value of qtidadeHoraMaquina
- getQtidadeLitrosAgua() : mixed
- Get the value of qtidadeLitrosAgua
- getRotacao() : mixed
- Get the value of rotacao
- getStatus() : mixed
- Get the value of status
- getTable() : mixed
- getTipoReceita() : mixed
- Get the value of tipoReceita
- getTotalHaPastagens() : mixed
- Get the value of totalHaPastagens
- 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
- setAnoAgricola() : self
- Set the value of AnoAgricola
- setCapacidadeTanque() : self
- Set the value of capacidadeTanque
- setCustoTotalBracal() : self
- Set the value of custoTotalBracal
- setCustoTotalMaquina() : self
- Set the value of custoTotalMaquina
- setData() : self
- Set the value of data
- setDataAplica() : self
- Set the value of dataAplica
- setDataAplicaFim() : self
- Set the value of dataAplicaFim
- setDataHora() : self
- Set the value of dataHora
- setIdCategoria() : self
- Set the value of idCategoria
- setIdEntidade() : self
- Set the value of idEntidade
- setIdEstadio() : self
- Set the value of idEstadio
- setIdFazenda() : self
- Set the value of idFazenda
- setIdFormula() : self
- Set the value of idFormula
- setIdNegocio() : self
- Set the value of idNegocio
- setIdReceita() : self
- Set the value of idReceita
- setIdServico() : self
- Set the value of idServico
- setIdUnidadeNegocio() : self
- Set the value of idUnidadeNegocio
- setIdUsuario() : self
- Set the value of idUsuario
- setMarchaAplicacao() : self
- Set the value of marchaAplicacao
- setMotivoCancela() : self
- Set the value of motivoCancela
- setNomeReceita() : self
- Set the value of nomeReceita
- setObs() : self
- Set the value of obs
- setPrioridade() : self
- Set the value of prioridade
- setQtidadeBombas() : self
- Set the value of qtidadeBombas
- setQtidadeHoraBracal() : self
- Set the value of qtidadeHoraBracal
- setQtidadeHoraMaquina() : self
- Set the value of qtidadeHoraMaquina
- setQtidadeLitrosAgua() : self
- Set the value of qtidadeLitrosAgua
- setRotacao() : self
- Set the value of rotacao
- setStatus() : self
- Set the value of status
- setTipoReceita() : self
- Set the value of tipoReceita
- setTotalHaPastagens() : self
- Set the value of totalHaPastagens
- 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']]
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'cad_produtos_receita'
pk_field
public
mixed
pk_field
= 'idReceita'
sanitize
Estrutura = ['key' => 'rule']
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['update' => 'src\models\ProdutosReceitaSecurity::securityUpdate']
tracking
public
mixed
tracking
= true
validations
Estrutura = ['key' => ['keyRule' => 'Rule message']]
public
mixed
validations
= ['idEntidade' => ['required' => 'O campo Responsável é requerido.'], 'data' => ['required' => 'O campo Data é requerido.'], 'dataAplica' => ['required' => 'O campo Data Aplicação Inicial é requerido.'], 'dataAplicaFim' => ['required' => 'O campo Data Aplicação Final é requerido.'], 'AnoAgricola' => ['required' => 'O campo Ano Safra é requerido.'], 'nomeReceita' => ['required' => 'O campo Descrição é requerido.'], 'idUnidadeNegocio' => ['required' => 'O campo Uni. Negócio é requerido.'], 'idCategoria' => ['required' => 'O campo Categoria é requerido.'], 'prioridade' => ['required' => 'O campo Prioridade é requerido.']]
Properties
$AnoAgricola
private
mixed
$AnoAgricola
$capacidadeTanque
private
mixed
$capacidadeTanque
$custoTotalBracal
private
mixed
$custoTotalBracal
$custoTotalMaquina
private
mixed
$custoTotalMaquina
$data
private
mixed
$data
$dataAplica
private
mixed
$dataAplica
$dataAplicaFim
private
mixed
$dataAplicaFim
$dataHora
private
mixed
$dataHora
$idCategoria
private
mixed
$idCategoria
$idEntidade
private
mixed
$idEntidade
$idEstadio
private
mixed
$idEstadio
$idFazenda
private
mixed
$idFazenda
$idFormula
private
mixed
$idFormula
$idNegocio
private
mixed
$idNegocio
$idReceita
private
mixed
$idReceita
$idServico
private
mixed
$idServico
$idUnidadeNegocio
private
mixed
$idUnidadeNegocio
$idUsuario
private
mixed
$idUsuario
$marchaAplicacao
private
mixed
$marchaAplicacao
$motivoCancela
private
mixed
$motivoCancela
$nomeReceita
private
mixed
$nomeReceita
$obs
private
mixed
$obs
$prioridade
private
mixed
$prioridade
$qtidadeBombas
private
mixed
$qtidadeBombas
$qtidadeHoraBracal
private
mixed
$qtidadeHoraBracal
$qtidadeHoraMaquina
private
mixed
$qtidadeHoraMaquina
$qtidadeLitrosAgua
private
mixed
$qtidadeLitrosAgua
$rotacao
private
mixed
$rotacao
$status
private
mixed
$status
$tipoReceita
private
mixed
$tipoReceita
$totalHaPastagens
private
mixed
$totalHaPastagens
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 = []
getAnoAgricola()
Get the value of AnoAgricola
public
getAnoAgricola() : mixed
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getCapacidadeTanque()
Get the value of capacidadeTanque
public
getCapacidadeTanque() : 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
getCustoTotalBracal()
Get the value of custoTotalBracal
public
getCustoTotalBracal() : mixed
getCustoTotalMaquina()
Get the value of custoTotalMaquina
public
getCustoTotalMaquina() : mixed
getData()
Get the value of data
public
getData() : mixed
getDataAplica()
Get the value of dataAplica
public
getDataAplica() : mixed
getDataAplicaFim()
Get the value of dataAplicaFim
public
getDataAplicaFim() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of dataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getIdCategoria()
Get the value of idCategoria
public
getIdCategoria() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEstadio()
Get the value of idEstadio
public
getIdEstadio() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdFormula()
Get the value of idFormula
public
getIdFormula() : mixed
getIdNegocio()
Get the value of idNegocio
public
getIdNegocio() : mixed
getIdReceita()
Get the value of idReceita
public
getIdReceita() : mixed
getIdServico()
Get the value of idServico
public
getIdServico() : mixed
getIdUnidadeNegocio()
Get the value of idUnidadeNegocio
public
getIdUnidadeNegocio() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getMarchaAplicacao()
Get the value of marchaAplicacao
public
getMarchaAplicacao() : mixed
getMotivoCancela()
Get the value of motivoCancela
public
getMotivoCancela() : mixed
getNomeReceita()
Get the value of nomeReceita
public
getNomeReceita() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getPrioridade()
Get the value of prioridade
public
getPrioridade() : mixed
getQtidadeBombas()
Get the value of qtidadeBombas
public
getQtidadeBombas() : mixed
getQtidadeHoraBracal()
Get the value of qtidadeHoraBracal
public
getQtidadeHoraBracal() : mixed
getQtidadeHoraMaquina()
Get the value of qtidadeHoraMaquina
public
getQtidadeHoraMaquina() : mixed
getQtidadeLitrosAgua()
Get the value of qtidadeLitrosAgua
public
getQtidadeLitrosAgua() : mixed
getRotacao()
Get the value of rotacao
public
getRotacao() : mixed
getStatus()
Get the value of status
public
getStatus() : mixed
getTable()
public
getTable() : mixed
getTipoReceita()
Get the value of tipoReceita
public
getTipoReceita() : mixed
getTotalHaPastagens()
Get the value of totalHaPastagens
public
getTotalHaPastagens() : 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
setAnoAgricola()
Set the value of AnoAgricola
public
setAnoAgricola(mixed $AnoAgricola) : self
Parameters
- $AnoAgricola : mixed
Return values
selfsetCapacidadeTanque()
Set the value of capacidadeTanque
public
setCapacidadeTanque(mixed $capacidadeTanque) : self
Parameters
- $capacidadeTanque : mixed
Return values
selfsetCustoTotalBracal()
Set the value of custoTotalBracal
public
setCustoTotalBracal(mixed $custoTotalBracal) : self
Parameters
- $custoTotalBracal : mixed
Return values
selfsetCustoTotalMaquina()
Set the value of custoTotalMaquina
public
setCustoTotalMaquina(mixed $custoTotalMaquina) : self
Parameters
- $custoTotalMaquina : mixed
Return values
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataAplica()
Set the value of dataAplica
public
setDataAplica(mixed $dataAplica) : self
Parameters
- $dataAplica : mixed
Return values
selfsetDataAplicaFim()
Set the value of dataAplicaFim
public
setDataAplicaFim(mixed $dataAplicaFim) : self
Parameters
- $dataAplicaFim : mixed
Return values
selfsetDataHora()
Set the value of dataHora
public
setDataHora(mixed $dataHora) : self
Parameters
- $dataHora : mixed
Return values
selfsetIdCategoria()
Set the value of idCategoria
public
setIdCategoria(mixed $idCategoria) : self
Parameters
- $idCategoria : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEstadio()
Set the value of idEstadio
public
setIdEstadio(mixed $idEstadio) : self
Parameters
- $idEstadio : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdFormula()
Set the value of idFormula
public
setIdFormula(mixed $idFormula) : self
Parameters
- $idFormula : mixed
Return values
selfsetIdNegocio()
Set the value of idNegocio
public
setIdNegocio(mixed $idNegocio) : self
Parameters
- $idNegocio : mixed
Return values
selfsetIdReceita()
Set the value of idReceita
public
setIdReceita(mixed $idReceita) : self
Parameters
- $idReceita : mixed
Return values
selfsetIdServico()
Set the value of idServico
public
setIdServico(mixed $idServico) : self
Parameters
- $idServico : mixed
Return values
selfsetIdUnidadeNegocio()
Set the value of idUnidadeNegocio
public
setIdUnidadeNegocio(mixed $idUnidadeNegocio) : self
Parameters
- $idUnidadeNegocio : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetMarchaAplicacao()
Set the value of marchaAplicacao
public
setMarchaAplicacao(mixed $marchaAplicacao) : self
Parameters
- $marchaAplicacao : mixed
Return values
selfsetMotivoCancela()
Set the value of motivoCancela
public
setMotivoCancela(mixed $motivoCancela) : self
Parameters
- $motivoCancela : mixed
Return values
selfsetNomeReceita()
Set the value of nomeReceita
public
setNomeReceita(mixed $nomeReceita) : self
Parameters
- $nomeReceita : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetPrioridade()
Set the value of prioridade
public
setPrioridade(mixed $prioridade) : self
Parameters
- $prioridade : mixed
Return values
selfsetQtidadeBombas()
Set the value of qtidadeBombas
public
setQtidadeBombas(mixed $qtidadeBombas) : self
Parameters
- $qtidadeBombas : mixed
Return values
selfsetQtidadeHoraBracal()
Set the value of qtidadeHoraBracal
public
setQtidadeHoraBracal(mixed $qtidadeHoraBracal) : self
Parameters
- $qtidadeHoraBracal : mixed
Return values
selfsetQtidadeHoraMaquina()
Set the value of qtidadeHoraMaquina
public
setQtidadeHoraMaquina(mixed $qtidadeHoraMaquina) : self
Parameters
- $qtidadeHoraMaquina : mixed
Return values
selfsetQtidadeLitrosAgua()
Set the value of qtidadeLitrosAgua
public
setQtidadeLitrosAgua(mixed $qtidadeLitrosAgua) : self
Parameters
- $qtidadeLitrosAgua : mixed
Return values
selfsetRotacao()
Set the value of rotacao
public
setRotacao(mixed $rotacao) : self
Parameters
- $rotacao : mixed
Return values
selfsetStatus()
Set the value of status
public
setStatus(mixed $status) : self
Parameters
- $status : mixed
Return values
selfsetTipoReceita()
Set the value of tipoReceita
public
setTipoReceita(mixed $tipoReceita) : self
Parameters
- $tipoReceita : mixed
Return values
selfsetTotalHaPastagens()
Set the value of totalHaPastagens
public
setTotalHaPastagens(mixed $totalHaPastagens) : self
Parameters
- $totalHaPastagens : 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 = '*'