PessoaFuncionarioEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['object_rel' => 'idEntidade']
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'pessoa_funcionario'
- pk_field = 'idFuncionario'
- sanitize = ['centroCustoINTSYS' => 'onlyNumber']
- Estrutura = ['key' => 'rule']
- security = ['update' => 'src\models\PessoaFuncionarioSecurity::securityUpdate']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ['dataAdmissao' => ['required' => 'O campo Data Admissão é obrigatório.'], 'cpfCnpjEntidade' => ['cpfCnpj' => 'CPF/CNPJ invalido.']]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $centroCustoINTSYS : mixed
- $cidadeNascimento : mixed
- $cpfCnpjEntidade : mixed
- $custoDiaria : mixed
- $custoHora : mixed
- $dataAdmissao : mixed
- $dataDemissao : mixed
- $dataEmissaoCTPS : mixed
- $dataEmissaoRg : mixed
- $dataNascimento : mixed
- $estadoCivil : mixed
- $estadoCTPS : mixed
- $estadoNascimento : mixed
- $idDepartamento : mixed
- $idEntidade : mixed
- $idEntidadeCEI : mixed
- $idEntidadeSupervisor : mixed
- $idFazenda : mixed
- $idFuncionario : mixed
- $matriculaEsocial : mixed
- $nomeMae : mixed
- $numeroCNH : mixed
- $numeroCTPS : mixed
- $numeroRg : mixed
- $OBS : mixed
- $padraoSalario : mixed
- $salarioLiquido : mixed
- $salarioRegistrado : mixed
- $salarioRegistradoUltimoPago : mixed
- $sexo : mixed
- $variacao : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCentroCustoINTSYS() : mixed
- Get the value of centroCustoINTSYS
- getCidadeNascimento() : mixed
- Get the value of cidadeNascimento
- getConst() : mixed
- getConstObj() : mixed
- getCpfCnpjEntidade() : mixed
- Get the value of cpfCnpjEntidade
- getCustoDiaria() : mixed
- Get the value of custoDiaria
- getCustoHora() : mixed
- Get the value of custoHora
- getDataAdmissao() : mixed
- Get the value of dataAdmissao
- getDatabase() : mixed
- getDataDemissao() : mixed
- Get the value of dataDemissao
- getDataEmissaoCTPS() : mixed
- Get the value of dataEmissaoCTPS
- getDataEmissaoRg() : mixed
- Get the value of dataEmissaoRg
- getDataNascimento() : mixed
- Get the value of dataNascimento
- getDBDriver() : mixed
- getDBTable() : mixed
- getEstadoCivil() : mixed
- Get the value of estadoCivil
- getEstadoCTPS() : mixed
- Get the value of estadoCTPS
- getEstadoNascimento() : mixed
- Get the value of estadoNascimento
- getIdDepartamento() : mixed
- Get the value of idDepartamento
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdEntidadeCEI() : mixed
- Get the value of idEntidadeCEI
- getIdEntidadeSupervisor() : mixed
- Get the value of idEntidadeSupervisor
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdFuncionario() : mixed
- Get the value of idFuncionario
- getMatriculaEsocial() : mixed
- Get the value of matriculaEsocial
- getNomeMae() : mixed
- Get the value of nomeMae
- getNumeroCNH() : mixed
- Get the value of numeroCNH
- getNumeroCTPS() : mixed
- Get the value of numeroCTPS
- getNumeroRg() : mixed
- Get the value of numeroRg
- getOBS() : mixed
- Get the value of OBS
- getPadraoSalario() : mixed
- Get the value of padraoSalario
- getSalarioLiquido() : mixed
- Get the value of salarioLiquido
- getSalarioRegistrado() : mixed
- Get the value of salarioRegistrado
- getSalarioRegistradoUltimoPago() : mixed
- Get the value of salarioRegistradoUltimoPago
- getSexo() : mixed
- Get the value of sexo
- getTable() : mixed
- getVariacao() : mixed
- Get the value of variacao
- 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
- setCentroCustoINTSYS() : self
- Set the value of centroCustoINTSYS
- setCidadeNascimento() : self
- Set the value of cidadeNascimento
- setCpfCnpjEntidade() : self
- Set the value of cpfCnpjEntidade
- setCustoDiaria() : self
- Set the value of custoDiaria
- setCustoHora() : self
- Set the value of custoHora
- setDataAdmissao() : self
- Set the value of dataAdmissao
- setDataDemissao() : self
- Set the value of dataDemissao
- setDataEmissaoCTPS() : self
- Set the value of dataEmissaoCTPS
- setDataEmissaoRg() : self
- Set the value of dataEmissaoRg
- setDataNascimento() : self
- Set the value of dataNascimento
- setEstadoCivil() : self
- Set the value of estadoCivil
- setEstadoCTPS() : self
- Set the value of estadoCTPS
- setEstadoNascimento() : self
- Set the value of estadoNascimento
- setIdDepartamento() : self
- Set the value of idDepartamento
- setIdEntidade() : self
- Set the value of idEntidade
- setIdEntidadeCEI() : self
- Set the value of idEntidadeCEI
- setIdEntidadeSupervisor() : self
- Set the value of idEntidadeSupervisor
- setIdFazenda() : self
- Set the value of idFazenda
- setIdFuncionario() : self
- Set the value of idFuncionario
- setMatriculaEsocial() : self
- Set the value of matriculaEsocial
- setNomeMae() : self
- Set the value of nomeMae
- setNumeroCNH() : self
- Set the value of numeroCNH
- setNumeroCTPS() : self
- Set the value of numeroCTPS
- setNumeroRg() : self
- Set the value of numeroRg
- setOBS() : self
- Set the value of OBS
- setPadraoSalario() : self
- Set the value of padraoSalario
- setSalarioLiquido() : self
- Set the value of salarioLiquido
- setSalarioRegistrado() : self
- Set the value of salarioRegistrado
- setSalarioRegistradoUltimoPago() : self
- Set the value of salarioRegistradoUltimoPago
- setSexo() : self
- Set the value of sexo
- setVariacao() : self
- Set the value of variacao
- 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
= ['object_rel' => 'idEntidade']
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'pessoa_funcionario'
pk_field
public
mixed
pk_field
= 'idFuncionario'
sanitize
Estrutura = ['key' => 'rule']
public
mixed
sanitize
= ['centroCustoINTSYS' => 'onlyNumber']
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['update' => 'src\models\PessoaFuncionarioSecurity::securityUpdate']
tracking
public
mixed
tracking
= true
validations
Estrutura = ['key' => ['keyRule' => 'Rule message']]
public
mixed
validations
= ['dataAdmissao' => ['required' => 'O campo Data Admissão é obrigatório.'], 'cpfCnpjEntidade' => ['cpfCnpj' => 'CPF/CNPJ invalido.']]
Properties
$centroCustoINTSYS
private
mixed
$centroCustoINTSYS
$cidadeNascimento
private
mixed
$cidadeNascimento
$cpfCnpjEntidade
private
mixed
$cpfCnpjEntidade
$custoDiaria
private
mixed
$custoDiaria
$custoHora
private
mixed
$custoHora
$dataAdmissao
private
mixed
$dataAdmissao
$dataDemissao
private
mixed
$dataDemissao
$dataEmissaoCTPS
private
mixed
$dataEmissaoCTPS
$dataEmissaoRg
private
mixed
$dataEmissaoRg
$dataNascimento
private
mixed
$dataNascimento
$estadoCivil
private
mixed
$estadoCivil
$estadoCTPS
private
mixed
$estadoCTPS
$estadoNascimento
private
mixed
$estadoNascimento
$idDepartamento
private
mixed
$idDepartamento
$idEntidade
private
mixed
$idEntidade
$idEntidadeCEI
private
mixed
$idEntidadeCEI
$idEntidadeSupervisor
private
mixed
$idEntidadeSupervisor
$idFazenda
private
mixed
$idFazenda
$idFuncionario
private
mixed
$idFuncionario
$matriculaEsocial
private
mixed
$matriculaEsocial
$nomeMae
private
mixed
$nomeMae
$numeroCNH
private
mixed
$numeroCNH
$numeroCTPS
private
mixed
$numeroCTPS
$numeroRg
private
mixed
$numeroRg
$OBS
private
mixed
$OBS
$padraoSalario
private
mixed
$padraoSalario
$salarioLiquido
private
mixed
$salarioLiquido
$salarioRegistrado
private
mixed
$salarioRegistrado
$salarioRegistradoUltimoPago
private
mixed
$salarioRegistradoUltimoPago
$sexo
private
mixed
$sexo
$variacao
private
mixed
$variacao
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
getCentroCustoINTSYS()
Get the value of centroCustoINTSYS
public
getCentroCustoINTSYS() : mixed
getCidadeNascimento()
Get the value of cidadeNascimento
public
getCidadeNascimento() : 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
getCpfCnpjEntidade()
Get the value of cpfCnpjEntidade
public
getCpfCnpjEntidade() : mixed
getCustoDiaria()
Get the value of custoDiaria
public
getCustoDiaria() : mixed
getCustoHora()
Get the value of custoHora
public
getCustoHora() : mixed
getDataAdmissao()
Get the value of dataAdmissao
public
getDataAdmissao() : mixed
getDatabase()
public
getDatabase() : mixed
getDataDemissao()
Get the value of dataDemissao
public
getDataDemissao() : mixed
getDataEmissaoCTPS()
Get the value of dataEmissaoCTPS
public
getDataEmissaoCTPS() : mixed
getDataEmissaoRg()
Get the value of dataEmissaoRg
public
getDataEmissaoRg() : mixed
getDataNascimento()
Get the value of dataNascimento
public
getDataNascimento() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getEstadoCivil()
Get the value of estadoCivil
public
getEstadoCivil() : mixed
getEstadoCTPS()
Get the value of estadoCTPS
public
getEstadoCTPS() : mixed
getEstadoNascimento()
Get the value of estadoNascimento
public
getEstadoNascimento() : mixed
getIdDepartamento()
Get the value of idDepartamento
public
getIdDepartamento() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntidadeCEI()
Get the value of idEntidadeCEI
public
getIdEntidadeCEI() : mixed
getIdEntidadeSupervisor()
Get the value of idEntidadeSupervisor
public
getIdEntidadeSupervisor() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdFuncionario()
Get the value of idFuncionario
public
getIdFuncionario() : mixed
getMatriculaEsocial()
Get the value of matriculaEsocial
public
getMatriculaEsocial() : mixed
getNomeMae()
Get the value of nomeMae
public
getNomeMae() : mixed
getNumeroCNH()
Get the value of numeroCNH
public
getNumeroCNH() : mixed
getNumeroCTPS()
Get the value of numeroCTPS
public
getNumeroCTPS() : mixed
getNumeroRg()
Get the value of numeroRg
public
getNumeroRg() : mixed
getOBS()
Get the value of OBS
public
getOBS() : mixed
getPadraoSalario()
Get the value of padraoSalario
public
getPadraoSalario() : mixed
getSalarioLiquido()
Get the value of salarioLiquido
public
getSalarioLiquido() : mixed
getSalarioRegistrado()
Get the value of salarioRegistrado
public
getSalarioRegistrado() : mixed
getSalarioRegistradoUltimoPago()
Get the value of salarioRegistradoUltimoPago
public
getSalarioRegistradoUltimoPago() : mixed
getSexo()
Get the value of sexo
public
getSexo() : mixed
getTable()
public
getTable() : mixed
getVariacao()
Get the value of variacao
public
getVariacao() : 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
setCentroCustoINTSYS()
Set the value of centroCustoINTSYS
public
setCentroCustoINTSYS(mixed $centroCustoINTSYS) : self
Parameters
- $centroCustoINTSYS : mixed
Return values
selfsetCidadeNascimento()
Set the value of cidadeNascimento
public
setCidadeNascimento(mixed $cidadeNascimento) : self
Parameters
- $cidadeNascimento : mixed
Return values
selfsetCpfCnpjEntidade()
Set the value of cpfCnpjEntidade
public
setCpfCnpjEntidade(mixed $cpfCnpjEntidade) : self
Parameters
- $cpfCnpjEntidade : mixed
Return values
selfsetCustoDiaria()
Set the value of custoDiaria
public
setCustoDiaria(mixed $custoDiaria) : self
Parameters
- $custoDiaria : mixed
Return values
selfsetCustoHora()
Set the value of custoHora
public
setCustoHora(mixed $custoHora) : self
Parameters
- $custoHora : mixed
Return values
selfsetDataAdmissao()
Set the value of dataAdmissao
public
setDataAdmissao(mixed $dataAdmissao) : self
Parameters
- $dataAdmissao : mixed
Return values
selfsetDataDemissao()
Set the value of dataDemissao
public
setDataDemissao(mixed $dataDemissao) : self
Parameters
- $dataDemissao : mixed
Return values
selfsetDataEmissaoCTPS()
Set the value of dataEmissaoCTPS
public
setDataEmissaoCTPS(mixed $dataEmissaoCTPS) : self
Parameters
- $dataEmissaoCTPS : mixed
Return values
selfsetDataEmissaoRg()
Set the value of dataEmissaoRg
public
setDataEmissaoRg(mixed $dataEmissaoRg) : self
Parameters
- $dataEmissaoRg : mixed
Return values
selfsetDataNascimento()
Set the value of dataNascimento
public
setDataNascimento(mixed $dataNascimento) : self
Parameters
- $dataNascimento : mixed
Return values
selfsetEstadoCivil()
Set the value of estadoCivil
public
setEstadoCivil(mixed $estadoCivil) : self
Parameters
- $estadoCivil : mixed
Return values
selfsetEstadoCTPS()
Set the value of estadoCTPS
public
setEstadoCTPS(mixed $estadoCTPS) : self
Parameters
- $estadoCTPS : mixed
Return values
selfsetEstadoNascimento()
Set the value of estadoNascimento
public
setEstadoNascimento(mixed $estadoNascimento) : self
Parameters
- $estadoNascimento : mixed
Return values
selfsetIdDepartamento()
Set the value of idDepartamento
public
setIdDepartamento(mixed $idDepartamento) : self
Parameters
- $idDepartamento : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEntidadeCEI()
Set the value of idEntidadeCEI
public
setIdEntidadeCEI(mixed $idEntidadeCEI) : self
Parameters
- $idEntidadeCEI : mixed
Return values
selfsetIdEntidadeSupervisor()
Set the value of idEntidadeSupervisor
public
setIdEntidadeSupervisor(mixed $idEntidadeSupervisor) : self
Parameters
- $idEntidadeSupervisor : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdFuncionario()
Set the value of idFuncionario
public
setIdFuncionario(mixed $idFuncionario) : self
Parameters
- $idFuncionario : mixed
Return values
selfsetMatriculaEsocial()
Set the value of matriculaEsocial
public
setMatriculaEsocial(mixed $matriculaEsocial) : self
Parameters
- $matriculaEsocial : mixed
Return values
selfsetNomeMae()
Set the value of nomeMae
public
setNomeMae(mixed $nomeMae) : self
Parameters
- $nomeMae : mixed
Return values
selfsetNumeroCNH()
Set the value of numeroCNH
public
setNumeroCNH(mixed $numeroCNH) : self
Parameters
- $numeroCNH : mixed
Return values
selfsetNumeroCTPS()
Set the value of numeroCTPS
public
setNumeroCTPS(mixed $numeroCTPS) : self
Parameters
- $numeroCTPS : mixed
Return values
selfsetNumeroRg()
Set the value of numeroRg
public
setNumeroRg(mixed $numeroRg) : self
Parameters
- $numeroRg : mixed
Return values
selfsetOBS()
Set the value of OBS
public
setOBS(mixed $OBS) : self
Parameters
- $OBS : mixed
Return values
selfsetPadraoSalario()
Set the value of padraoSalario
public
setPadraoSalario(mixed $padraoSalario) : self
Parameters
- $padraoSalario : mixed
Return values
selfsetSalarioLiquido()
Set the value of salarioLiquido
public
setSalarioLiquido(mixed $salarioLiquido) : self
Parameters
- $salarioLiquido : mixed
Return values
selfsetSalarioRegistrado()
Set the value of salarioRegistrado
public
setSalarioRegistrado(mixed $salarioRegistrado) : self
Parameters
- $salarioRegistrado : mixed
Return values
selfsetSalarioRegistradoUltimoPago()
Set the value of salarioRegistradoUltimoPago
public
setSalarioRegistradoUltimoPago(mixed $salarioRegistradoUltimoPago) : self
Parameters
- $salarioRegistradoUltimoPago : mixed
Return values
selfsetSexo()
Set the value of sexo
public
setSexo(mixed $sexo) : self
Parameters
- $sexo : mixed
Return values
selfsetVariacao()
Set the value of variacao
public
setVariacao(mixed $variacao) : self
Parameters
- $variacao : 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 = '*'