Documentation

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

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

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

getSqlConsultaIntegraMult()

Get the value of sqlConsultaIntegraMult

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

setCAClassificacao()

Set the value of CAClassificacao

public setCAClassificacao(mixed $CAClassificacao) : self
Parameters
$CAClassificacao : mixed
Return values
self

setClasseAbate()

Set the value of classeAbate

public setClasseAbate(mixed $classeAbate) : self
Parameters
$classeAbate : mixed
Return values
self

setCodClassificacao()

Set the value of CodClassificacao

public setCodClassificacao(mixed $CodClassificacao) : self
Parameters
$CodClassificacao : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setEClassificacao()

Set the value of EClassificacao

public setEClassificacao(mixed $EClassificacao) : self
Parameters
$EClassificacao : mixed
Return values
self

setEraAgrodefesa()

Set the value of eraAgrodefesa

public setEraAgrodefesa(mixed $eraAgrodefesa) : self
Parameters
$eraAgrodefesa : mixed
Return values
self

setIdCategoriaAnimal()

Set the value of idCategoriaAnimal

public setIdCategoriaAnimal(mixed $idCategoriaAnimal) : self
Parameters
$idCategoriaAnimal : mixed
Return values
self

setIdClassificacao()

Set the value of idClassificacao

public setIdClassificacao(mixed $idClassificacao) : self
Parameters
$idClassificacao : mixed
Return values
self

setIdCotacao()

Set the value of idCotacao

public setIdCotacao(mixed $idCotacao) : self
Parameters
$idCotacao : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setNomeClassificacao()

Set the value of NomeClassificacao

public setNomeClassificacao(mixed $NomeClassificacao) : self
Parameters
$NomeClassificacao : mixed
Return values
self

setOrdem()

Set the value of ordem

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

setPesoArroba()

Set the value of pesoArroba

public setPesoArroba(mixed $pesoArroba) : self
Parameters
$pesoArroba : mixed
Return values
self

setQtidadeAnimal()

Set the value of qtidadeAnimal

public setQtidadeAnimal(mixed $qtidadeAnimal) : self
Parameters
$qtidadeAnimal : mixed
Return values
self

setRegistrado()

Set the value of registrado

public setRegistrado(mixed $registrado) : self
Parameters
$registrado : mixed
Return values
self

setSexo()

Set the value of sexo

public setSexo(mixed $sexo) : self
Parameters
$sexo : mixed
Return values
self

setSexoCategoria()

Set the value of sexoCategoria

public setSexoCategoria(mixed $sexoCategoria) : self
Parameters
$sexoCategoria : mixed
Return values
self

setSqlConsultaIntegraMult()

Set the value of sqlConsultaIntegraMult

public setSqlConsultaIntegraMult(mixed $sqlConsultaIntegraMult) : self
Parameters
$sqlConsultaIntegraMult : mixed
Return values
self

setStatusClassificacao()

Set the value of StatusClassificacao

public setStatusClassificacao(mixed $StatusClassificacao) : self
Parameters
$StatusClassificacao : mixed
Return values
self

setStatusOculto()

Set the value of statusOculto

public setStatusOculto(mixed $statusOculto) : self
Parameters
$statusOculto : mixed
Return values
self

setStatusVenda()

Set the value of statusVenda

public setStatusVenda(mixed $statusVenda) : self
Parameters
$statusVenda : mixed
Return values
self

setUnidAnimalClassificacao()

Set the value of UnidAnimalClassificacao

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