EmpresaEntity
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 = 'empresa'
- pk_field = 'idEmpresa'
- 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 = []
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $bairroEmpresa : mixed
- $cepEmpresa : mixed
- $cnpjEmpresa : mixed
- $complEmpresa : mixed
- $DataHora : mixed
- $editarPainelAtivacao : mixed
- $emailEmpresa : mixed
- $enderecoEmpresa : mixed
- $faxEmpresa : mixed
- $idEmpresa : mixed
- $idOrganizationSGP : mixed
- $idProjectSGP : mixed
- $idUsuario : mixed
- $ieEmpresa : mixed
- $limiteUsuarios : mixed
- $linkemail : mixed
- $logoEmpresa : mixed
- $municipioEmpresa : mixed
- $nomeEmpresa : mixed
- $numeroEmpresa : mixed
- $personalizado : mixed
- $planoAtivado : mixed
- $respEmpresa : mixed
- $smartlook : mixed
- $statushtaccess : mixed
- $telefoneEmpresa : mixed
- $tipoEmpresa : mixed
- $ufEmpresa : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getBairroEmpresa() : mixed
- Get the value of bairroEmpresa
- getCepEmpresa() : mixed
- Get the value of cepEmpresa
- getCnpjEmpresa() : mixed
- Get the value of cnpjEmpresa
- getComplEmpresa() : mixed
- Get the value of complEmpresa
- getConst() : mixed
- getConstObj() : mixed
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getEditarPainelAtivacao() : mixed
- Get the value of editarPainelAtivacao
- getEmailEmpresa() : mixed
- Get the value of emailEmpresa
- getEnderecoEmpresa() : mixed
- Get the value of enderecoEmpresa
- getFaxEmpresa() : mixed
- Get the value of faxEmpresa
- getIdEmpresa() : mixed
- Get the value of idEmpresa
- getIdOrganizationSGP() : mixed
- Get the value of idOrganizationSGP
- getIdProjectSGP() : mixed
- Get the value of idProjectSGP
- getIdUsuario() : mixed
- Get the value of idUsuario
- getIeEmpresa() : mixed
- Get the value of ieEmpresa
- getLimiteUsuarios() : mixed
- Get the value of limiteUsuarios
- getLinkemail() : mixed
- Get the value of linkemail
- getLogoEmpresa() : mixed
- Get the value of logoEmpresa
- getMunicipioEmpresa() : mixed
- Get the value of municipioEmpresa
- getNomeEmpresa() : mixed
- Get the value of nomeEmpresa
- getNumeroEmpresa() : mixed
- Get the value of numeroEmpresa
- getPersonalizado() : mixed
- Get the value of personalizado
- getPlanoAtivado() : mixed
- Get the value of planoAtivado
- getRespEmpresa() : mixed
- Get the value of respEmpresa
- getSmartlook() : mixed
- Get the value of smartlook
- getStatushtaccess() : mixed
- Get the value of statushtaccess
- getTable() : mixed
- getTelefoneEmpresa() : mixed
- Get the value of telefoneEmpresa
- getTipoEmpresa() : mixed
- Get the value of tipoEmpresa
- getUfEmpresa() : mixed
- Get the value of ufEmpresa
- 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
- setBairroEmpresa() : self
- Set the value of bairroEmpresa
- setCepEmpresa() : self
- Set the value of cepEmpresa
- setCnpjEmpresa() : self
- Set the value of cnpjEmpresa
- setComplEmpresa() : self
- Set the value of complEmpresa
- setDataHora() : self
- Set the value of DataHora
- setEditarPainelAtivacao() : self
- Set the value of editarPainelAtivacao
- setEmailEmpresa() : self
- Set the value of emailEmpresa
- setEnderecoEmpresa() : self
- Set the value of enderecoEmpresa
- setFaxEmpresa() : self
- Set the value of faxEmpresa
- setIdEmpresa() : self
- Set the value of idEmpresa
- setIdOrganizationSGP() : self
- Set the value of idOrganizationSGP
- setIdProjectSGP() : self
- Set the value of idProjectSGP
- setIdUsuario() : self
- Set the value of idUsuario
- setIeEmpresa() : self
- Set the value of ieEmpresa
- setLimiteUsuarios() : self
- Set the value of limiteUsuarios
- setLinkemail() : self
- Set the value of linkemail
- setLogoEmpresa() : self
- Set the value of logoEmpresa
- setMunicipioEmpresa() : self
- Set the value of municipioEmpresa
- setNomeEmpresa() : self
- Set the value of nomeEmpresa
- setNumeroEmpresa() : self
- Set the value of numeroEmpresa
- setPersonalizado() : self
- Set the value of personalizado
- setPlanoAtivado() : self
- Set the value of planoAtivado
- setRespEmpresa() : self
- Set the value of respEmpresa
- setSmartlook() : self
- Set the value of smartlook
- setStatushtaccess() : self
- Set the value of statushtaccess
- setTelefoneEmpresa() : self
- Set the value of telefoneEmpresa
- setTipoEmpresa() : self
- Set the value of tipoEmpresa
- setUfEmpresa() : self
- Set the value of ufEmpresa
- 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
= 'empresa'
pk_field
public
mixed
pk_field
= 'idEmpresa'
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
= []
Properties
$bairroEmpresa
private
mixed
$bairroEmpresa
$cepEmpresa
private
mixed
$cepEmpresa
$cnpjEmpresa
private
mixed
$cnpjEmpresa
$complEmpresa
private
mixed
$complEmpresa
$DataHora
private
mixed
$DataHora
$editarPainelAtivacao
private
mixed
$editarPainelAtivacao
$emailEmpresa
private
mixed
$emailEmpresa
$enderecoEmpresa
private
mixed
$enderecoEmpresa
$faxEmpresa
private
mixed
$faxEmpresa
$idEmpresa
private
mixed
$idEmpresa
$idOrganizationSGP
private
mixed
$idOrganizationSGP
$idProjectSGP
private
mixed
$idProjectSGP
$idUsuario
private
mixed
$idUsuario
$ieEmpresa
private
mixed
$ieEmpresa
$limiteUsuarios
private
mixed
$limiteUsuarios
$linkemail
private
mixed
$linkemail
$logoEmpresa
private
mixed
$logoEmpresa
$municipioEmpresa
private
mixed
$municipioEmpresa
$nomeEmpresa
private
mixed
$nomeEmpresa
$numeroEmpresa
private
mixed
$numeroEmpresa
$personalizado
private
mixed
$personalizado
$planoAtivado
private
mixed
$planoAtivado
$respEmpresa
private
mixed
$respEmpresa
$smartlook
private
mixed
$smartlook
$statushtaccess
private
mixed
$statushtaccess
$telefoneEmpresa
private
mixed
$telefoneEmpresa
$tipoEmpresa
private
mixed
$tipoEmpresa
$ufEmpresa
private
mixed
$ufEmpresa
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
getBairroEmpresa()
Get the value of bairroEmpresa
public
getBairroEmpresa() : mixed
getCepEmpresa()
Get the value of cepEmpresa
public
getCepEmpresa() : mixed
getCnpjEmpresa()
Get the value of cnpjEmpresa
public
getCnpjEmpresa() : mixed
getComplEmpresa()
Get the value of complEmpresa
public
getComplEmpresa() : 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
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getEditarPainelAtivacao()
Get the value of editarPainelAtivacao
public
getEditarPainelAtivacao() : mixed
getEmailEmpresa()
Get the value of emailEmpresa
public
getEmailEmpresa() : mixed
getEnderecoEmpresa()
Get the value of enderecoEmpresa
public
getEnderecoEmpresa() : mixed
getFaxEmpresa()
Get the value of faxEmpresa
public
getFaxEmpresa() : mixed
getIdEmpresa()
Get the value of idEmpresa
public
getIdEmpresa() : mixed
getIdOrganizationSGP()
Get the value of idOrganizationSGP
public
getIdOrganizationSGP() : mixed
getIdProjectSGP()
Get the value of idProjectSGP
public
getIdProjectSGP() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getIeEmpresa()
Get the value of ieEmpresa
public
getIeEmpresa() : mixed
getLimiteUsuarios()
Get the value of limiteUsuarios
public
getLimiteUsuarios() : mixed
getLinkemail()
Get the value of linkemail
public
getLinkemail() : mixed
getLogoEmpresa()
Get the value of logoEmpresa
public
getLogoEmpresa() : mixed
getMunicipioEmpresa()
Get the value of municipioEmpresa
public
getMunicipioEmpresa() : mixed
getNomeEmpresa()
Get the value of nomeEmpresa
public
getNomeEmpresa() : mixed
getNumeroEmpresa()
Get the value of numeroEmpresa
public
getNumeroEmpresa() : mixed
getPersonalizado()
Get the value of personalizado
public
getPersonalizado() : mixed
getPlanoAtivado()
Get the value of planoAtivado
public
getPlanoAtivado() : mixed
getRespEmpresa()
Get the value of respEmpresa
public
getRespEmpresa() : mixed
getSmartlook()
Get the value of smartlook
public
getSmartlook() : mixed
getStatushtaccess()
Get the value of statushtaccess
public
getStatushtaccess() : mixed
getTable()
public
getTable() : mixed
getTelefoneEmpresa()
Get the value of telefoneEmpresa
public
getTelefoneEmpresa() : mixed
getTipoEmpresa()
Get the value of tipoEmpresa
public
getTipoEmpresa() : mixed
getUfEmpresa()
Get the value of ufEmpresa
public
getUfEmpresa() : 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
setBairroEmpresa()
Set the value of bairroEmpresa
public
setBairroEmpresa(mixed $bairroEmpresa) : self
Parameters
- $bairroEmpresa : mixed
Return values
selfsetCepEmpresa()
Set the value of cepEmpresa
public
setCepEmpresa(mixed $cepEmpresa) : self
Parameters
- $cepEmpresa : mixed
Return values
selfsetCnpjEmpresa()
Set the value of cnpjEmpresa
public
setCnpjEmpresa(mixed $cnpjEmpresa) : self
Parameters
- $cnpjEmpresa : mixed
Return values
selfsetComplEmpresa()
Set the value of complEmpresa
public
setComplEmpresa(mixed $complEmpresa) : self
Parameters
- $complEmpresa : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetEditarPainelAtivacao()
Set the value of editarPainelAtivacao
public
setEditarPainelAtivacao(mixed $editarPainelAtivacao) : self
Parameters
- $editarPainelAtivacao : mixed
Return values
selfsetEmailEmpresa()
Set the value of emailEmpresa
public
setEmailEmpresa(mixed $emailEmpresa) : self
Parameters
- $emailEmpresa : mixed
Return values
selfsetEnderecoEmpresa()
Set the value of enderecoEmpresa
public
setEnderecoEmpresa(mixed $enderecoEmpresa) : self
Parameters
- $enderecoEmpresa : mixed
Return values
selfsetFaxEmpresa()
Set the value of faxEmpresa
public
setFaxEmpresa(mixed $faxEmpresa) : self
Parameters
- $faxEmpresa : mixed
Return values
selfsetIdEmpresa()
Set the value of idEmpresa
public
setIdEmpresa(mixed $idEmpresa) : self
Parameters
- $idEmpresa : mixed
Return values
selfsetIdOrganizationSGP()
Set the value of idOrganizationSGP
public
setIdOrganizationSGP(mixed $idOrganizationSGP) : self
Parameters
- $idOrganizationSGP : mixed
Return values
selfsetIdProjectSGP()
Set the value of idProjectSGP
public
setIdProjectSGP(mixed $idProjectSGP) : self
Parameters
- $idProjectSGP : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetIeEmpresa()
Set the value of ieEmpresa
public
setIeEmpresa(mixed $ieEmpresa) : self
Parameters
- $ieEmpresa : mixed
Return values
selfsetLimiteUsuarios()
Set the value of limiteUsuarios
public
setLimiteUsuarios(mixed $limiteUsuarios) : self
Parameters
- $limiteUsuarios : mixed
Return values
selfsetLinkemail()
Set the value of linkemail
public
setLinkemail(mixed $linkemail) : self
Parameters
- $linkemail : mixed
Return values
selfsetLogoEmpresa()
Set the value of logoEmpresa
public
setLogoEmpresa(mixed $logoEmpresa) : self
Parameters
- $logoEmpresa : mixed
Return values
selfsetMunicipioEmpresa()
Set the value of municipioEmpresa
public
setMunicipioEmpresa(mixed $municipioEmpresa) : self
Parameters
- $municipioEmpresa : mixed
Return values
selfsetNomeEmpresa()
Set the value of nomeEmpresa
public
setNomeEmpresa(mixed $nomeEmpresa) : self
Parameters
- $nomeEmpresa : mixed
Return values
selfsetNumeroEmpresa()
Set the value of numeroEmpresa
public
setNumeroEmpresa(mixed $numeroEmpresa) : self
Parameters
- $numeroEmpresa : mixed
Return values
selfsetPersonalizado()
Set the value of personalizado
public
setPersonalizado(mixed $personalizado) : self
Parameters
- $personalizado : mixed
Return values
selfsetPlanoAtivado()
Set the value of planoAtivado
public
setPlanoAtivado(mixed $planoAtivado) : self
Parameters
- $planoAtivado : mixed
Return values
selfsetRespEmpresa()
Set the value of respEmpresa
public
setRespEmpresa(mixed $respEmpresa) : self
Parameters
- $respEmpresa : mixed
Return values
selfsetSmartlook()
Set the value of smartlook
public
setSmartlook(mixed $smartlook) : self
Parameters
- $smartlook : mixed
Return values
selfsetStatushtaccess()
Set the value of statushtaccess
public
setStatushtaccess(mixed $statushtaccess) : self
Parameters
- $statushtaccess : mixed
Return values
selfsetTelefoneEmpresa()
Set the value of telefoneEmpresa
public
setTelefoneEmpresa(mixed $telefoneEmpresa) : self
Parameters
- $telefoneEmpresa : mixed
Return values
selfsetTipoEmpresa()
Set the value of tipoEmpresa
public
setTipoEmpresa(mixed $tipoEmpresa) : self
Parameters
- $tipoEmpresa : mixed
Return values
selfsetUfEmpresa()
Set the value of ufEmpresa
public
setUfEmpresa(mixed $ufEmpresa) : self
Parameters
- $ufEmpresa : 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 = '*'