Documentation

NotasFiscaisDanfexmlEmpresaEntity extends Entity
in package

Table of Contents

Constants

auditlog  = ['obfuscate_fields' => ['senhaCertificado']]
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
const_values  = []
database  = \config\Config::DB_DEFAULT
db_table  = 'finan_notas_fiscais_danfexml_empresa'
pk_field  = 'idNotaEmpresa'
sanitize  = ['cnpjMatriz' => 'onlyNumber', 'cnpj' => 'onlyNumber']
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  = ['cnpjMatriz' => ['required' => 'Campo CNPJ é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ inválido.'], 'cnpj' => ['required' => 'Campo CNPJ é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ inválido.'], 'razaoSocial' => ['required' => 'Campo Razão Social é obrigatório.'], 'senhaCertificado' => ['required' => 'Campo Senha é obrigatório'], 'nomeCertificadoPFX' => ['required' => 'Campo Nome Certificado é obrigatório.']]
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$cnpj  : mixed
$cnpjMatriz  : mixed
$cStat  : mixed
$cteqtidadeNSU  : mixed
$cteultimoNSU  : mixed
$dataEnvioEmailAviso  : mixed
$dataHora  : mixed
$dataVectocertificado  : mixed
$dhResp  : mixed
$dhRespCTe  : mixed
$docZip  : mixed
$docZipCTe  : mixed
$docZipExcecao  : mixed
$idCertificado  : mixed
$idNotaEmpresa  : mixed
$nomeCertificadoPFX  : mixed
$qtidadeNSU  : mixed
$razaoSocial  : mixed
$saldoConsulta  : mixed
$senhaCertificado  : mixed
$status  : mixed
$ultimoNSU  : mixed
$ultimoNSUNFSe  : mixed
$xMotivo  : mixed
$xMotivoCTe  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAuditlog()  : mixed
getCnpj()  : mixed
Get the value of cnpj
getCnpjMatriz()  : mixed
Get the value of cnpjMatriz
getConst()  : mixed
getConstObj()  : mixed
getCStat()  : mixed
Get the value of cStat
getCteqtidadeNSU()  : mixed
Get the value of cteqtidadeNSU
getCteultimoNSU()  : mixed
Get the value of cteultimoNSU
getDatabase()  : mixed
getDataEnvioEmailAviso()  : mixed
Get the value of dataEnvioEmailAviso
getDataHora()  : mixed
Get the value of dataHora
getDataVectocertificado()  : mixed
Get the value of dataVectocertificado
getDBDriver()  : mixed
getDBTable()  : mixed
getDhResp()  : mixed
Get the value of dhResp
getDhRespCTe()  : mixed
Get the value of dhRespCTe
getDocZip()  : mixed
Get the value of docZip
getDocZipCTe()  : mixed
Get the value of docZipCTe
getDocZipExcecao()  : mixed
Get the value of docZipExcecao
getIdCertificado()  : mixed
getIdNotaEmpresa()  : mixed
Get the value of idNotaEmpresa
getNomeCertificadoPFX()  : mixed
Get the value of nomeCertificadoPFX
getQtidadeNSU()  : mixed
Get the value of qtidadeNSU
getRazaoSocial()  : mixed
Get the value of razaoSocial
getSaldoConsulta()  : mixed
Get the value of saldoConsulta
getSenhaCertificado()  : mixed
Get the value of senhaCertificado
getStatus()  : mixed
Get the value of status
getTable()  : mixed
getUltimoNSU()  : mixed
Get the value of ultimoNSU
getUltimoNSUNFSe()  : mixed
Get the value of ultimoNSUNFSe
getXMotivo()  : mixed
Get the value of xMotivo
getXMotivoCTe()  : mixed
Get the value of xMotivoCTe
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
setCnpj()  : self
Set the value of cnpj
setCnpjMatriz()  : self
Set the value of cnpjMatriz
setCStat()  : self
Set the value of cStat
setCteqtidadeNSU()  : self
Set the value of cteqtidadeNSU
setCteultimoNSU()  : self
Set the value of cteultimoNSU
setDataEnvioEmailAviso()  : self
Set the value of dataEnvioEmailAviso
setDataHora()  : self
Set the value of dataHora
setDataVectocertificado()  : self
Set the value of dataVectocertificado
setDhResp()  : self
Set the value of dhResp
setDhRespCTe()  : self
Set the value of dhRespCTe
setDocZip()  : self
Set the value of docZip
setDocZipCTe()  : self
Set the value of docZipCTe
setDocZipExcecao()  : self
Set the value of docZipExcecao
setIdCertificado()  : mixed
setIdNotaEmpresa()  : self
Set the value of idNotaEmpresa
setNomeCertificadoPFX()  : self
Set the value of nomeCertificadoPFX
setQtidadeNSU()  : self
Set the value of qtidadeNSU
setRazaoSocial()  : self
Set the value of razaoSocial
setSaldoConsulta()  : self
Set the value of saldoConsulta
setSenhaCertificado()  : self
Set the value of senhaCertificado
setStatus()  : self
Set the value of status
setUltimoNSU()  : self
Set the value of ultimoNSU
setUltimoNSUNFSe()  : self
Set the value of ultimoNSUNFSe
setXMotivo()  : self
Set the value of xMotivo
setXMotivoCTe()  : self
Set the value of xMotivoCTe
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

