Documentation

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

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

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

setCustoHora()

Set the value of custoHora

public setCustoHora(mixed $custoHora) : self
Parameters
$custoHora : mixed
Return values
self

setDataHora()

Set the value of DataHora

public setDataHora(mixed $DataHora) : self
Parameters
$DataHora : mixed
Return values
self

setExigePastagem()

Set the value of exigePastagem

public setExigePastagem(mixed $exigePastagem) : self
Parameters
$exigePastagem : mixed
Return values
self

setExigeReceita()

Set the value of exigeReceita

public setExigeReceita(mixed $exigeReceita) : self
Parameters
$exigeReceita : mixed
Return values
self

setIcon_maps()

Set the value of icon_maps

public setIcon_maps(mixed $icon_maps) : self
Parameters
$icon_maps : mixed
Return values
self

setIdInterno()

Set the value of idInterno

public setIdInterno(mixed $idInterno) : self
Parameters
$idInterno : mixed
Return values
self

setIdServico()

Set the value of idServico

public setIdServico(mixed $idServico) : self
Parameters
$idServico : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

public setIdUsuario(mixed $idUsuario) : self
Parameters
$idUsuario : mixed
Return values
self

setNomeServico()

Set the value of NomeServico

public setNomeServico(mixed $NomeServico) : self
Parameters
$NomeServico : mixed
Return values
self

setStatus()

Set the value of status

public setStatus(mixed $status) : self
Parameters
$status : mixed
Return values
self

setUnidadeServico()

Set the value of UnidadeServico

public setUnidadeServico(mixed $UnidadeServico) : self
Parameters
$UnidadeServico : mixed
Return values
self

setUtilizaProdutos()

Set the value of utilizaProdutos

public setUtilizaProdutos(mixed $utilizaProdutos) : self
Parameters
$utilizaProdutos : mixed
Return values
self

setVinculoTrabalhista()

Set the value of vinculoTrabalhista

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