AnimalClassificacaoEntity
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 = 'animais_classificacoes'
- pk_field = 'idClassificacao'
- 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 = []
Properties
- $CAClassificacao : mixed
- $classeAbate : mixed
- $CodClassificacao : mixed
- $DataHora : mixed
- $EClassificacao : mixed
- $eraAgrodefesa : mixed
- $idCategoriaAnimal : mixed
- $idClassificacao : mixed
- $idCotacao : mixed
- $idUsuario : mixed
- $NomeClassificacao : mixed
- $ordem : mixed
- $pesoArroba : mixed
- $qtidadeAnimal : mixed
- $registrado : mixed
- $sexo : mixed
- $sexoCategoria : mixed
- $sqlConsultaIntegraMult : mixed
- $StatusClassificacao : mixed
- $statusOculto : mixed
- $statusVenda : mixed
- $UnidAnimalClassificacao : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCAClassificacao() : mixed
- Get the value of CAClassificacao
- getClasseAbate() : mixed
- Get the value of classeAbate
- getCodClassificacao() : mixed
- Get the value of CodClassificacao
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getEClassificacao() : mixed
- Get the value of EClassificacao
- getEraAgrodefesa() : mixed
- Get the value of eraAgrodefesa
- getIdCategoriaAnimal() : mixed
- Get the value of idCategoriaAnimal
- getIdClassificacao() : mixed
- Get the value of idClassificacao
- getIdCotacao() : mixed
- Get the value of idCotacao
- getIdUsuario() : mixed
- Get the value of idUsuario
- getNomeClassificacao() : mixed
- Get the value of NomeClassificacao
- getOrdem() : mixed
- Get the value of ordem
- getPesoArroba() : mixed
- Get the value of pesoArroba
- getQtidadeAnimal() : mixed
- Get the value of qtidadeAnimal
- getRegistrado() : mixed
- Get the value of registrado
- getSexo() : mixed
- Get the value of sexo
- getSexoCategoria() : mixed
- Get the value of sexoCategoria
- getSqlConsultaIntegraMult() : mixed
- Get the value of sqlConsultaIntegraMult
- getStatusClassificacao() : mixed
- Get the value of StatusClassificacao
- getStatusOculto() : mixed
- Get the value of statusOculto
- getStatusVenda() : mixed
- Get the value of statusVenda
- getTable() : mixed
- getUnidAnimalClassificacao() : mixed
- Get the value of UnidAnimalClassificacao
- 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
- setCAClassificacao() : self
- Set the value of CAClassificacao
- setClasseAbate() : self
- Set the value of classeAbate
- setCodClassificacao() : self
- Set the value of CodClassificacao
- setDataHora() : self
- Set the value of DataHora
- setEClassificacao() : self
- Set the value of EClassificacao
- setEraAgrodefesa() : self
- Set the value of eraAgrodefesa
- setIdCategoriaAnimal() : self
- Set the value of idCategoriaAnimal
- setIdClassificacao() : self
- Set the value of idClassificacao
- setIdCotacao() : self
- Set the value of idCotacao
- setIdUsuario() : self
- Set the value of idUsuario
- setNomeClassificacao() : self
- Set the value of NomeClassificacao
- setOrdem() : self
- Set the value of ordem
- setPesoArroba() : self
- Set the value of pesoArroba
- setQtidadeAnimal() : self
- Set the value of qtidadeAnimal
- setRegistrado() : self
- Set the value of registrado
- setSexo() : self
- Set the value of sexo
- setSexoCategoria() : self
- Set the value of sexoCategoria
- setSqlConsultaIntegraMult() : self
- Set the value of sqlConsultaIntegraMult
- setStatusClassificacao() : self
- Set the value of StatusClassificacao
- setStatusOculto() : self
- Set the value of statusOculto
- setStatusVenda() : self
- Set the value of statusVenda
- setUnidAnimalClassificacao() : self
- Set the value of UnidAnimalClassificacao
- 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
= 'animais_classificacoes'
pk_field
public
mixed
pk_field
= 'idClassificacao'
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']
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= []
Properties
$CAClassificacao
private
mixed
$CAClassificacao
$classeAbate
private
mixed
$classeAbate
$CodClassificacao
private
mixed
$CodClassificacao
$DataHora
private
mixed
$DataHora
$EClassificacao
private
mixed
$EClassificacao
$eraAgrodefesa
private
mixed
$eraAgrodefesa
$idCategoriaAnimal
private
mixed
$idCategoriaAnimal
$idClassificacao
private
mixed
$idClassificacao
$idCotacao
private
mixed
$idCotacao
$idUsuario
private
mixed
$idUsuario
$NomeClassificacao
private
mixed
$NomeClassificacao
$ordem
private
mixed
$ordem
$pesoArroba
private
mixed
$pesoArroba
$qtidadeAnimal
private
mixed
$qtidadeAnimal
$registrado
private
mixed
$registrado
$sexo
private
mixed
$sexo
$sexoCategoria
private
mixed
$sexoCategoria
$sqlConsultaIntegraMult
private
mixed
$sqlConsultaIntegraMult
$StatusClassificacao
private
mixed
$StatusClassificacao
$statusOculto
private
mixed
$statusOculto
$statusVenda
private
mixed
$statusVenda
$UnidAnimalClassificacao
private
mixed
$UnidAnimalClassificacao
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
getCAClassificacao()
Get the value of CAClassificacao
public
getCAClassificacao() : mixed
getClasseAbate()
Get the value of classeAbate
public
getClasseAbate() : mixed
getCodClassificacao()
Get the value of CodClassificacao
public
getCodClassificacao() : 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
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getEClassificacao()
Get the value of EClassificacao
public
getEClassificacao() : mixed
getEraAgrodefesa()
Get the value of eraAgrodefesa
public
getEraAgrodefesa() : mixed
getIdCategoriaAnimal()
Get the value of idCategoriaAnimal
public
getIdCategoriaAnimal() : mixed
getIdClassificacao()
Get the value of idClassificacao
public
getIdClassificacao() : mixed
getIdCotacao()
Get the value of idCotacao
public
getIdCotacao() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getNomeClassificacao()
Get the value of NomeClassificacao
public
getNomeClassificacao() : mixed
getOrdem()
Get the value of ordem
public
getOrdem() : mixed
getPesoArroba()
Get the value of pesoArroba
public
getPesoArroba() : mixed
getQtidadeAnimal()
Get the value of qtidadeAnimal
public
getQtidadeAnimal() : mixed
getRegistrado()
Get the value of registrado
public
getRegistrado() : mixed
getSexo()
Get the value of sexo
public
getSexo() : mixed
getSexoCategoria()
Get the value of sexoCategoria
public
getSexoCategoria() : mixed
getSqlConsultaIntegraMult()
Get the value of sqlConsultaIntegraMult
public
getSqlConsultaIntegraMult() : mixed
getStatusClassificacao()
Get the value of StatusClassificacao
public
getStatusClassificacao() : mixed
getStatusOculto()
Get the value of statusOculto
public
getStatusOculto() : mixed
getStatusVenda()
Get the value of statusVenda
public
getStatusVenda() : mixed
getTable()
public
getTable() : mixed
getUnidAnimalClassificacao()
Get the value of UnidAnimalClassificacao
public
getUnidAnimalClassificacao() : 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
setCAClassificacao()
Set the value of CAClassificacao
public
setCAClassificacao(mixed $CAClassificacao) : self
Parameters
- $CAClassificacao : mixed
Return values
selfsetClasseAbate()
Set the value of classeAbate
public
setClasseAbate(mixed $classeAbate) : self
Parameters
- $classeAbate : mixed
Return values
selfsetCodClassificacao()
Set the value of CodClassificacao
public
setCodClassificacao(mixed $CodClassificacao) : self
Parameters
- $CodClassificacao : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetEClassificacao()
Set the value of EClassificacao
public
setEClassificacao(mixed $EClassificacao) : self
Parameters
- $EClassificacao : mixed
Return values
selfsetEraAgrodefesa()
Set the value of eraAgrodefesa
public
setEraAgrodefesa(mixed $eraAgrodefesa) : self
Parameters
- $eraAgrodefesa : mixed
Return values
selfsetIdCategoriaAnimal()
Set the value of idCategoriaAnimal
public
setIdCategoriaAnimal(mixed $idCategoriaAnimal) : self
Parameters
- $idCategoriaAnimal : mixed
Return values
selfsetIdClassificacao()
Set the value of idClassificacao
public
setIdClassificacao(mixed $idClassificacao) : self
Parameters
- $idClassificacao : mixed
Return values
selfsetIdCotacao()
Set the value of idCotacao
public
setIdCotacao(mixed $idCotacao) : self
Parameters
- $idCotacao : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetNomeClassificacao()
Set the value of NomeClassificacao
public
setNomeClassificacao(mixed $NomeClassificacao) : self
Parameters
- $NomeClassificacao : mixed
Return values
selfsetOrdem()
Set the value of ordem
public
setOrdem(mixed $ordem) : self
Parameters
- $ordem : mixed
Return values
selfsetPesoArroba()
Set the value of pesoArroba
public
setPesoArroba(mixed $pesoArroba) : self
Parameters
- $pesoArroba : mixed
Return values
selfsetQtidadeAnimal()
Set the value of qtidadeAnimal
public
setQtidadeAnimal(mixed $qtidadeAnimal) : self
Parameters
- $qtidadeAnimal : mixed
Return values
selfsetRegistrado()
Set the value of registrado
public
setRegistrado(mixed $registrado) : self
Parameters
- $registrado : mixed
Return values
selfsetSexo()
Set the value of sexo
public
setSexo(mixed $sexo) : self
Parameters
- $sexo : mixed
Return values
selfsetSexoCategoria()
Set the value of sexoCategoria
public
setSexoCategoria(mixed $sexoCategoria) : self
Parameters
- $sexoCategoria : mixed
Return values
selfsetSqlConsultaIntegraMult()
Set the value of sqlConsultaIntegraMult
public
setSqlConsultaIntegraMult(mixed $sqlConsultaIntegraMult) : self
Parameters
- $sqlConsultaIntegraMult : mixed
Return values
selfsetStatusClassificacao()
Set the value of StatusClassificacao
public
setStatusClassificacao(mixed $StatusClassificacao) : self
Parameters
- $StatusClassificacao : mixed
Return values
selfsetStatusOculto()
Set the value of statusOculto
public
setStatusOculto(mixed $statusOculto) : self
Parameters
- $statusOculto : mixed
Return values
selfsetStatusVenda()
Set the value of statusVenda
public
setStatusVenda(mixed $statusVenda) : self
Parameters
- $statusVenda : mixed
Return values
selfsetUnidAnimalClassificacao()
Set the value of UnidAnimalClassificacao
public
setUnidAnimalClassificacao(mixed $UnidAnimalClassificacao) : self
Parameters
- $UnidAnimalClassificacao : 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 = '*'