Documentation

PesagensEntity 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_pesagens'
pk_field  = 'idPesagem'
sanitize  = []
security  = ['delete' => 'src\models\PesagensSecurity::securityDelete', 'update' => 'src\models\PesagensSecurity::securityUpdate']
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
tracking  = true
validations  = ['tipoPesagem' => ['required' => 'O campo Tipo Pesagem é requerido.'], 'dataPesagem' => ['required' => 'O Campo Data Pesagem é obrigatório.'], 'natureza' => ['required' => 'O campo Natureza é requerido.'], 'pesoInicial' => ['required' => 'O campo Peso Inicial é requerido.'], 'pesoFinal' => ['required' => 'O campo Peso Final é requerido.'], 'idBalanca' => ['required' => 'O campo Balança de Pesagem é requerido.'], 'idEntidade' => ['required' => 'O campo Transportador(a) é requerido.'], 'idAtivo' => ['required' => 'O campo Ativo é requerido.']]
Conforme orientado p/ realizar chamado SR-2624, não é obrigatório definir Ativo ou Entidade

Properties

$DataHora  : mixed
$DataHoraEdit  : mixed
$dataPesagem  : mixed
$descricao  : mixed
$idAtivo  : mixed
$idBalanca  : mixed
$idEntidade  : mixed
$idPesagem  : mixed
$idUsuario  : mixed
$natureza  : mixed
$pesoFinal  : mixed
$pesoFinalBalanca  : mixed
$pesoInicial  : mixed
$pesoInicialBalanca  : mixed
$placaVeiculo  : mixed
$tipoPesagem  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAuditlog()  : mixed
getConst()  : mixed
getConstObj()  : mixed
getDatabase()  : mixed
getDataHora()  : mixed
Get the value of DataHora
getDataHoraEdit()  : mixed
Get the value of DataHoraEdit
getDataPesagem()  : mixed
Get the value of dataPesagem
getDBDriver()  : mixed
getDBTable()  : mixed
getDescricao()  : mixed
Get the value of descricao
getIdAtivo()  : mixed
Get the value of idAtivo
getIdBalanca()  : mixed
Get the value of idBalanca
getIdEntidade()  : mixed
Get the value of idEntidade
getIdPesagem()  : mixed
Get the value of idPesagem
getIdUsuario()  : mixed
Get the value of idUsuario
getNatureza()  : mixed
Get the value of natureza
getPesoFinal()  : mixed
Get the value of pesoFinal
getPesoFinalBalanca()  : mixed
Get the value of pesoFinalBalanca
getPesoInicial()  : mixed
Get the value of pesoInicial
getPesoInicialBalanca()  : mixed
Get the value of pesoInicialBalanca
getPlacaVeiculo()  : mixed
Get the value of placaVeiculo
getTable()  : mixed
getTipoPesagem()  : mixed
Get the value of tipoPesagem
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
setDataHora()  : self
Set the value of DataHora
setDataHoraEdit()  : self
Set the value of DataHoraEdit
setDataPesagem()  : self
Set the value of dataPesagem
setDescricao()  : self
Set the value of descricao
setIdAtivo()  : self
Set the value of idAtivo
setIdBalanca()  : self
Set the value of idBalanca
setIdEntidade()  : self
Set the value of idEntidade
setIdPesagem()  : self
Set the value of idPesagem
setIdUsuario()  : self
Set the value of idUsuario
setNatureza()  : self
Set the value of natureza
setPesoFinal()  : self
Set the value of pesoFinal
setPesoFinalBalanca()  : self
Set the value of pesoFinalBalanca
setPesoInicial()  : self
Set the value of pesoInicial
setPesoInicialBalanca()  : self
Set the value of pesoInicialBalanca
setPlacaVeiculo()  : self
Set the value of placaVeiculo
setTipoPesagem()  : self
Set the value of tipoPesagem
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 = ['delete' => 'src\models\PesagensSecurity::securityDelete', 'update' => 'src\models\PesagensSecurity::securityUpdate']

validations

Conforme orientado p/ realizar chamado SR-2624, não é obrigatório definir Ativo ou Entidade

