CadPastagemServicoEntity
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 = 'cad_pastagem_servicos'
- pk_field = 'idServico'
- 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 = ['NomeServico' => ['required' => 'O campo Nome Serviço é obrigatório.'], 'utilizaProdutos' => ['required' => 'O campo Utiliza Produtos é obrigatório.'], 'exigeReceita' => ['required' => 'O campo Exige Receita/Ordem de Serviço é obrigatório.']]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $custoHora : mixed
- $DataHora : mixed
- $exigePastagem : mixed
- $exigeReceita : mixed
- $icon_maps : mixed
- $idInterno : mixed
- $idServico : mixed
- $idUsuario : mixed
- $NomeServico : mixed
- $status : mixed
- $UnidadeServico : mixed
- $utilizaProdutos : mixed
- $vinculoTrabalhista : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getCustoHora() : mixed
- Get the value of custoHora
- getDatabase() : mixed
- getDataHora() : mixed
- Get the value of DataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getExigePastagem() : mixed
- Get the value of exigePastagem
- getExigeReceita() : mixed
- Get the value of exigeReceita
- getIcon_maps() : mixed
- Get the value of icon_maps
- getIdInterno() : mixed
- Get the value of idInterno
- getIdServico() : mixed
- Get the value of idServico
- getIdUsuario() : mixed
- Get the value of idUsuario
- getNomeServico() : mixed
- Get the value of NomeServico
- getStatus() : mixed
- Get the value of status
- getTable() : mixed
- getUnidadeServico() : mixed
- Get the value of UnidadeServico
- getUtilizaProdutos() : mixed
- Get the value of utilizaProdutos
- getVinculoTrabalhista() : mixed
- Get the value of vinculoTrabalhista
- 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
- setCustoHora() : self
- Set the value of custoHora
- setDataHora() : self
- Set the value of DataHora
- setExigePastagem() : self
- Set the value of exigePastagem
- setExigeReceita() : self
- Set the value of exigeReceita
- setIcon_maps() : self
- Set the value of icon_maps
- setIdInterno() : self
- Set the value of idInterno
- setIdServico() : self
- Set the value of idServico
- setIdUsuario() : self
- Set the value of idUsuario
- setNomeServico() : self
- Set the value of NomeServico
- setStatus() : self
- Set the value of status
- setUnidadeServico() : self
- Set the value of UnidadeServico
- setUtilizaProdutos() : self
- Set the value of utilizaProdutos
- setVinculoTrabalhista() : self
- Set the value of vinculoTrabalhista
- 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
= 'cad_pastagem_servicos'
pk_field
public
mixed
pk_field
= 'idServico'
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
= ['NomeServico' => ['required' => 'O campo Nome Serviço é obrigatório.'], 'utilizaProdutos' => ['required' => 'O campo Utiliza Produtos é obrigatório.'], 'exigeReceita' => ['required' => 'O campo Exige Receita/Ordem de Serviço é obrigatório.']]
Properties
$custoHora
private
mixed
$custoHora
$DataHora
private
mixed
$DataHora
$exigePastagem
private
mixed
$exigePastagem
$exigeReceita
private
mixed
$exigeReceita
$icon_maps
private
mixed
$icon_maps
$idInterno
private
mixed
$idInterno
$idServico
private
mixed
$idServico
$idUsuario
private
mixed
$idUsuario
$NomeServico
private
mixed
$NomeServico
$status
private
mixed
$status
$UnidadeServico
private
mixed
$UnidadeServico
$utilizaProdutos
private
mixed
$utilizaProdutos
$vinculoTrabalhista
private
mixed
$vinculoTrabalhista
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
getCustoHora()
Get the value of custoHora
public
getCustoHora() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getExigePastagem()
Get the value of exigePastagem
public
getExigePastagem() : mixed
getExigeReceita()
Get the value of exigeReceita
public
getExigeReceita() : mixed
getIcon_maps()
Get the value of icon_maps
public
getIcon_maps() : mixed
getIdInterno()
Get the value of idInterno
public
getIdInterno() : mixed
getIdServico()
Get the value of idServico
public
getIdServico() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getNomeServico()
Get the value of NomeServico
public
getNomeServico() : mixed
getStatus()
Get the value of status
public
getStatus() : mixed
getTable()
public
getTable() : mixed
getUnidadeServico()
Get the value of UnidadeServico
public
getUnidadeServico() : mixed
getUtilizaProdutos()
Get the value of utilizaProdutos
public
getUtilizaProdutos() : mixed
getVinculoTrabalhista()
Get the value of vinculoTrabalhista
public
getVinculoTrabalhista() : 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
setCustoHora()
Set the value of custoHora
public
setCustoHora(mixed $custoHora) : self
Parameters
- $custoHora : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetExigePastagem()
Set the value of exigePastagem
public
setExigePastagem(mixed $exigePastagem) : self
Parameters
- $exigePastagem : mixed
Return values
selfsetExigeReceita()
Set the value of exigeReceita
public
setExigeReceita(mixed $exigeReceita) : self
Parameters
- $exigeReceita : mixed
Return values
selfsetIcon_maps()
Set the value of icon_maps
public
setIcon_maps(mixed $icon_maps) : self
Parameters
- $icon_maps : mixed
Return values
selfsetIdInterno()
Set the value of idInterno
public
setIdInterno(mixed $idInterno) : self
Parameters
- $idInterno : mixed
Return values
selfsetIdServico()
Set the value of idServico
public
setIdServico(mixed $idServico) : self
Parameters
- $idServico : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetNomeServico()
Set the value of NomeServico
public
setNomeServico(mixed $NomeServico) : self
Parameters
- $NomeServico : mixed
Return values
selfsetStatus()
Set the value of status
public
setStatus(mixed $status) : self
Parameters
- $status : mixed
Return values
selfsetUnidadeServico()
Set the value of UnidadeServico
public
setUnidadeServico(mixed $UnidadeServico) : self
Parameters
- $UnidadeServico : mixed
Return values
selfsetUtilizaProdutos()
Set the value of utilizaProdutos
public
setUtilizaProdutos(mixed $utilizaProdutos) : self
Parameters
- $utilizaProdutos : mixed
Return values
selfsetVinculoTrabalhista()
Set the value of vinculoTrabalhista
public
setVinculoTrabalhista(mixed $vinculoTrabalhista) : self
Parameters
- $vinculoTrabalhista : 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 = '*'