Documentation

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

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']

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

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

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

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

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

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

getTable()

public getTable() : mixed

getUnanimalAlq()

Get the value of unanimalAlq

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

setAnoPlantio()

Set the value of anoPlantio

public setAnoPlantio(mixed $anoPlantio) : self
Parameters
$anoPlantio : mixed
Return values
self

setAreaAlq()

Set the value of areaAlq

public setAreaAlq(mixed $areaAlq) : self
Parameters
$areaAlq : mixed
Return values
self

setAreaHa()

Set the value of areaHa

public setAreaHa(mixed $areaHa) : self
Parameters
$areaHa : mixed
Return values
self

setAreaHaUtil()

Set the value of areaHaUtil

public setAreaHaUtil(mixed $areaHaUtil) : self
Parameters
$areaHaUtil : mixed
Return values
self

setAreaIrrigada()

Set the value of areaIrrigada

public setAreaIrrigada(mixed $areaIrrigada) : self
Parameters
$areaIrrigada : mixed
Return values
self

setCapacunanimalPastagem()

Set the value of capacunanimalPastagem

public setCapacunanimalPastagem(mixed $capacunanimalPastagem) : self
Parameters
$capacunanimalPastagem : mixed
Return values
self

setCapacunanimalPastagem2()

Set the value of capacunanimalPastagem2

public setCapacunanimalPastagem2(mixed $capacunanimalPastagem2) : self
Parameters
$capacunanimalPastagem2 : mixed
Return values
self

setCodigoPastagem()

Set the value of codigoPastagem

public setCodigoPastagem(mixed $codigoPastagem) : self
Parameters
$codigoPastagem : mixed
Return values
self

setCoordinates()

Set the value of coordinates

public setCoordinates(mixed $coordinates) : self
Parameters
$coordinates : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setDataPlantio()

Set the value of dataPlantio

public setDataPlantio(mixed $dataPlantio) : self
Parameters
$dataPlantio : mixed
Return values
self

setEspacamentoPe()

Set the value of espacamentoPe

public setEspacamentoPe(mixed $espacamentoPe) : self
Parameters
$espacamentoPe : mixed
Return values
self

setEspacamentoPeFim()

Set the value of espacamentoPeFim

public setEspacamentoPeFim(mixed $espacamentoPeFim) : self
Parameters
$espacamentoPeFim : mixed
Return values
self

setEspacamentoPeInicio()

Set the value of espacamentoPeInicio

public setEspacamentoPeInicio(mixed $espacamentoPeInicio) : self
Parameters
$espacamentoPeInicio : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

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

setIdPastagem()

Set the value of idPastagem

public setIdPastagem(mixed $idPastagem) : self
Parameters
$idPastagem : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setIndiceSegCap()

Set the value of indiceSegCap

public setIndiceSegCap(mixed $indiceSegCap) : self
Parameters
$indiceSegCap : mixed
Return values
self

setLat()

Set the value of lat

public setLat(mixed $lat) : self
Parameters
$lat : mixed
Return values
self

setLng()

Set the value of lng

public setLng(mixed $lng) : self
Parameters
$lng : mixed
Return values
self

setLotacaoUAAcumulada()

Set the value of lotacaoUAAcumulada

public setLotacaoUAAcumulada(mixed $lotacaoUAAcumulada) : self
Parameters
$lotacaoUAAcumulada : mixed
Return values
self

setNomePastagem()

Set the value of nomePastagem

public setNomePastagem(mixed $nomePastagem) : self
Parameters
$nomePastagem : mixed
Return values
self

setObsPastagem()

Set the value of obsPastagem

public setObsPastagem(mixed $obsPastagem) : self
Parameters
$obsPastagem : mixed
Return values
self

setOrdem()

Set the value of ordem

public setOrdem(mixed $ordem) : self
Parameters
$ordem : mixed
Return values
self

setPastoDescarte()

Set the value of pastoDescarte

public setPastoDescarte(mixed $pastoDescarte) : self
Parameters
$pastoDescarte : mixed
Return values
self

setQdeAnimal()

Set the value of qdeAnimal

public setQdeAnimal(mixed $qdeAnimal) : self
Parameters
$qdeAnimal : mixed
Return values
self

setQtidadePe()

Set the value of qtidadePe

public setQtidadePe(mixed $qtidadePe) : self
Parameters
$qtidadePe : mixed
Return values
self

setStatus()

Set the value of status

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

setTags()

Set the value of tags

public setTags(mixed $tags) : self
Parameters
$tags : mixed
Return values
self

setType()

Set the value of type

public setType(mixed $type) : self
Parameters
$type : mixed
Return values
self

setUnanimalAlq()

Set the value of unanimalAlq

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