CadastroJustificativaItemEntity
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 = 'finan_justificativa_item'
- pk_field = 'idJustificativaItem'
- 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 = ["idEntidade" => ['required' => 'O campo Responsável é obrigatório.'], "idUnidadeNegocio" => ['required' => 'O campo Unidade de Negócio é obrigatório.'], "idPlanoConta" => ['required' => 'O campo Plano de Contas é obrigatório.']]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $acao : mixed
- $anoAgricola : mixed
- $data : mixed
- $DataHora : mixed
- $idFazenda : mixed
- $idJustificativa : mixed
- $idJustificativaItem : mixed
- $idNegocio : mixed
- $idPlanoConta : mixed
- $idUnidadeNegocio : mixed
- $idUsuario : mixed
- $Justificativa : mixed
- $valorAVencer : mixed
- $valorOrcado : mixed
- $valorPago : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAcao() : mixed
- Get the value of acao
- getAnoAgricola() : mixed
- Get the value of anoAgricola
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdJustificativa() : mixed
- Get the value of idJustificativa
- getIdJustificativaItem() : mixed
- Get the value of idJustificativaItem
- getIdNegocio() : mixed
- Get the value of idNegocio
- getIdPlanoConta() : mixed
- Get the value of idPlanoConta
- getIdUnidadeNegocio() : mixed
- Get the value of idUnidadeNegocio
- getIdUsuario() : mixed
- Get the value of idUsuario
- getJustificativa() : mixed
- Get the value of Justificativa
- getTable() : mixed
- getValorAVencer() : mixed
- Get the value of valorAVencer
- getValorOrcado() : mixed
- Get the value of valorOrcado
- getValorPago() : mixed
- Get the value of valorPago
- 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
- setAcao() : self
- Set the value of acao
- setAnoAgricola() : self
- Set the value of anoAgricola
- setData() : self
- Set the value of data
- setDataHora() : self
- Set the value of DataHora
- setIdFazenda() : self
- Set the value of idFazenda
- setIdJustificativa() : self
- Set the value of idJustificativa
- setIdJustificativaItem() : self
- Set the value of idJustificativaItem
- setIdNegocio() : self
- Set the value of idNegocio
- setIdPlanoConta() : self
- Set the value of idPlanoConta
- setIdUnidadeNegocio() : self
- Set the value of idUnidadeNegocio
- setIdUsuario() : self
- Set the value of idUsuario
- setJustificativa() : self
- Set the value of Justificativa
- setValorAVencer() : self
- Set the value of valorAVencer
- setValorOrcado() : self
- Set the value of valorOrcado
- setValorPago() : self
- Set the value of valorPago
- 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
= 'finan_justificativa_item'
pk_field
public
mixed
pk_field
= 'idJustificativaItem'
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
Estrutura = ['key' => ['keyRule' => 'Rule message']]
public
mixed
validations
= ["idEntidade" => ['required' => 'O campo Responsável é obrigatório.'], "idUnidadeNegocio" => ['required' => 'O campo Unidade de Negócio é obrigatório.'], "idPlanoConta" => ['required' => 'O campo Plano de Contas é obrigatório.']]
Properties
$acao
private
mixed
$acao
$anoAgricola
private
mixed
$anoAgricola
$data
private
mixed
$data
$DataHora
private
mixed
$DataHora
$idFazenda
private
mixed
$idFazenda
$idJustificativa
private
mixed
$idJustificativa
$idJustificativaItem
private
mixed
$idJustificativaItem
$idNegocio
private
mixed
$idNegocio
$idPlanoConta
private
mixed
$idPlanoConta
$idUnidadeNegocio
private
mixed
$idUnidadeNegocio
$idUsuario
private
mixed
$idUsuario
$Justificativa
private
mixed
$Justificativa
$valorAVencer
private
mixed
$valorAVencer
$valorOrcado
private
mixed
$valorOrcado
$valorPago
private
mixed
$valorPago
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 = []
getAcao()
Get the value of acao
public
getAcao() : 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
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdJustificativa()
Get the value of idJustificativa
public
getIdJustificativa() : mixed
getIdJustificativaItem()
Get the value of idJustificativaItem
public
getIdJustificativaItem() : mixed
getIdNegocio()
Get the value of idNegocio
public
getIdNegocio() : mixed
getIdPlanoConta()
Get the value of idPlanoConta
public
getIdPlanoConta() : mixed
getIdUnidadeNegocio()
Get the value of idUnidadeNegocio
public
getIdUnidadeNegocio() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario(mixed $idUsuario) : mixed
Parameters
- $idUsuario : mixed
getJustificativa()
Get the value of Justificativa
public
getJustificativa() : mixed
getTable()
public
getTable() : mixed
getValorAVencer()
Get the value of valorAVencer
public
getValorAVencer() : mixed
getValorOrcado()
Get the value of valorOrcado
public
getValorOrcado() : mixed
getValorPago()
Get the value of valorPago
public
getValorPago() : 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
setAcao()
Set the value of acao
public
setAcao(mixed $acao) : self
Parameters
- $acao : mixed
Return values
selfsetAnoAgricola()
Set the value of anoAgricola
public
setAnoAgricola(mixed $anoAgricola) : self
Parameters
- $anoAgricola : mixed
Return values
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdJustificativa()
Set the value of idJustificativa
public
setIdJustificativa(mixed $idJustificativa) : self
Parameters
- $idJustificativa : mixed
Return values
selfsetIdJustificativaItem()
Set the value of idJustificativaItem
public
setIdJustificativaItem(mixed $idJustificativaItem) : self
Parameters
- $idJustificativaItem : mixed
Return values
selfsetIdNegocio()
Set the value of idNegocio
public
setIdNegocio(mixed $idNegocio) : self
Parameters
- $idNegocio : mixed
Return values
selfsetIdPlanoConta()
Set the value of idPlanoConta
public
setIdPlanoConta(mixed $idPlanoConta) : self
Parameters
- $idPlanoConta : mixed
Return values
selfsetIdUnidadeNegocio()
Set the value of idUnidadeNegocio
public
setIdUnidadeNegocio(mixed $idUnidadeNegocio) : self
Parameters
- $idUnidadeNegocio : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetJustificativa()
Set the value of Justificativa
public
setJustificativa(mixed $Justificativa) : self
Parameters
- $Justificativa : mixed
Return values
selfsetValorAVencer()
Set the value of valorAVencer
public
setValorAVencer(mixed $valorAVencer) : self
Parameters
- $valorAVencer : mixed
Return values
selfsetValorOrcado()
Set the value of valorOrcado
public
setValorOrcado(mixed $valorOrcado) : self
Parameters
- $valorOrcado : mixed
Return values
selfsetValorPago()
Set the value of valorPago
public
setValorPago(mixed $valorPago) : self
Parameters
- $valorPago : 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 = '*'