Documentation

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

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

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

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

getDatabase()

public getDatabase() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getIdUnidadeNegocio()

Get the value of idUnidadeNegocio

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

getTable()

public getTable() : mixed

getTotalHaPastagens()

Get the value of totalHaPastagens

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

setAnoAgricola()

Set the value of AnoAgricola

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

setCapacidadeTanque()

Set the value of capacidadeTanque

public setCapacidadeTanque(mixed $capacidadeTanque) : self
Parameters
$capacidadeTanque : mixed
Return values
self

setCustoTotalBracal()

Set the value of custoTotalBracal

public setCustoTotalBracal(mixed $custoTotalBracal) : self
Parameters
$custoTotalBracal : mixed
Return values
self

setCustoTotalMaquina()

Set the value of custoTotalMaquina

public setCustoTotalMaquina(mixed $custoTotalMaquina) : self
Parameters
$custoTotalMaquina : mixed
Return values
self

setData()

Set the value of data

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

setDataAplica()

Set the value of dataAplica

public setDataAplica(mixed $dataAplica) : self
Parameters
$dataAplica : mixed
Return values
self

setDataAplicaFim()

Set the value of dataAplicaFim

public setDataAplicaFim(mixed $dataAplicaFim) : self
Parameters
$dataAplicaFim : mixed
Return values
self

setDataHora()

Set the value of dataHora

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

setIdCategoria()

Set the value of idCategoria

public setIdCategoria(mixed $idCategoria) : self
Parameters
$idCategoria : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

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

setIdEstadio()

Set the value of idEstadio

public setIdEstadio(mixed $idEstadio) : self
Parameters
$idEstadio : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

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

setIdFormula()

Set the value of idFormula

public setIdFormula(mixed $idFormula) : self
Parameters
$idFormula : mixed
Return values
self

setIdNegocio()

Set the value of idNegocio

public setIdNegocio(mixed $idNegocio) : self
Parameters
$idNegocio : mixed
Return values
self

setIdReceita()

Set the value of idReceita

public setIdReceita(mixed $idReceita) : self
Parameters
$idReceita : mixed
Return values
self

setIdServico()

Set the value of idServico

public setIdServico(mixed $idServico) : self
Parameters
$idServico : mixed
Return values
self

setIdUnidadeNegocio()

Set the value of idUnidadeNegocio

public setIdUnidadeNegocio(mixed $idUnidadeNegocio) : self
Parameters
$idUnidadeNegocio : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setMarchaAplicacao()

Set the value of marchaAplicacao

public setMarchaAplicacao(mixed $marchaAplicacao) : self
Parameters
$marchaAplicacao : mixed
Return values
self

setMotivoCancela()

Set the value of motivoCancela

public setMotivoCancela(mixed $motivoCancela) : self
Parameters
$motivoCancela : mixed
Return values
self

setNomeReceita()

Set the value of nomeReceita

public setNomeReceita(mixed $nomeReceita) : self
Parameters
$nomeReceita : mixed
Return values
self

setObs()

Set the value of obs

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

setPrioridade()

Set the value of prioridade

public setPrioridade(mixed $prioridade) : self
Parameters
$prioridade : mixed
Return values
self

setQtidadeBombas()

Set the value of qtidadeBombas

public setQtidadeBombas(mixed $qtidadeBombas) : self
Parameters
$qtidadeBombas : mixed
Return values
self

setQtidadeHoraBracal()

Set the value of qtidadeHoraBracal

public setQtidadeHoraBracal(mixed $qtidadeHoraBracal) : self
Parameters
$qtidadeHoraBracal : mixed
Return values
self

setQtidadeHoraMaquina()

Set the value of qtidadeHoraMaquina

public setQtidadeHoraMaquina(mixed $qtidadeHoraMaquina) : self
Parameters
$qtidadeHoraMaquina : mixed
Return values
self

setQtidadeLitrosAgua()

Set the value of qtidadeLitrosAgua

public setQtidadeLitrosAgua(mixed $qtidadeLitrosAgua) : self
Parameters
$qtidadeLitrosAgua : mixed
Return values
self

setRotacao()

Set the value of rotacao

public setRotacao(mixed $rotacao) : self
Parameters
$rotacao : mixed
Return values
self

setStatus()

Set the value of status

public setStatus(mixed $status) : self
Parameters
$status : mixed
Return values
self

setTipoReceita()

Set the value of tipoReceita

public setTipoReceita(mixed $tipoReceita) : self
Parameters
$tipoReceita : mixed
Return values
self

setTotalHaPastagens()

Set the value of totalHaPastagens

public setTotalHaPastagens(mixed $totalHaPastagens) : self
Parameters
$totalHaPastagens : 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