Documentation

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 = []

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

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

getCertificado_digital()

Get the value of certificado_digital

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

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

getEmitenteid()

Get the value of emitenteid

public getEmitenteid() : mixed

getIdEntidade()

Get the value of idEntidade

public getIdEntidade() : mixed

getJsonDetalhes()

Get the value of jsonDetalhes

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

getXBairro()

Get the value of xBairro

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

setCEP()

Set the value of CEP

public setCEP(mixed $CEP) : self
Parameters
$CEP : mixed
Return values
self

setCertificado_digital()

Set the value of certificado_digital

public setCertificado_digital(mixed $certificado_digital) : self
Parameters
$certificado_digital : mixed
Return values
self

setCMun()

Set the value of cMun

public setCMun(mixed $cMun) : self
Parameters
$cMun : mixed
Return values
self

setCNAE()

Set the value of CNAE

public setCNAE(mixed $CNAE) : self
Parameters
$CNAE : mixed
Return values
self

setCNPJ()

Set the value of CNPJ

public setCNPJ(mixed $CNPJ) : self
Parameters
$CNPJ : mixed
Return values
self

setCPais()

Set the value of cPais

public setCPais(mixed $cPais) : self
Parameters
$cPais : mixed
Return values
self

setCRT()

Set the value of CRT

public setCRT(mixed $CRT) : self
Parameters
$CRT : mixed
Return values
self

setCUF()

Set the value of cUF

public setCUF(mixed $cUF) : self
Parameters
$cUF : mixed
Return values
self

setData_hora()

Set the value of data_hora

public setData_hora(mixed $data_hora) : self
Parameters
$data_hora : mixed
Return values
self

setEmail()

Set the value of email

public setEmail(mixed $email) : self
Parameters
$email : mixed
Return values
self

setEmitenteid()

Set the value of emitenteid

public setEmitenteid(mixed $emitenteid) : self
Parameters
$emitenteid : mixed
Return values
self

setFone()

Set the value of fone

public setFone(mixed $fone) : self
Parameters
$fone : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

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

setIE()

Set the value of IE

public setIE(mixed $IE) : self
Parameters
$IE : mixed
Return values
self

setIEST()

Set the value of IEST

public setIEST(mixed $IEST) : self
Parameters
$IEST : mixed
Return values
self

setIM()

Set the value of IM

public setIM(mixed $IM) : self
Parameters
$IM : mixed
Return values
self

setJsonDetalhes()

Set the value of jsonDetalhes

public setJsonDetalhes(mixed $jsonDetalhes) : self
Parameters
$jsonDetalhes : mixed
Return values
self

setNNF()

Set the value of nNF

public setNNF(mixed $nNF) : self
Parameters
$nNF : mixed
Return values
self

setNro()

Set the value of nro

public setNro(mixed $nro) : self
Parameters
$nro : mixed
Return values
self

setRegimetributario()

Set the value of regimetributario

public setRegimetributario(mixed $regimetributario) : self
Parameters
$regimetributario : mixed
Return values
self

setSenha_certificado()

Set the value of senha_certificado

public setSenha_certificado(mixed $senha_certificado) : self
Parameters
$senha_certificado : mixed
Return values
self

setTpAmb()

Set the value of tpAmb

public setTpAmb(mixed $tpAmb) : self
Parameters
$tpAmb : mixed
Return values
self

setUF()

Set the value of UF

public setUF(mixed $UF) : self
Parameters
$UF : mixed
Return values
self

setXBairro()

Set the value of xBairro

public setXBairro(mixed $xBairro) : self
Parameters
$xBairro : mixed
Return values
self

setXCpl()

Set the value of xCpl

public setXCpl(mixed $xCpl) : self
Parameters
$xCpl : mixed
Return values
self

setXFant()

Set the value of xFant

public setXFant(mixed $xFant) : self
Parameters
$xFant : mixed
Return values
self

setXLgr()

Set the value of xLgr

public setXLgr(mixed $xLgr) : self
Parameters
$xLgr : mixed
Return values
self

setXMun()

Set the value of xMun

public setXMun(mixed $xMun) : self
Parameters
$xMun : mixed
Return values
self

setXNome()

Set the value of xNome

public setXNome(mixed $xNome) : self
Parameters
$xNome : mixed
Return values
self

setXPais()

Set the value of xPais

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