Documentation

ChuvasEntity 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_fazendas_chuvas'
pk_field  = 'idChuva'
sanitize  = []
Estrutura = ['key' => 'rule']
security  = ['select' => 'core\EntitySecurity::securitySelect', 'delete' => 'core\EntitySecurity::securityDelete', 'update' => 'core\EntitySecurity::securityUpdate', 'insert' => 'core\EntitySecurity::securityInsert']
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
tracking  = true
validations  = ["dataChuva" => ["required" => "Campo Data Chuva é requerido."], "qtidadeChuva" => ["required" => "O campo Quantidade Chuva é requerido."], "idChuvaLocal" => ["required" => "O campo Pluviômetro é requerido"]]
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$AnoAgricola  : mixed
$dataChuva  : mixed
$DataHora  : mixed
$dataUltimaChuva  : mixed
$diassemchuva  : mixed
$granizo  : mixed
$hashApi  : mixed
$idChuva  : mixed
$idChuvaLocal  : mixed
$idFazenda  : mixed
$idUsuario  : mixed
$obs  : mixed
$qtidadeChuva  : mixed
$tempMax  : mixed
$tempMed  : mixed
$tempMin  : mixed
$tipoPluviometro  : mixed
$umidade  : mixed
$vento  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAnoAgricola()  : mixed
Get the value of AnoAgricola
getAuditlog()  : mixed
getConst()  : mixed
getConstObj()  : mixed
getDatabase()  : mixed
getDataChuva()  : mixed
Get the value of dataChuva
getDataHora()  : mixed
Get the value of DataHora
getDataUltimaChuva()  : mixed
Get the value of dataUltimaChuva
getDBDriver()  : mixed
getDBTable()  : mixed
getDiassemchuva()  : mixed
Get the value of diassemchuva
getGranizo()  : mixed
Get the value of granizo
getHashApi()  : mixed
Get the value of hashApi
getIdChuva()  : mixed
Get the value of idChuva
getIdChuvaLocal()  : mixed
Get the value of idChuvaLocal
getIdFazenda()  : mixed
Get the value of idFazenda
getIdUsuario()  : mixed
Get the value of idUsuario
getObs()  : mixed
Get the value of obs
getQtidadeChuva()  : mixed
Get the value of qtidadeChuva
getTable()  : mixed
getTempMax()  : mixed
Get the value of tempMax
getTempMed()  : mixed
Get the value of tempMed
getTempMin()  : mixed
Get the value of tempMin
getTipoPluviometro()  : mixed
Get the value of tipoPluviometro
getUmidade()  : mixed
Get the value of umidade
getVento()  : mixed
Get the value of vento
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
setDataChuva()  : self
Set the value of dataChuva
setDataHora()  : self
Set the value of DataHora
setDataUltimaChuva()  : self
Set the value of dataUltimaChuva
setDiassemchuva()  : self
Set the value of diassemchuva
setGranizo()  : self
Set the value of granizo
setHashApi()  : self
Set the value of hashApi
setIdChuva()  : self
Set the value of idChuva
setIdChuvaLocal()  : self
Set the value of idChuvaLocal
setIdFazenda()  : self
Set the value of idFazenda
setIdUsuario()  : self
Set the value of idUsuario
setObs()  : self
Set the value of obs
setQtidadeChuva()  : self
Set the value of qtidadeChuva
setTempMax()  : self
Set the value of tempMax
setTempMed()  : self
Set the value of tempMed
setTempMin()  : self
Set the value of tempMin
setTipoPluviometro()  : self
Set the value of tipoPluviometro
setUmidade()  : self
Set the value of umidade
setVento()  : self
Set the value of vento
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

sanitize

Estrutura = ['key' => 'rule']

public mixed sanitize = []

security

Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>

public mixed security = ['select' => 'core\EntitySecurity::securitySelect', 'delete' => 'core\EntitySecurity::securityDelete', 'update' => 'core\EntitySecurity::securityUpdate', 'insert' => 'core\EntitySecurity::securityInsert']

