EmitenteEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['*']]
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_NFE
- db_table = 'emitente'
- pk_field = 'emitenteid'
- 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 = []
Properties
- $CEP : mixed
- $certificado_digital : mixed
- $cMun : mixed
- $CNAE : mixed
- $CNPJ : mixed
- $cPais : mixed
- $CRT : mixed
- $cUF : mixed
- $data_hora : mixed
- $email : mixed
- $emitenteid : mixed
- $fone : mixed
- $idEntidade : mixed
- $IE : mixed
- $IEST : mixed
- $IM : mixed
- $jsonDetalhes : mixed
- $nNF : mixed
- $nro : mixed
- $regimetributario : mixed
- $senha_certificado : mixed
- $tpAmb : mixed
- $UF : mixed
- $xBairro : mixed
- $xCpl : mixed
- $xFant : mixed
- $xLgr : mixed
- $xMun : mixed
- $xNome : mixed
- $xPais : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCEP() : mixed
- Get the value of CEP
- getCertificado_digital() : mixed
- Get the value of certificado_digital
- getCMun() : mixed
- Get the value of cMun
- getCNAE() : mixed
- Get the value of CNAE
- getCNPJ() : mixed
- Get the value of CNPJ
- getConst() : mixed
- getConstObj() : mixed
- getCPais() : mixed
- Get the value of cPais
- getCRT() : mixed
- Get the value of CRT
- getCUF() : mixed
- Get the value of cUF
- getData_hora() : mixed
- Get the value of data_hora
- getDatabase() : mixed
- getDBDriver() : mixed
- getDBTable() : mixed
- getEmail() : mixed
- Get the value of email
- getEmitenteid() : mixed
- Get the value of emitenteid
- getFone() : mixed
- Get the value of fone
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIE() : mixed
- Get the value of IE
- getIEST() : mixed
- Get the value of IEST
- getIM() : mixed
- Get the value of IM
- getJsonDetalhes() : mixed
- Get the value of jsonDetalhes
- getNNF() : mixed
- Get the value of nNF
- getNro() : mixed
- Get the value of nro
- getRegimetributario() : mixed
- Get the value of regimetributario
- getSenha_certificado() : mixed
- Get the value of senha_certificado
- getTable() : mixed
- getTpAmb() : mixed
- Get the value of tpAmb
- getUF() : mixed
- Get the value of UF
- getXBairro() : mixed
- Get the value of xBairro
- getXCpl() : mixed
- Get the value of xCpl
- getXFant() : mixed
- Get the value of xFant
- getXLgr() : mixed
- Get the value of xLgr
- getXMun() : mixed
- Get the value of xMun
- getXNome() : mixed
- Get the value of xNome
- getXPais() : mixed
- Get the value of xPais
- 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
- setCEP() : self
- Set the value of CEP
- setCertificado_digital() : self
- Set the value of certificado_digital
- setCMun() : self
- Set the value of cMun
- setCNAE() : self
- Set the value of CNAE
- setCNPJ() : self
- Set the value of CNPJ
- setCPais() : self
- Set the value of cPais
- setCRT() : self
- Set the value of CRT
- setCUF() : self
- Set the value of cUF
- setData_hora() : self
- Set the value of data_hora
- setEmail() : self
- Set the value of email
- setEmitenteid() : self
- Set the value of emitenteid
- setFone() : self
- Set the value of fone
- setIdEntidade() : self
- Set the value of idEntidade
- setIE() : self
- Set the value of IE
- setIEST() : self
- Set the value of IEST
- setIM() : self
- Set the value of IM
- setJsonDetalhes() : self
- Set the value of jsonDetalhes
- setNNF() : self
- Set the value of nNF
- setNro() : self
- Set the value of nro
- setRegimetributario() : self
- Set the value of regimetributario
- setSenha_certificado() : self
- Set the value of senha_certificado
- setTpAmb() : self
- Set the value of tpAmb
- setUF() : self
- Set the value of UF
- setXBairro() : self
- Set the value of xBairro
- setXCpl() : self
- Set the value of xCpl
- setXFant() : self
- Set the value of xFant
- setXLgr() : self
- Set the value of xLgr
- setXMun() : self
- Set the value of xMun
- setXNome() : self
- Set the value of xNome
- setXPais() : self
- Set the value of xPais
- 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' => ['*']]
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_NFE
db_table
public
mixed
db_table
= 'emitente'
pk_field
public
mixed
pk_field
= 'emitenteid'
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
= []
Properties
$CEP
private
mixed
$CEP
$certificado_digital
private
mixed
$certificado_digital
$cMun
private
mixed
$cMun
$CNAE
private
mixed
$CNAE
$CNPJ
private
mixed
$CNPJ
$cPais
private
mixed
$cPais
$CRT
private
mixed
$CRT
$cUF
private
mixed
$cUF
$data_hora
private
mixed
$data_hora
private
mixed
$email
$emitenteid
private
mixed
$emitenteid
$fone
private
mixed
$fone
$idEntidade
private
mixed
$idEntidade
$IE
private
mixed
$IE
$IEST
private
mixed
$IEST
$IM
private
mixed
$IM
$jsonDetalhes
private
mixed
$jsonDetalhes
$nNF
private
mixed
$nNF
$nro
private
mixed
$nro
$regimetributario
private
mixed
$regimetributario
$senha_certificado
private
mixed
$senha_certificado
$tpAmb
private
mixed
$tpAmb
$UF
private
mixed
$UF
$xBairro
private
mixed
$xBairro
$xCpl
private
mixed
$xCpl
$xFant
private
mixed
$xFant
$xLgr
private
mixed
$xLgr
$xMun
private
mixed
$xMun
$xNome
private
mixed
$xNome
$xPais
private
mixed
$xPais
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
getCEP()
Get the value of CEP
public
getCEP() : mixed
getCertificado_digital()
Get the value of certificado_digital
public
getCertificado_digital() : mixed
getCMun()
Get the value of cMun
public
getCMun() : mixed
getCNAE()
Get the value of CNAE
public
getCNAE() : mixed
getCNPJ()
Get the value of CNPJ
public
getCNPJ() : 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
getCPais()
Get the value of cPais
public
getCPais() : mixed
getCRT()
Get the value of CRT
public
getCRT() : mixed
getCUF()
Get the value of cUF
public
getCUF() : mixed
getData_hora()
Get the value of data_hora
public
getData_hora() : mixed
getDatabase()
public
getDatabase() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getEmail()
Get the value of email
public
getEmail() : mixed
getEmitenteid()
Get the value of emitenteid
public
getEmitenteid() : mixed
getFone()
Get the value of fone
public
getFone() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIE()
Get the value of IE
public
getIE() : mixed
getIEST()
Get the value of IEST
public
getIEST() : mixed
getIM()
Get the value of IM
public
getIM() : mixed
getJsonDetalhes()
Get the value of jsonDetalhes
public
getJsonDetalhes() : mixed
getNNF()
Get the value of nNF
public
getNNF() : mixed
getNro()
Get the value of nro
public
getNro() : mixed
getRegimetributario()
Get the value of regimetributario
public
getRegimetributario() : mixed
getSenha_certificado()
Get the value of senha_certificado
public
getSenha_certificado() : mixed
getTable()
public
getTable() : mixed
getTpAmb()
Get the value of tpAmb
public
getTpAmb() : mixed
getUF()
Get the value of UF
public
getUF() : mixed
getXBairro()
Get the value of xBairro
public
getXBairro() : mixed
getXCpl()
Get the value of xCpl
public
getXCpl() : mixed
getXFant()
Get the value of xFant
public
getXFant() : mixed
getXLgr()
Get the value of xLgr
public
getXLgr() : mixed
getXMun()
Get the value of xMun
public
getXMun() : mixed
getXNome()
Get the value of xNome
public
getXNome() : mixed
getXPais()
Get the value of xPais
public
getXPais() : 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
setCEP()
Set the value of CEP
public
setCEP(mixed $CEP) : self
Parameters
- $CEP : mixed
Return values
selfsetCertificado_digital()
Set the value of certificado_digital
public
setCertificado_digital(mixed $certificado_digital) : self
Parameters
- $certificado_digital : mixed
Return values
selfsetCMun()
Set the value of cMun
public
setCMun(mixed $cMun) : self
Parameters
- $cMun : mixed
Return values
selfsetCNAE()
Set the value of CNAE
public
setCNAE(mixed $CNAE) : self
Parameters
- $CNAE : mixed
Return values
selfsetCNPJ()
Set the value of CNPJ
public
setCNPJ(mixed $CNPJ) : self
Parameters
- $CNPJ : mixed
Return values
selfsetCPais()
Set the value of cPais
public
setCPais(mixed $cPais) : self
Parameters
- $cPais : mixed
Return values
selfsetCRT()
Set the value of CRT
public
setCRT(mixed $CRT) : self
Parameters
- $CRT : mixed
Return values
selfsetCUF()
Set the value of cUF
public
setCUF(mixed $cUF) : self
Parameters
- $cUF : mixed
Return values
selfsetData_hora()
Set the value of data_hora
public
setData_hora(mixed $data_hora) : self
Parameters
- $data_hora : mixed
Return values
selfsetEmail()
Set the value of email
public
setEmail(mixed $email) : self
Parameters
- $email : mixed
Return values
selfsetEmitenteid()
Set the value of emitenteid
public
setEmitenteid(mixed $emitenteid) : self
Parameters
- $emitenteid : mixed
Return values
selfsetFone()
Set the value of fone
public
setFone(mixed $fone) : self
Parameters
- $fone : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIE()
Set the value of IE
public
setIE(mixed $IE) : self
Parameters
- $IE : mixed
Return values
selfsetIEST()
Set the value of IEST
public
setIEST(mixed $IEST) : self
Parameters
- $IEST : mixed
Return values
selfsetIM()
Set the value of IM
public
setIM(mixed $IM) : self
Parameters
- $IM : mixed
Return values
selfsetJsonDetalhes()
Set the value of jsonDetalhes
public
setJsonDetalhes(mixed $jsonDetalhes) : self
Parameters
- $jsonDetalhes : mixed
Return values
selfsetNNF()
Set the value of nNF
public
setNNF(mixed $nNF) : self
Parameters
- $nNF : mixed
Return values
selfsetNro()
Set the value of nro
public
setNro(mixed $nro) : self
Parameters
- $nro : mixed
Return values
selfsetRegimetributario()
Set the value of regimetributario
public
setRegimetributario(mixed $regimetributario) : self
Parameters
- $regimetributario : mixed
Return values
selfsetSenha_certificado()
Set the value of senha_certificado
public
setSenha_certificado(mixed $senha_certificado) : self
Parameters
- $senha_certificado : mixed
Return values
selfsetTpAmb()
Set the value of tpAmb
public
setTpAmb(mixed $tpAmb) : self
Parameters
- $tpAmb : mixed
Return values
selfsetUF()
Set the value of UF
public
setUF(mixed $UF) : self
Parameters
- $UF : mixed
Return values
selfsetXBairro()
Set the value of xBairro
public
setXBairro(mixed $xBairro) : self
Parameters
- $xBairro : mixed
Return values
selfsetXCpl()
Set the value of xCpl
public
setXCpl(mixed $xCpl) : self
Parameters
- $xCpl : mixed
Return values
selfsetXFant()
Set the value of xFant
public
setXFant(mixed $xFant) : self
Parameters
- $xFant : mixed
Return values
selfsetXLgr()
Set the value of xLgr
public
setXLgr(mixed $xLgr) : self
Parameters
- $xLgr : mixed
Return values
selfsetXMun()
Set the value of xMun
public
setXMun(mixed $xMun) : self
Parameters
- $xMun : mixed
Return values
selfsetXNome()
Set the value of xNome
public
setXNome(mixed $xNome) : self
Parameters
- $xNome : mixed
Return values
selfsetXPais()
Set the value of xPais
public
setXPais(mixed $xPais) : self
Parameters
- $xPais : 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 = '*'