ContaPagarRequisicaoEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = []
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'finan_contaspagar_requisicao'
- pk_field = 'idRequisicao'
- sanitize = []
- 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 = ["data" => ["required" => "O campo Data é obrigatório.", "date" => "O campo Data não tem data válida."], "idEntidadeSolicitante" => ["required" => "O campo Solicitante é obrigatório."], "idEntidadeResponsavel" => ["required" => "O campo Responsável é obrigatório."], "titulo" => ["required" => "O campo Título / Motivo é obrigatório."], "prioridade" => ["required" => "O campo Prioridade da Requisição é obrigatório."], "descricao" => ["required" => "O campo Detalhes é obrigatório."]]
Properties
- $anoSafra : mixed
- $arquivoRequisicao : mixed
- $data : mixed
- $DataHoraAltera : mixed
- $DataHoraAprova : mixed
- $DataHoraCadastro : mixed
- $dataMaximaRecebimento : mixed
- $descricao : mixed
- $idContasPagar : mixed
- $idDepartamento : mixed
- $idEntidadeResponsavel : mixed
- $idEntidadeSolicitante : mixed
- $idPlanoConta : mixed
- $idRequisicao : mixed
- $idServicoCompra : mixed
- $idUsuarioAltera : mixed
- $idUsuarioAprova : mixed
- $idUsuarioCadastro : mixed
- $ipAprova : mixed
- $justificativa : mixed
- $latAprova : mixed
- $lngAprova : mixed
- $prioridade : mixed
- $statusAprova : mixed
- $statusRequisicao : mixed
- $titulo : mixed
- $totalAnexo : mixed
- $valorAproximado : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAnoSafra() : mixed
- Get the value of anoSafra
- getArquivoRequisicao() : mixed
- Get the value of arquivoRequisicao
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataHoraAltera() : mixed
- Get the value of DataHoraAltera
- getDataHoraAprova() : mixed
- Get the value of DataHoraAprova
- getDataHoraCadastro() : mixed
- Get the value of DataHoraCadastro
- getDataMaximaRecebimento() : mixed
- Get the value of dataMaximaRecebimento
- getDBDriver() : mixed
- getDBTable() : mixed
- getDescricao() : mixed
- Get the value of descricao
- getIdContasPagar() : mixed
- Get the value of idContasPagar
- getIdDepartamento() : mixed
- Get the value of idDepartamento
- getIdEntidadeResponsavel() : mixed
- Get the value of idEntidadeResponsavel
- getIdEntidadeSolicitante() : mixed
- Get the value of idEntidadeSolicitante
- getIdPlanoConta() : mixed
- getIdRequisicao() : mixed
- Get the value of idRequisicao
- getIdServicoCompra() : mixed
- Get the value of idServicoCompra
- getIdUsuarioAltera() : mixed
- Get the value of idUsuarioAltera
- getIdUsuarioAprova() : mixed
- Get the value of idUsuarioAprova
- getIdUsuarioCadastro() : mixed
- Get the value of idUsuarioCadastro
- getIpAprova() : mixed
- Get the value of ipAprova
- getJustificativa() : mixed
- Get the value of justificativa
- getLatAprova() : mixed
- Get the value of latAprova
- getLngAprova() : mixed
- Get the value of lngAprova
- getPrioridade() : mixed
- Get the value of prioridade
- getStatusAprova() : mixed
- Get the value of statusAprova
- getStatusRequisicao() : mixed
- Get the value of statusRequisicao
- getTable() : mixed
- getTitulo() : mixed
- Get the value of titulo
- getTotalAnexo() : mixed
- Get the value of totalAnexo
- getValorAproximado() : mixed
- Get the value of valorAproximado
- 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
- setAnoSafra() : self
- Set the value of anoSafra
- setArquivoRequisicao() : self
- Set the value of arquivoRequisicao
- setData() : self
- Set the value of data
- setDataHoraAltera() : self
- Set the value of DataHoraAltera
- setDataHoraAprova() : self
- Set the value of DataHoraAprova
- setDataHoraCadastro() : self
- Set the value of DataHoraCadastro
- setDataMaximaRecebimento() : self
- Set the value of dataMaximaRecebimento
- setDescricao() : self
- Set the value of descricao
- setIdContasPagar() : self
- Set the value of idContasPagar
- setIdDepartamento() : self
- Set the value of idDepartamento
- setIdEntidadeResponsavel() : self
- Set the value of idEntidadeResponsavel
- setIdEntidadeSolicitante() : self
- Set the value of idEntidadeSolicitante
- setIdPlanoConta() : mixed
- setIdRequisicao() : self
- Set the value of idRequisicao
- setIdServicoCompra() : self
- Set the value of idServicoCompra
- setIdUsuarioAltera() : self
- Set the value of idUsuarioAltera
- setIdUsuarioAprova() : self
- Set the value of idUsuarioAprova
- setIdUsuarioCadastro() : self
- Set the value of idUsuarioCadastro
- setIpAprova() : self
- Set the value of ipAprova
- setJustificativa() : self
- Set the value of justificativa
- setLatAprova() : self
- Set the value of latAprova
- setLngAprova() : self
- Set the value of lngAprova
- setPrioridade() : self
- Set the value of prioridade
- setStatusAprova() : self
- Set the value of statusAprova
- setStatusRequisicao() : self
- Set the value of statusRequisicao
- setTitulo() : self
- Set the value of titulo
- setTotalAnexo() : self
- Set the value of totalAnexo
- setValorAproximado() : self
- Set the value of valorAproximado
- 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
= []
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'finan_contaspagar_requisicao'
pk_field
public
mixed
pk_field
= 'idRequisicao'
sanitize
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
= ["data" => ["required" => "O campo Data é obrigatório.", "date" => "O campo Data não tem data válida."], "idEntidadeSolicitante" => ["required" => "O campo Solicitante é obrigatório."], "idEntidadeResponsavel" => ["required" => "O campo Responsável é obrigatório."], "titulo" => ["required" => "O campo Título / Motivo é obrigatório."], "prioridade" => ["required" => "O campo Prioridade da Requisição é obrigatório."], "descricao" => ["required" => "O campo Detalhes é obrigatório."]]
Properties
$anoSafra
private
mixed
$anoSafra
$arquivoRequisicao
private
mixed
$arquivoRequisicao
$data
private
mixed
$data
$DataHoraAltera
private
mixed
$DataHoraAltera
$DataHoraAprova
private
mixed
$DataHoraAprova
$DataHoraCadastro
private
mixed
$DataHoraCadastro
$dataMaximaRecebimento
private
mixed
$dataMaximaRecebimento
$descricao
private
mixed
$descricao
$idContasPagar
private
mixed
$idContasPagar
$idDepartamento
private
mixed
$idDepartamento
$idEntidadeResponsavel
private
mixed
$idEntidadeResponsavel
$idEntidadeSolicitante
private
mixed
$idEntidadeSolicitante
$idPlanoConta
private
mixed
$idPlanoConta
$idRequisicao
private
mixed
$idRequisicao
$idServicoCompra
private
mixed
$idServicoCompra
$idUsuarioAltera
private
mixed
$idUsuarioAltera
$idUsuarioAprova
private
mixed
$idUsuarioAprova
$idUsuarioCadastro
private
mixed
$idUsuarioCadastro
$ipAprova
private
mixed
$ipAprova
$justificativa
private
mixed
$justificativa
$latAprova
private
mixed
$latAprova
$lngAprova
private
mixed
$lngAprova
$prioridade
private
mixed
$prioridade
$statusAprova
private
mixed
$statusAprova
$statusRequisicao
private
mixed
$statusRequisicao
$titulo
private
mixed
$titulo
$totalAnexo
private
mixed
$totalAnexo
$valorAproximado
private
mixed
$valorAproximado
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 = []
getAnoSafra()
Get the value of anoSafra
public
getAnoSafra() : mixed
getArquivoRequisicao()
Get the value of arquivoRequisicao
public
getArquivoRequisicao() : 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
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHoraAltera()
Get the value of DataHoraAltera
public
getDataHoraAltera() : mixed
getDataHoraAprova()
Get the value of DataHoraAprova
public
getDataHoraAprova() : mixed
getDataHoraCadastro()
Get the value of DataHoraCadastro
public
getDataHoraCadastro() : mixed
getDataMaximaRecebimento()
Get the value of dataMaximaRecebimento
public
getDataMaximaRecebimento() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDescricao()
Get the value of descricao
public
getDescricao() : mixed
getIdContasPagar()
Get the value of idContasPagar
public
getIdContasPagar() : mixed
getIdDepartamento()
Get the value of idDepartamento
public
getIdDepartamento() : mixed
getIdEntidadeResponsavel()
Get the value of idEntidadeResponsavel
public
getIdEntidadeResponsavel() : mixed
getIdEntidadeSolicitante()
Get the value of idEntidadeSolicitante
public
getIdEntidadeSolicitante() : mixed
getIdPlanoConta()
public
getIdPlanoConta() : mixed
getIdRequisicao()
Get the value of idRequisicao
public
getIdRequisicao() : mixed
getIdServicoCompra()
Get the value of idServicoCompra
public
getIdServicoCompra() : mixed
getIdUsuarioAltera()
Get the value of idUsuarioAltera
public
getIdUsuarioAltera() : mixed
getIdUsuarioAprova()
Get the value of idUsuarioAprova
public
getIdUsuarioAprova() : mixed
getIdUsuarioCadastro()
Get the value of idUsuarioCadastro
public
getIdUsuarioCadastro() : mixed
getIpAprova()
Get the value of ipAprova
public
getIpAprova() : mixed
getJustificativa()
Get the value of justificativa
public
getJustificativa() : mixed
getLatAprova()
Get the value of latAprova
public
getLatAprova() : mixed
getLngAprova()
Get the value of lngAprova
public
getLngAprova() : mixed
getPrioridade()
Get the value of prioridade
public
getPrioridade() : mixed
getStatusAprova()
Get the value of statusAprova
public
getStatusAprova() : mixed
getStatusRequisicao()
Get the value of statusRequisicao
public
getStatusRequisicao() : mixed
getTable()
public
getTable() : mixed
getTitulo()
Get the value of titulo
public
getTitulo() : mixed
getTotalAnexo()
Get the value of totalAnexo
public
getTotalAnexo() : mixed
getValorAproximado()
Get the value of valorAproximado
public
getValorAproximado() : 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
setAnoSafra()
Set the value of anoSafra
public
setAnoSafra(mixed $anoSafra) : self
Parameters
- $anoSafra : mixed
Return values
selfsetArquivoRequisicao()
Set the value of arquivoRequisicao
public
setArquivoRequisicao(mixed $arquivoRequisicao) : self
Parameters
- $arquivoRequisicao : mixed
Return values
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataHoraAltera()
Set the value of DataHoraAltera
public
setDataHoraAltera(mixed $DataHoraAltera) : self
Parameters
- $DataHoraAltera : mixed
Return values
selfsetDataHoraAprova()
Set the value of DataHoraAprova
public
setDataHoraAprova(mixed $DataHoraAprova) : self
Parameters
- $DataHoraAprova : mixed
Return values
selfsetDataHoraCadastro()
Set the value of DataHoraCadastro
public
setDataHoraCadastro(mixed $DataHoraCadastro) : self
Parameters
- $DataHoraCadastro : mixed
Return values
selfsetDataMaximaRecebimento()
Set the value of dataMaximaRecebimento
public
setDataMaximaRecebimento(mixed $dataMaximaRecebimento) : self
Parameters
- $dataMaximaRecebimento : mixed
Return values
selfsetDescricao()
Set the value of descricao
public
setDescricao(mixed $descricao) : self
Parameters
- $descricao : mixed
Return values
selfsetIdContasPagar()
Set the value of idContasPagar
public
setIdContasPagar(mixed $idContasPagar) : self
Parameters
- $idContasPagar : mixed
Return values
selfsetIdDepartamento()
Set the value of idDepartamento
public
setIdDepartamento(mixed $idDepartamento) : self
Parameters
- $idDepartamento : mixed
Return values
selfsetIdEntidadeResponsavel()
Set the value of idEntidadeResponsavel
public
setIdEntidadeResponsavel(mixed $idEntidadeResponsavel) : self
Parameters
- $idEntidadeResponsavel : mixed
Return values
selfsetIdEntidadeSolicitante()
Set the value of idEntidadeSolicitante
public
setIdEntidadeSolicitante(mixed $idEntidadeSolicitante) : self
Parameters
- $idEntidadeSolicitante : mixed
Return values
selfsetIdPlanoConta()
public
setIdPlanoConta(mixed $idPlanoConta) : mixed
Parameters
- $idPlanoConta : mixed
setIdRequisicao()
Set the value of idRequisicao
public
setIdRequisicao(mixed $idRequisicao) : self
Parameters
- $idRequisicao : mixed
Return values
selfsetIdServicoCompra()
Set the value of idServicoCompra
public
setIdServicoCompra(mixed $idServicoCompra) : self
Parameters
- $idServicoCompra : mixed
Return values
selfsetIdUsuarioAltera()
Set the value of idUsuarioAltera
public
setIdUsuarioAltera(mixed $idUsuarioAltera) : self
Parameters
- $idUsuarioAltera : mixed
Return values
selfsetIdUsuarioAprova()
Set the value of idUsuarioAprova
public
setIdUsuarioAprova(mixed $idUsuarioAprova) : self
Parameters
- $idUsuarioAprova : mixed
Return values
selfsetIdUsuarioCadastro()
Set the value of idUsuarioCadastro
public
setIdUsuarioCadastro(mixed $idUsuarioCadastro) : self
Parameters
- $idUsuarioCadastro : mixed
Return values
selfsetIpAprova()
Set the value of ipAprova
public
setIpAprova(mixed $ipAprova) : self
Parameters
- $ipAprova : mixed
Return values
selfsetJustificativa()
Set the value of justificativa
public
setJustificativa(mixed $justificativa) : self
Parameters
- $justificativa : mixed
Return values
selfsetLatAprova()
Set the value of latAprova
public
setLatAprova(mixed $latAprova) : self
Parameters
- $latAprova : mixed
Return values
selfsetLngAprova()
Set the value of lngAprova
public
setLngAprova(mixed $lngAprova) : self
Parameters
- $lngAprova : mixed
Return values
selfsetPrioridade()
Set the value of prioridade
public
setPrioridade(mixed $prioridade) : self
Parameters
- $prioridade : mixed
Return values
selfsetStatusAprova()
Set the value of statusAprova
public
setStatusAprova(mixed $statusAprova) : self
Parameters
- $statusAprova : mixed
Return values
selfsetStatusRequisicao()
Set the value of statusRequisicao
public
setStatusRequisicao(mixed $statusRequisicao) : self
Parameters
- $statusRequisicao : mixed
Return values
selfsetTitulo()
Set the value of titulo
public
setTitulo(mixed $titulo) : self
Parameters
- $titulo : mixed
Return values
selfsetTotalAnexo()
Set the value of totalAnexo
public
setTotalAnexo(mixed $totalAnexo) : self
Parameters
- $totalAnexo : mixed
Return values
selfsetValorAproximado()
Set the value of valorAproximado
public
setValorAproximado(mixed $valorAproximado) : self
Parameters
- $valorAproximado : 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 = '*'