const_values

public mixed const_values = []

database

public mixed database = \config\Config::DB_DEFAULT

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']

validations

Estrutura = ['key' => ['keyRule' => 'Rule message']]

public mixed validations = ['cnpjMatriz' => ['required' => 'Campo CNPJ é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ inválido.'], 'cnpj' => ['required' => 'Campo CNPJ é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ inválido.'], 'razaoSocial' => ['required' => 'Campo Razão Social é obrigatório.'], 'senhaCertificado' => ['required' => 'Campo Senha é obrigatório'], 'nomeCertificadoPFX' => ['required' => 'Campo Nome Certificado é obrigatório.']]

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

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

setCnpjMatriz()

Set the value of cnpjMatriz

public setCnpjMatriz(mixed $cnpjMatriz) : self
Parameters
$cnpjMatriz : mixed
Return values
self

setCteqtidadeNSU()

Set the value of cteqtidadeNSU

public setCteqtidadeNSU(mixed $cteqtidadeNSU) : self
Parameters
$cteqtidadeNSU : mixed
Return values
self

setCteultimoNSU()

Set the value of cteultimoNSU

public setCteultimoNSU(mixed $cteultimoNSU) : self
Parameters
$cteultimoNSU : mixed
Return values
self

setDataEnvioEmailAviso()

Set the value of dataEnvioEmailAviso

public setDataEnvioEmailAviso(mixed $dataEnvioEmailAviso) : self
Parameters
$dataEnvioEmailAviso : mixed
Return values
self

setDataVectocertificado()

Set the value of dataVectocertificado

public setDataVectocertificado(mixed $dataVectocertificado) : self
Parameters
$dataVectocertificado : mixed
Return values
self

setDocZipExcecao()

Set the value of docZipExcecao

public setDocZipExcecao(mixed $docZipExcecao) : self
Parameters
$docZipExcecao : mixed
Return values
self

setIdNotaEmpresa()

Set the value of idNotaEmpresa

public setIdNotaEmpresa(mixed $idNotaEmpresa) : self
Parameters
$idNotaEmpresa : mixed
Return values
self

setNomeCertificadoPFX()

Set the value of nomeCertificadoPFX

public setNomeCertificadoPFX(mixed $nomeCertificadoPFX) : self
Parameters
$nomeCertificadoPFX : mixed
Return values
self

setQtidadeNSU()

Set the value of qtidadeNSU

public setQtidadeNSU(mixed $qtidadeNSU) : self
Parameters
$qtidadeNSU : mixed
Return values
self

setRazaoSocial()

Set the value of razaoSocial

public setRazaoSocial(mixed $razaoSocial) : self
Parameters
$razaoSocial : mixed
Return values
self

setSaldoConsulta()

Set the value of saldoConsulta

public setSaldoConsulta(mixed $saldoConsulta) : self
Parameters
$saldoConsulta : mixed
Return values
self

setSenhaCertificado()

Set the value of senhaCertificado

public setSenhaCertificado(mixed $senhaCertificado) : self
Parameters
$senhaCertificado : mixed
Return values
self

setUltimoNSUNFSe()

Set the value of ultimoNSUNFSe

public setUltimoNSUNFSe(mixed $ultimoNSUNFSe) : self
Parameters
$ultimoNSUNFSe : mixed
Return values
self

setXMotivoCTe()

Set the value of xMotivoCTe

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