Documentation

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

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

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

getIdEntidadeSupervisor()

Get the value of idEntidadeSupervisor

public getIdEntidadeSupervisor() : mixed

getSalarioRegistradoUltimoPago()

Get the value of salarioRegistradoUltimoPago

public getSalarioRegistradoUltimoPago() : mixed

getTable()

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

setCentroCustoINTSYS()

Set the value of centroCustoINTSYS

public setCentroCustoINTSYS(mixed $centroCustoINTSYS) : self
Parameters
$centroCustoINTSYS : mixed
Return values
self

setCidadeNascimento()

Set the value of cidadeNascimento

public setCidadeNascimento(mixed $cidadeNascimento) : self
Parameters
$cidadeNascimento : mixed
Return values
self

setCpfCnpjEntidade()

Set the value of cpfCnpjEntidade

public setCpfCnpjEntidade(mixed $cpfCnpjEntidade) : self
Parameters
$cpfCnpjEntidade : mixed
Return values
self

setCustoDiaria()

Set the value of custoDiaria

public setCustoDiaria(mixed $custoDiaria) : self
Parameters
$custoDiaria : mixed
Return values
self

setCustoHora()

Set the value of custoHora

public setCustoHora(mixed $custoHora) : self
Parameters
$custoHora : mixed
Return values
self

setDataAdmissao()

Set the value of dataAdmissao

public setDataAdmissao(mixed $dataAdmissao) : self
Parameters
$dataAdmissao : mixed
Return values
self

setDataDemissao()

Set the value of dataDemissao

public setDataDemissao(mixed $dataDemissao) : self
Parameters
$dataDemissao : mixed
Return values
self

setDataEmissaoCTPS()

Set the value of dataEmissaoCTPS

public setDataEmissaoCTPS(mixed $dataEmissaoCTPS) : self
Parameters
$dataEmissaoCTPS : mixed
Return values
self

setDataEmissaoRg()

Set the value of dataEmissaoRg

public setDataEmissaoRg(mixed $dataEmissaoRg) : self
Parameters
$dataEmissaoRg : mixed
Return values
self

setDataNascimento()

Set the value of dataNascimento

public setDataNascimento(mixed $dataNascimento) : self
Parameters
$dataNascimento : mixed
Return values
self

setEstadoCivil()

Set the value of estadoCivil

public setEstadoCivil(mixed $estadoCivil) : self
Parameters
$estadoCivil : mixed
Return values
self

setEstadoCTPS()

Set the value of estadoCTPS

public setEstadoCTPS(mixed $estadoCTPS) : self
Parameters
$estadoCTPS : mixed
Return values
self

setEstadoNascimento()

Set the value of estadoNascimento

public setEstadoNascimento(mixed $estadoNascimento) : self
Parameters
$estadoNascimento : mixed
Return values
self

setIdDepartamento()

Set the value of idDepartamento

public setIdDepartamento(mixed $idDepartamento) : self
Parameters
$idDepartamento : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

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

setIdEntidadeCEI()

Set the value of idEntidadeCEI

public setIdEntidadeCEI(mixed $idEntidadeCEI) : self
Parameters
$idEntidadeCEI : mixed
Return values
self

setIdEntidadeSupervisor()

Set the value of idEntidadeSupervisor

public setIdEntidadeSupervisor(mixed $idEntidadeSupervisor) : self
Parameters
$idEntidadeSupervisor : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

public setIdFazenda(mixed $idFazenda) : self
Parameters
$idFazenda : mixed
Return values
self

setIdFuncionario()

Set the value of idFuncionario

public setIdFuncionario(mixed $idFuncionario) : self
Parameters
$idFuncionario : mixed
Return values
self

setMatriculaEsocial()

Set the value of matriculaEsocial

public setMatriculaEsocial(mixed $matriculaEsocial) : self
Parameters
$matriculaEsocial : mixed
Return values
self

setNomeMae()

Set the value of nomeMae

public setNomeMae(mixed $nomeMae) : self
Parameters
$nomeMae : mixed
Return values
self

setNumeroCNH()

Set the value of numeroCNH

public setNumeroCNH(mixed $numeroCNH) : self
Parameters
$numeroCNH : mixed
Return values
self

setNumeroCTPS()

Set the value of numeroCTPS

public setNumeroCTPS(mixed $numeroCTPS) : self
Parameters
$numeroCTPS : mixed
Return values
self

setNumeroRg()

Set the value of numeroRg

public setNumeroRg(mixed $numeroRg) : self
Parameters
$numeroRg : mixed
Return values
self

setOBS()

Set the value of OBS

public setOBS(mixed $OBS) : self
Parameters
$OBS : mixed
Return values
self

setPadraoSalario()

Set the value of padraoSalario

public setPadraoSalario(mixed $padraoSalario) : self
Parameters
$padraoSalario : mixed
Return values
self

setSalarioLiquido()

Set the value of salarioLiquido

public setSalarioLiquido(mixed $salarioLiquido) : self
Parameters
$salarioLiquido : mixed
Return values
self

setSalarioRegistrado()

Set the value of salarioRegistrado

public setSalarioRegistrado(mixed $salarioRegistrado) : self
Parameters
$salarioRegistrado : mixed
Return values
self

setSalarioRegistradoUltimoPago()

Set the value of salarioRegistradoUltimoPago

public setSalarioRegistradoUltimoPago(mixed $salarioRegistradoUltimoPago) : self
Parameters
$salarioRegistradoUltimoPago : mixed
Return values
self

setSexo()

Set the value of sexo

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

setVariacao()

Set the value of variacao

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