Documentation

CadPastagemServicosExecutaEntity 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_pastagem_servicos_executa'
pk_field  = 'idExeServico'
sanitize  = []
Estrutura = ['key' => 'rule']
security  = ['select' => 'src\models\CadPastagemServicosExecutaSecurity::securitySelect']
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
tracking  = true
validations  = ['data' => ['required' => 'O campo Data Serviço é requerido.', 'date' => 'O campo Data Serviço não tem data válida.'], 'idNegocio' => ['required' => 'O campo Negócio é requerido.'], 'idCategoriaServico' => ['required' => 'O campo Categoria de Serviço é requerido.'], 'idServico' => ['required' => 'O campo Serviço é requerido.'], 'tipoServico' => ['required' => 'O campo Tipo de Serviço é requerido.'], 'idFazenda' => ['required' => 'O campo Fazenda é requerido.'], 'idEntidadeRespTecnico' => ['required' => 'O campo Responsável Técnico é requerido.']]
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$AnoAgricola  : mixed
$AnoAgricolaSafra  : mixed
$areaAtingidaHa  : mixed
$areaHa  : mixed
$avaliaServico  : mixed
$custoAtivoTotalComercial  : mixed
$custoAtivoTotalEfetivo  : mixed
$custoFixoLoteTalhao  : mixed
$custoHoraAtivoComercial  : mixed
$custoHoraAtivoEfetivo  : mixed
$custoHoraMB  : mixed
$custoMBTotal  : mixed
$custoProdutosTotal  : mixed
$data  : mixed
$DataHora  : mixed
$hashApi  : mixed
$horaCadastroLote  : mixed
$horaFim  : mixed
$horaInicio  : mixed
$idCategoriaServico  : mixed
$idContasPagar  : mixed
$idEntidadeRespTecnico  : mixed
$idEstadio  : mixed
$idExeServico  : mixed
$idFazenda  : mixed
$idFormula  : mixed
$idNegocio  : mixed
$idPastagem  : mixed
$idReceita  : mixed
$idServico  : mixed
$idServicoExeResumo  : mixed
$idUsuario  : mixed
$idVariavelControle  : mixed
$OBS  : mixed
$OBS2  : mixed
$qtidadeDia  : mixed
$qtidadeHoraMB  : mixed
$qtidadeHoraServico  : mixed
$qtidadeHoraTotal  : mixed
$qtidadeLitrosProdutos  : mixed
$qtidadePessoas  : mixed
$qtidadeProducao  : mixed
$status  : mixed
$tipoServico  : mixed
$turnoTrab  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAnoAgricola()  : mixed
Get the value of AnoAgricola
getAnoAgricolaSafra()  : mixed
Get the value of AnoAgricolaSafra
getAreaAtingidaHa()  : mixed
Get the value of areaAtingidaHa
getAreaHa()  : mixed
Get the value of areaHa
getAuditlog()  : mixed
getAvaliaServico()  : mixed
Get the value of avaliaServico
getConst()  : mixed
getConstObj()  : mixed
getCustoAtivoTotalComercial()  : mixed
Get the value of custoAtivoTotalComercial
getCustoAtivoTotalEfetivo()  : mixed
Get the value of custoAtivoTotalEfetivo
getCustoFixoLoteTalhao()  : mixed
Get the value of custoFixoLoteTalhao
getCustoHoraAtivoComercial()  : mixed
Get the value of custoHoraAtivoComercial
getCustoHoraAtivoEfetivo()  : mixed
Get the value of custoHoraAtivoEfetivo
getCustoHoraMB()  : mixed
Get the value of custoHoraMB
getCustoMBTotal()  : mixed
Get the value of custoMBTotal
getCustoProdutosTotal()  : mixed
Get the value of custoProdutosTotal
getData()  : mixed
Get the value of data
getDatabase()  : mixed
getDataHora()  : mixed
Get the value of DataHora
getDBDriver()  : mixed
getDBTable()  : mixed
getHashApi()  : mixed
Get the value of hashApi
getHoraCadastroLote()  : mixed
Get the value of horaCadastroLote
getHoraFim()  : mixed
Get the value of horaFim
getHoraInicio()  : mixed
Get the value of horaInicio
getIdCategoriaServico()  : mixed
Get the value of idCategoriaServico
getIdContasPagar()  : mixed
Get the value of idContasPagar
getIdEntidadeRespTecnico()  : mixed
Get the value of idEntidadeRespTecnico
getIdEstadio()  : mixed
Get the value of idEstadio
getIdExeServico()  : mixed
Get the value of idExeServico
getIdFazenda()  : mixed
Get the value of idFazenda
getIdFormula()  : mixed
Get the value of idFormula
getIdNegocio()  : mixed
Get the value of idNegocio
getIdPastagem()  : mixed
Get the value of idPastagem
getIdReceita()  : mixed
Get the value of idReceita
getIdServico()  : mixed
Get the value of idServico
getIdServicoExeResumo()  : mixed
Get the value of idServicoExeResumo
getIdUsuario()  : mixed
Get the value of idUsuario
getIdVariavelControle()  : mixed
Get the value of idVariavelControle
getOBS()  : mixed
Get the value of OBS
getOBS2()  : mixed
Get the value of OBS2
getQtidadeDia()  : mixed
Get the value of qtidadeDia
getQtidadeHoraMB()  : mixed
Get the value of qtidadeHoraMB
getQtidadeHoraServico()  : mixed
Get the value of qtidadeHoraServico
getQtidadeHoraTotal()  : mixed
Get the value of qtidadeHoraTotal
getQtidadeLitrosProdutos()  : mixed
Get the value of qtidadeLitrosProdutos
getQtidadePessoas()  : mixed
Get the value of qtidadePessoas
getQtidadeProducao()  : mixed
Get the value of qtidadeProducao
getStatus()  : mixed
Get the value of status
getTable()  : mixed
getTipoServico()  : mixed
Get the value of tipoServico
getTurnoTrab()  : mixed
Get the value of turnoTrab
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
setAnoAgricolaSafra()  : self
Set the value of AnoAgricolaSafra
setAreaAtingidaHa()  : self
Set the value of areaAtingidaHa
setAreaHa()  : self
Set the value of areaHa
setAvaliaServico()  : self
Set the value of avaliaServico
setCustoAtivoTotalComercial()  : self
Set the value of custoAtivoTotalComercial
setCustoAtivoTotalEfetivo()  : self
Set the value of custoAtivoTotalEfetivo
setCustoFixoLoteTalhao()  : self
Set the value of custoFixoLoteTalhao
setCustoHoraAtivoComercial()  : self
Set the value of custoHoraAtivoComercial
setCustoHoraAtivoEfetivo()  : self
Set the value of custoHoraAtivoEfetivo
setCustoHoraMB()  : self
Set the value of custoHoraMB
setCustoMBTotal()  : self
Set the value of custoMBTotal
setCustoProdutosTotal()  : self
Set the value of custoProdutosTotal
setData()  : self
Set the value of data
setDataHora()  : self
Set the value of DataHora
setHashApi()  : self
Set the value of hashApi
setHoraCadastroLote()  : self
Set the value of horaCadastroLote
setHoraFim()  : self
Set the value of horaFim
setHoraInicio()  : self
Set the value of horaInicio
setIdCategoriaServico()  : self
Set the value of idCategoriaServico
setIdContasPagar()  : self
Set the value of idContasPagar
setIdEntidadeRespTecnico()  : self
Set the value of idEntidadeRespTecnico
setIdEstadio()  : self
Set the value of idEstadio
setIdExeServico()  : self
Set the value of idExeServico
setIdFazenda()  : self
Set the value of idFazenda
setIdFormula()  : self
Set the value of idFormula
setIdNegocio()  : self
Set the value of idNegocio
setIdPastagem()  : self
Set the value of idPastagem
setIdReceita()  : self
Set the value of idReceita
setIdServico()  : self
Set the value of idServico
setIdServicoExeResumo()  : self
Set the value of idServicoExeResumo
setIdUsuario()  : self
Set the value of idUsuario
setIdVariavelControle()  : self
Set the value of idVariavelControle
setOBS()  : self
Set the value of OBS
setOBS2()  : self
Set the value of OBS2
setQtidadeDia()  : self
Set the value of qtidadeDia
setQtidadeHoraMB()  : self
Set the value of qtidadeHoraMB
setQtidadeHoraServico()  : self
Set the value of qtidadeHoraServico
setQtidadeHoraTotal()  : self
Set the value of qtidadeHoraTotal
setQtidadeLitrosProdutos()  : self
Set the value of qtidadeLitrosProdutos
setQtidadePessoas()  : self
Set the value of qtidadePessoas
setQtidadeProducao()  : self
Set the value of qtidadeProducao
setStatus()  : self
Set the value of status
setTipoServico()  : self
Set the value of tipoServico
setTurnoTrab()  : self
Set the value of turnoTrab
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

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' => 'src\models\CadPastagemServicosExecutaSecurity::securitySelect']