public mixed validations = ['tipoPesagem' => ['required' => 'O campo Tipo Pesagem é requerido.'], 'dataPesagem' => ['required' => 'O Campo Data Pesagem é obrigatório.'], 'natureza' => ['required' => 'O campo Natureza é requerido.'], 'pesoInicial' => ['required' => 'O campo Peso Inicial é requerido.'], 'pesoFinal' => ['required' => 'O campo Peso Final é requerido.'], 'idBalanca' => ['required' => 'O campo Balança de Pesagem é requerido.'], 'idEntidade' => ['required' => 'O campo Transportador(a) é requerido.'], 'idAtivo' => ['required' => 'O campo Ativo é 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 = []

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

getDataHora()

Get the value of DataHora

public getDataHora() : mixed

getDataHoraEdit()

Get the value of DataHoraEdit

public getDataHoraEdit() : mixed

getDataPesagem()

Get the value of dataPesagem

public getDataPesagem() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getDescricao()

Get the value of descricao

public getDescricao() : mixed

getIdAtivo()

Get the value of idAtivo

public getIdAtivo() : mixed

getIdBalanca()

Get the value of idBalanca

public getIdBalanca() : mixed

getIdEntidade()

Get the value of idEntidade

public getIdEntidade() : mixed

getIdPesagem()

Get the value of idPesagem

public getIdPesagem() : mixed

getIdUsuario()

Get the value of idUsuario

public getIdUsuario() : mixed

getNatureza()

Get the value of natureza

public getNatureza() : mixed

getPesoFinal()

Get the value of pesoFinal

public getPesoFinal() : mixed

getPesoFinalBalanca()

Get the value of pesoFinalBalanca

public getPesoFinalBalanca() : mixed

getPesoInicial()

Get the value of pesoInicial

public getPesoInicial() : mixed

getPesoInicialBalanca()

Get the value of pesoInicialBalanca

public getPesoInicialBalanca() : mixed

getPlacaVeiculo()

Get the value of placaVeiculo

public getPlacaVeiculo() : mixed

getTable()

public getTable() : mixed

getTipoPesagem()

Get the value of tipoPesagem

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

setDataHora()

Set the value of DataHora

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

setDataHoraEdit()

Set the value of DataHoraEdit

public setDataHoraEdit(mixed $DataHoraEdit) : self
Parameters
$DataHoraEdit : mixed
Return values
self

setDataPesagem()

Set the value of dataPesagem

public setDataPesagem(mixed $dataPesagem) : self
Parameters
$dataPesagem : mixed
Return values
self

setDescricao()

Set the value of descricao

public setDescricao(mixed $descricao) : self
Parameters
$descricao : mixed
Return values
self

setIdAtivo()

Set the value of idAtivo

public setIdAtivo(mixed $idAtivo) : self
Parameters
$idAtivo : mixed
Return values
self

setIdBalanca()

Set the value of idBalanca

public setIdBalanca(mixed $idBalanca) : self
Parameters
$idBalanca : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

public setIdEntidade(mixed $idEntidade) : self
Parameters
$idEntidade : mixed
Return values
self

setIdPesagem()

Set the value of idPesagem

public setIdPesagem(mixed $idPesagem) : self
Parameters
$idPesagem : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setNatureza()

Set the value of natureza

public setNatureza(mixed $natureza) : self
Parameters
$natureza : mixed
Return values
self

setPesoFinal()

Set the value of pesoFinal

public setPesoFinal(mixed $pesoFinal) : self
Parameters
$pesoFinal : mixed
Return values
self

setPesoFinalBalanca()

Set the value of pesoFinalBalanca

public setPesoFinalBalanca(mixed $pesoFinalBalanca) : self
Parameters
$pesoFinalBalanca : mixed
Return values
self

setPesoInicial()

Set the value of pesoInicial

public setPesoInicial(mixed $pesoInicial) : self
Parameters
$pesoInicial : mixed
Return values
self

setPesoInicialBalanca()

Set the value of pesoInicialBalanca

public setPesoInicialBalanca(mixed $pesoInicialBalanca) : self
Parameters
$pesoInicialBalanca : mixed
Return values
self

setPlacaVeiculo()

Set the value of placaVeiculo

public setPlacaVeiculo(mixed $placaVeiculo) : self
Parameters
$placaVeiculo : mixed
Return values
self

setTipoPesagem()

Set the value of tipoPesagem

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