TalhaoAreaEntity
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_pastagens'
- pk_field = 'idPastagem'
- sanitize = []
- Estrutura = ['key' => 'rule']
- security = ['select' => 'src\models\TalhaoAreaSecurity::securitySelect', 'update' => 'src\models\TalhaoAreaSecurity::securityUpdate', 'delete' => 'src\models\TalhaoAreaSecurity::securityDelete']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ['codigoPastagem' => ['required' => 'O campo Código Pastagem é requerido.'], 'nomePastagem' => ['required' => 'O campo Nome Pastagem é requerido.'], 'status' => ['required' => 'O campo Status é requerido.'], 'idFazenda' => ['required' => 'O campo Fazenda é requerido.']]
Properties
- $anoPlantio : mixed
- $areaAlq : mixed
- $areaHa : mixed
- $areaHaUtil : mixed
- $areaIrrigada : mixed
- $capacunanimalPastagem : mixed
- $capacunanimalPastagem2 : mixed
- $codigoPastagem : mixed
- $coordinates : mixed
- $DataHora : mixed
- $dataPlantio : mixed
- $espacamentoPe : mixed
- $espacamentoPeFim : mixed
- $espacamentoPeInicio : mixed
- $idFazenda : mixed
- $idPastagem : mixed
- $idUsuario : mixed
- $indiceSegCap : mixed
- $lat : mixed
- $lng : mixed
- $lotacaoUAAcumulada : mixed
- $nomePastagem : mixed
- $obsPastagem : mixed
- $ordem : mixed
- $pastoDescarte : mixed
- $qdeAnimal : mixed
- $qtidadePe : mixed
- $status : mixed
- $tags : mixed
- $type : mixed
- $unanimalAlq : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAnoPlantio() : mixed
- Get the value of anoPlantio
- getAreaAlq() : mixed
- Get the value of areaAlq
- getAreaHa() : mixed
- Get the value of areaHa
- getAreaHaUtil() : mixed
- Get the value of areaHaUtil
- getAreaIrrigada() : mixed
- Get the value of areaIrrigada
- getAuditlog() : mixed
- getCapacunanimalPastagem() : mixed
- Get the value of capacunanimalPastagem
- getCapacunanimalPastagem2() : mixed
- Get the value of capacunanimalPastagem2
- getCodigoPastagem() : mixed
- Get the value of codigoPastagem
- getConst() : mixed
- getConstObj() : mixed
- getCoordinates() : mixed
- Get the value of coordinates
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDataPlantio() : mixed
- Get the value of dataPlantio
- getDBDriver() : mixed
- getDBTable() : mixed
- getEspacamentoPe() : mixed
- Get the value of espacamentoPe
- getEspacamentoPeFim() : mixed
- Get the value of espacamentoPeFim
- getEspacamentoPeInicio() : mixed
- Get the value of espacamentoPeInicio
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdPastagem() : mixed
- Get the value of idPastagem
- getIdUsuario() : mixed
- Get the value of idUsuario
- getIndiceSegCap() : mixed
- Get the value of indiceSegCap
- getLat() : mixed
- Get the value of lat
- getLng() : mixed
- Get the value of lng
- getLotacaoUAAcumulada() : mixed
- Get the value of lotacaoUAAcumulada
- getNomePastagem() : mixed
- Get the value of nomePastagem
- getObsPastagem() : mixed
- Get the value of obsPastagem
- getOrdem() : mixed
- Get the value of ordem
- getPastoDescarte() : mixed
- Get the value of pastoDescarte
- getQdeAnimal() : mixed
- Get the value of qdeAnimal
- getQtidadePe() : mixed
- Get the value of qtidadePe
- getStatus() : mixed
- Get the value of status
- getTable() : mixed
- getTags() : mixed
- Get the value of tags
- getType() : mixed
- Get the value of type
- getUnanimalAlq() : mixed
- Get the value of unanimalAlq
- 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
- setAnoPlantio() : self
- Set the value of anoPlantio
- setAreaAlq() : self
- Set the value of areaAlq
- setAreaHa() : self
- Set the value of areaHa
- setAreaHaUtil() : self
- Set the value of areaHaUtil
- setAreaIrrigada() : self
- Set the value of areaIrrigada
- setCapacunanimalPastagem() : self
- Set the value of capacunanimalPastagem
- setCapacunanimalPastagem2() : self
- Set the value of capacunanimalPastagem2
- setCodigoPastagem() : self
- Set the value of codigoPastagem
- setCoordinates() : self
- Set the value of coordinates
- setDataHora() : self
- Set the value of DataHora
- setDataPlantio() : self
- Set the value of dataPlantio
- setEspacamentoPe() : self
- Set the value of espacamentoPe
- setEspacamentoPeFim() : self
- Set the value of espacamentoPeFim
- setEspacamentoPeInicio() : self
- Set the value of espacamentoPeInicio
- setIdFazenda() : self
- Set the value of idFazenda
- setIdPastagem() : self
- Set the value of idPastagem
- setIdUsuario() : self
- Set the value of idUsuario
- setIndiceSegCap() : self
- Set the value of indiceSegCap
- setLat() : self
- Set the value of lat
- setLng() : self
- Set the value of lng
- setLotacaoUAAcumulada() : self
- Set the value of lotacaoUAAcumulada
- setNomePastagem() : self
- Set the value of nomePastagem
- setObsPastagem() : self
- Set the value of obsPastagem
- setOrdem() : self
- Set the value of ordem
- setPastoDescarte() : self
- Set the value of pastoDescarte
- setQdeAnimal() : self
- Set the value of qdeAnimal
- setQtidadePe() : self
- Set the value of qtidadePe
- setStatus() : self
- Set the value of status
- setTags() : self
- Set the value of tags
- setType() : self
- Set the value of type
- setUnanimalAlq() : self
- Set the value of unanimalAlq
- 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_pastagens'
pk_field
public
mixed
pk_field
= 'idPastagem'
sanitize
Estrutura = ['key' => 'rule']
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['select' => 'src\models\TalhaoAreaSecurity::securitySelect', 'update' => 'src\models\TalhaoAreaSecurity::securityUpdate', 'delete' => 'src\models\TalhaoAreaSecurity::securityDelete']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= ['codigoPastagem' => ['required' => 'O campo Código Pastagem é requerido.'], 'nomePastagem' => ['required' => 'O campo Nome Pastagem é requerido.'], 'status' => ['required' => 'O campo Status é requerido.'], 'idFazenda' => ['required' => 'O campo Fazenda é requerido.']]
Properties
$anoPlantio
private
mixed
$anoPlantio
$areaAlq
private
mixed
$areaAlq
$areaHa
private
mixed
$areaHa
$areaHaUtil
private
mixed
$areaHaUtil
$areaIrrigada
private
mixed
$areaIrrigada
$capacunanimalPastagem
private
mixed
$capacunanimalPastagem
$capacunanimalPastagem2
private
mixed
$capacunanimalPastagem2
$codigoPastagem
private
mixed
$codigoPastagem
$coordinates
private
mixed
$coordinates
$DataHora
private
mixed
$DataHora
$dataPlantio
private
mixed
$dataPlantio
$espacamentoPe
private
mixed
$espacamentoPe
$espacamentoPeFim
private
mixed
$espacamentoPeFim
$espacamentoPeInicio
private
mixed
$espacamentoPeInicio
$idFazenda
private
mixed
$idFazenda
$idPastagem
private
mixed
$idPastagem
$idUsuario
private
mixed
$idUsuario
$indiceSegCap
private
mixed
$indiceSegCap
$lat
private
mixed
$lat
$lng
private
mixed
$lng
$lotacaoUAAcumulada
private
mixed
$lotacaoUAAcumulada
$nomePastagem
private
mixed
$nomePastagem
$obsPastagem
private
mixed
$obsPastagem
$ordem
private
mixed
$ordem
$pastoDescarte
private
mixed
$pastoDescarte
$qdeAnimal
private
mixed
$qdeAnimal
$qtidadePe
private
mixed
$qtidadePe
$status
private
mixed
$status
$tags
private
mixed
$tags
$type
private
mixed
$type
$unanimalAlq
private
mixed
$unanimalAlq
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 = []
getAnoPlantio()
Get the value of anoPlantio
public
getAnoPlantio() : mixed
getAreaAlq()
Get the value of areaAlq
public
getAreaAlq() : mixed
getAreaHa()
Get the value of areaHa
public
getAreaHa() : mixed
getAreaHaUtil()
Get the value of areaHaUtil
public
getAreaHaUtil() : mixed
getAreaIrrigada()
Get the value of areaIrrigada
public
getAreaIrrigada() : mixed
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getCapacunanimalPastagem()
Get the value of capacunanimalPastagem
public
getCapacunanimalPastagem() : mixed
getCapacunanimalPastagem2()
Get the value of capacunanimalPastagem2
public
getCapacunanimalPastagem2() : mixed
getCodigoPastagem()
Get the value of codigoPastagem
public
getCodigoPastagem() : 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
getCoordinates()
Get the value of coordinates
public
getCoordinates() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDataPlantio()
Get the value of dataPlantio
public
getDataPlantio() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getEspacamentoPe()
Get the value of espacamentoPe
public
getEspacamentoPe() : mixed
getEspacamentoPeFim()
Get the value of espacamentoPeFim
public
getEspacamentoPeFim() : mixed
getEspacamentoPeInicio()
Get the value of espacamentoPeInicio
public
getEspacamentoPeInicio() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdPastagem()
Get the value of idPastagem
public
getIdPastagem() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getIndiceSegCap()
Get the value of indiceSegCap
public
getIndiceSegCap() : mixed
getLat()
Get the value of lat
public
getLat() : mixed
getLng()
Get the value of lng
public
getLng() : mixed
getLotacaoUAAcumulada()
Get the value of lotacaoUAAcumulada
public
getLotacaoUAAcumulada() : mixed
getNomePastagem()
Get the value of nomePastagem
public
getNomePastagem() : mixed
getObsPastagem()
Get the value of obsPastagem
public
getObsPastagem() : mixed
getOrdem()
Get the value of ordem
public
getOrdem() : mixed
getPastoDescarte()
Get the value of pastoDescarte
public
getPastoDescarte() : mixed
getQdeAnimal()
Get the value of qdeAnimal
public
getQdeAnimal() : mixed
getQtidadePe()
Get the value of qtidadePe
public
getQtidadePe() : mixed
getStatus()
Get the value of status
public
getStatus() : mixed
getTable()
public
getTable() : mixed
getTags()
Get the value of tags
public
getTags() : mixed
getType()
Get the value of type
public
getType() : mixed
getUnanimalAlq()
Get the value of unanimalAlq
public
getUnanimalAlq() : 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
setAnoPlantio()
Set the value of anoPlantio
public
setAnoPlantio(mixed $anoPlantio) : self
Parameters
- $anoPlantio : mixed
Return values
selfsetAreaAlq()
Set the value of areaAlq
public
setAreaAlq(mixed $areaAlq) : self
Parameters
- $areaAlq : mixed
Return values
selfsetAreaHa()
Set the value of areaHa
public
setAreaHa(mixed $areaHa) : self
Parameters
- $areaHa : mixed
Return values
selfsetAreaHaUtil()
Set the value of areaHaUtil
public
setAreaHaUtil(mixed $areaHaUtil) : self
Parameters
- $areaHaUtil : mixed
Return values
selfsetAreaIrrigada()
Set the value of areaIrrigada
public
setAreaIrrigada(mixed $areaIrrigada) : self
Parameters
- $areaIrrigada : mixed
Return values
selfsetCapacunanimalPastagem()
Set the value of capacunanimalPastagem
public
setCapacunanimalPastagem(mixed $capacunanimalPastagem) : self
Parameters
- $capacunanimalPastagem : mixed
Return values
selfsetCapacunanimalPastagem2()
Set the value of capacunanimalPastagem2
public
setCapacunanimalPastagem2(mixed $capacunanimalPastagem2) : self
Parameters
- $capacunanimalPastagem2 : mixed
Return values
selfsetCodigoPastagem()
Set the value of codigoPastagem
public
setCodigoPastagem(mixed $codigoPastagem) : self
Parameters
- $codigoPastagem : mixed
Return values
selfsetCoordinates()
Set the value of coordinates
public
setCoordinates(mixed $coordinates) : self
Parameters
- $coordinates : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDataPlantio()
Set the value of dataPlantio
public
setDataPlantio(mixed $dataPlantio) : self
Parameters
- $dataPlantio : mixed
Return values
selfsetEspacamentoPe()
Set the value of espacamentoPe
public
setEspacamentoPe(mixed $espacamentoPe) : self
Parameters
- $espacamentoPe : mixed
Return values
selfsetEspacamentoPeFim()
Set the value of espacamentoPeFim
public
setEspacamentoPeFim(mixed $espacamentoPeFim) : self
Parameters
- $espacamentoPeFim : mixed
Return values
selfsetEspacamentoPeInicio()
Set the value of espacamentoPeInicio
public
setEspacamentoPeInicio(mixed $espacamentoPeInicio) : self
Parameters
- $espacamentoPeInicio : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdPastagem()
Set the value of idPastagem
public
setIdPastagem(mixed $idPastagem) : self
Parameters
- $idPastagem : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetIndiceSegCap()
Set the value of indiceSegCap
public
setIndiceSegCap(mixed $indiceSegCap) : self
Parameters
- $indiceSegCap : mixed
Return values
selfsetLat()
Set the value of lat
public
setLat(mixed $lat) : self
Parameters
- $lat : mixed
Return values
selfsetLng()
Set the value of lng
public
setLng(mixed $lng) : self
Parameters
- $lng : mixed
Return values
selfsetLotacaoUAAcumulada()
Set the value of lotacaoUAAcumulada
public
setLotacaoUAAcumulada(mixed $lotacaoUAAcumulada) : self
Parameters
- $lotacaoUAAcumulada : mixed
Return values
selfsetNomePastagem()
Set the value of nomePastagem
public
setNomePastagem(mixed $nomePastagem) : self
Parameters
- $nomePastagem : mixed
Return values
selfsetObsPastagem()
Set the value of obsPastagem
public
setObsPastagem(mixed $obsPastagem) : self
Parameters
- $obsPastagem : mixed
Return values
selfsetOrdem()
Set the value of ordem
public
setOrdem(mixed $ordem) : self
Parameters
- $ordem : mixed
Return values
selfsetPastoDescarte()
Set the value of pastoDescarte
public
setPastoDescarte(mixed $pastoDescarte) : self
Parameters
- $pastoDescarte : mixed
Return values
selfsetQdeAnimal()
Set the value of qdeAnimal
public
setQdeAnimal(mixed $qdeAnimal) : self
Parameters
- $qdeAnimal : mixed
Return values
selfsetQtidadePe()
Set the value of qtidadePe
public
setQtidadePe(mixed $qtidadePe) : self
Parameters
- $qtidadePe : mixed
Return values
selfsetStatus()
Set the value of status
public
setStatus(mixed $status) : self
Parameters
- $status : mixed
Return values
selfsetTags()
Set the value of tags
public
setTags(mixed $tags) : self
Parameters
- $tags : mixed
Return values
selfsetType()
Set the value of type
public
setType(mixed $type) : self
Parameters
- $type : mixed
Return values
selfsetUnanimalAlq()
Set the value of unanimalAlq
public
setUnanimalAlq(mixed $unanimalAlq) : self
Parameters
- $unanimalAlq : 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 = '*'