validations

Estrutura = ['key' => ['keyRule' => 'Rule message']]

public mixed validations = ['data' => ['required' => 'O campo Data Serviço é requerido.', 'date' => 'O campo Data Serviço não tem data válida.'], 'idNegocio' => ['required' => 'O campo Negócio é requerido.'], 'idCategoriaServico' => ['required' => 'O campo Categoria de Serviço é requerido.'], 'idServico' => ['required' => 'O campo Serviço é requerido.'], 'tipoServico' => ['required' => 'O campo Tipo de Serviço é requerido.'], 'idFazenda' => ['required' => 'O campo Fazenda é requerido.'], 'idEntidadeRespTecnico' => ['required' => 'O campo Responsável Técnico é 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

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

getTable()

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

setAnoAgricolaSafra()

Set the value of AnoAgricolaSafra

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

setAreaAtingidaHa()

Set the value of areaAtingidaHa

public setAreaAtingidaHa(mixed $areaAtingidaHa) : self
Parameters
$areaAtingidaHa : mixed
Return values
self

setAvaliaServico()

Set the value of avaliaServico

public setAvaliaServico(mixed $avaliaServico) : self
Parameters
$avaliaServico : mixed
Return values
self

setCustoAtivoTotalComercial()

Set the value of custoAtivoTotalComercial

public setCustoAtivoTotalComercial(mixed $custoAtivoTotalComercial) : self
Parameters
$custoAtivoTotalComercial : mixed
Return values
self

setCustoAtivoTotalEfetivo()

Set the value of custoAtivoTotalEfetivo

public setCustoAtivoTotalEfetivo(mixed $custoAtivoTotalEfetivo) : self
Parameters
$custoAtivoTotalEfetivo : mixed
Return values
self

setCustoFixoLoteTalhao()

Set the value of custoFixoLoteTalhao

public setCustoFixoLoteTalhao(mixed $custoFixoLoteTalhao) : self
Parameters
$custoFixoLoteTalhao : mixed
Return values
self

setCustoHoraAtivoComercial()

Set the value of custoHoraAtivoComercial

public setCustoHoraAtivoComercial(mixed $custoHoraAtivoComercial) : self
Parameters
$custoHoraAtivoComercial : mixed
Return values
self

setCustoHoraAtivoEfetivo()

Set the value of custoHoraAtivoEfetivo

public setCustoHoraAtivoEfetivo(mixed $custoHoraAtivoEfetivo) : self
Parameters
$custoHoraAtivoEfetivo : mixed
Return values
self

setCustoHoraMB()

Set the value of custoHoraMB

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

setCustoMBTotal()

Set the value of custoMBTotal

public setCustoMBTotal(mixed $custoMBTotal) : self
Parameters
$custoMBTotal : mixed
Return values
self

setCustoProdutosTotal()

Set the value of custoProdutosTotal

public setCustoProdutosTotal(mixed $custoProdutosTotal) : self
Parameters
$custoProdutosTotal : mixed
Return values
self

setHoraCadastroLote()

Set the value of horaCadastroLote

public setHoraCadastroLote(mixed $horaCadastroLote) : self
Parameters
$horaCadastroLote : mixed
Return values
self

setHoraInicio()

Set the value of horaInicio

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

setIdCategoriaServico()

Set the value of idCategoriaServico

public setIdCategoriaServico(mixed $idCategoriaServico) : self
Parameters
$idCategoriaServico : mixed
Return values
self

setIdContasPagar()

Set the value of idContasPagar

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

setIdEntidadeRespTecnico()

Set the value of idEntidadeRespTecnico

public setIdEntidadeRespTecnico(mixed $idEntidadeRespTecnico) : self
Parameters
$idEntidadeRespTecnico : mixed
Return values
self

setIdEstadio()

Set the value of idEstadio

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

setIdExeServico()

Set the value of idExeServico

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

setIdPastagem()

Set the value of idPastagem

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

setIdServicoExeResumo()

Set the value of idServicoExeResumo

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

setQtidadeDia()

Set the value of qtidadeDia

public setQtidadeDia(mixed $qtidadeDia) : self
Parameters
$qtidadeDia : mixed
Return values
self

setQtidadeHoraMB()

Set the value of qtidadeHoraMB

public setQtidadeHoraMB(mixed $qtidadeHoraMB) : self
Parameters
$qtidadeHoraMB : mixed
Return values
self

setQtidadeHoraServico()

Set the value of qtidadeHoraServico

public setQtidadeHoraServico(mixed $qtidadeHoraServico) : self
Parameters
$qtidadeHoraServico : mixed
Return values
self

setQtidadeHoraTotal()

Set the value of qtidadeHoraTotal

public setQtidadeHoraTotal(mixed $qtidadeHoraTotal) : self
Parameters
$qtidadeHoraTotal : mixed
Return values
self

setQtidadeLitrosProdutos()

Set the value of qtidadeLitrosProdutos

public setQtidadeLitrosProdutos(mixed $qtidadeLitrosProdutos) : self
Parameters
$qtidadeLitrosProdutos : mixed
Return values
self

setQtidadePessoas()

Set the value of qtidadePessoas

public setQtidadePessoas(mixed $qtidadePessoas) : self
Parameters
$qtidadePessoas : mixed
Return values
self

setQtidadeProducao()

Set the value of qtidadeProducao

public setQtidadeProducao(mixed $qtidadeProducao) : self
Parameters
$qtidadeProducao : mixed
Return values
self

setTipoServico()

Set the value of tipoServico

public setTipoServico(mixed $tipoServico) : self
Parameters
$tipoServico : mixed
Return values
self

setTurnoTrab()

Set the value of turnoTrab

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