validations

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

public mixed validations = ["dataChuva" => ["required" => "Campo Data Chuva é requerido."], "qtidadeChuva" => ["required" => "O campo Quantidade Chuva é requerido."], "idChuvaLocal" => ["required" => "O campo Pluviômetro é 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 = []

getAnoAgricola()

Get the value of AnoAgricola

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

getDataChuva()

Get the value of dataChuva

public getDataChuva() : mixed

getDataHora()

Get the value of DataHora

public getDataHora() : mixed

getDataUltimaChuva()

Get the value of dataUltimaChuva

public getDataUltimaChuva() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getDiassemchuva()

Get the value of diassemchuva

public getDiassemchuva() : mixed

getGranizo()

Get the value of granizo

public getGranizo() : mixed

getHashApi()

Get the value of hashApi

public getHashApi() : mixed

getIdChuva()

Get the value of idChuva

public getIdChuva() : mixed

getIdChuvaLocal()

Get the value of idChuvaLocal

public getIdChuvaLocal() : mixed

getIdFazenda()

Get the value of idFazenda

public getIdFazenda() : mixed

getIdUsuario()

Get the value of idUsuario

public getIdUsuario() : mixed

getQtidadeChuva()

Get the value of qtidadeChuva

public getQtidadeChuva() : mixed

getTable()

public getTable() : mixed

getTempMax()

Get the value of tempMax

public getTempMax() : mixed

getTempMed()

Get the value of tempMed

public getTempMed() : mixed

getTempMin()

Get the value of tempMin

public getTempMin() : mixed

getTipoPluviometro()

Get the value of tipoPluviometro

public getTipoPluviometro() : mixed

getUmidade()

Get the value of umidade

public getUmidade() : mixed

getVento()

Get the value of vento

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

setDataChuva()

Set the value of dataChuva

public setDataChuva(mixed $dataChuva) : self
Parameters
$dataChuva : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setDataUltimaChuva()

Set the value of dataUltimaChuva

public setDataUltimaChuva(mixed $dataUltimaChuva) : self
Parameters
$dataUltimaChuva : mixed
Return values
self

setDiassemchuva()

Set the value of diassemchuva

public setDiassemchuva(mixed $diassemchuva) : self
Parameters
$diassemchuva : mixed
Return values
self

setGranizo()

Set the value of granizo

public setGranizo(mixed $granizo) : self
Parameters
$granizo : mixed
Return values
self

setHashApi()

Set the value of hashApi

public setHashApi(mixed $hashApi) : self
Parameters
$hashApi : mixed
Return values
self

setIdChuva()

Set the value of idChuva

public setIdChuva(mixed $idChuva) : self
Parameters
$idChuva : mixed
Return values
self

setIdChuvaLocal()

Set the value of idChuvaLocal

public setIdChuvaLocal(mixed $idChuvaLocal) : self
Parameters
$idChuvaLocal : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

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

setIdUsuario()

Set the value of idUsuario

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

setObs()

Set the value of obs

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

setQtidadeChuva()

Set the value of qtidadeChuva

public setQtidadeChuva(mixed $qtidadeChuva) : self
Parameters
$qtidadeChuva : mixed
Return values
self

setTempMax()

Set the value of tempMax

public setTempMax(mixed $tempMax) : self
Parameters
$tempMax : mixed
Return values
self

setTempMed()

Set the value of tempMed

public setTempMed(mixed $tempMed) : self
Parameters
$tempMed : mixed
Return values
self

setTempMin()

Set the value of tempMin

public setTempMin(mixed $tempMin) : self
Parameters
$tempMin : mixed
Return values
self

setTipoPluviometro()

Set the value of tipoPluviometro

public setTipoPluviometro(mixed $tipoPluviometro) : self
Parameters
$tipoPluviometro : mixed
Return values
self

setUmidade()

Set the value of umidade

public setUmidade(mixed $umidade) : self
Parameters
$umidade : mixed
Return values
self

setVento()

Set the value of vento

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