Documentation

TABFPCARGEntity extends Entity
in package

Table of Contents

Constants

auditlog  = []
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
const_values  = []
database  = \config\Config::DB_INTSYS
db_table  = 'TABFPCARG'
pk_field  = 'CODIG_CARG'
sanitize  = []
security  = []
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
tracking  = true
validations  = []

Properties

$ACUMU_CARG  : mixed
$ATIVI_CARG  : mixed
$CODIG_CARG  : mixed
$DESCR_CARG  : mixed
$DTLEI_CARG  : mixed
$ESPEC_CARG  : mixed
$EXCLU_CARG  : mixed
$NOCBO_CARG  : mixed
$NOLEI_CARG  : mixed
$S1040_CARG  : mixed
$SALAR_CARG  : mixed
$SALRA_CARG  : mixed
$STLEI_CARG  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getACUMU_CARG()  : mixed
Get the value of ACUMU_CARG
getATIVI_CARG()  : mixed
Get the value of ATIVI_CARG
getAuditlog()  : mixed
getCODIG_CARG()  : mixed
Get the value of CODIG_CARG
getConst()  : mixed
getConstObj()  : mixed
getDatabase()  : mixed
getDBDriver()  : mixed
getDBTable()  : mixed
getDESCR_CARG()  : mixed
Get the value of DESCR_CARG
getDTLEI_CARG()  : mixed
Get the value of DTLEI_CARG
getESPEC_CARG()  : mixed
Get the value of ESPEC_CARG
getEXCLU_CARG()  : mixed
Get the value of EXCLU_CARG
getNOCBO_CARG()  : mixed
Get the value of NOCBO_CARG
getNOLEI_CARG()  : mixed
Get the value of NOLEI_CARG
getS1040_CARG()  : mixed
Get the value of S1040_CARG
getSALAR_CARG()  : mixed
Get the value of SALAR_CARG
getSALRA_CARG()  : mixed
Get the value of SALRA_CARG
getSTLEI_CARG()  : mixed
Get the value of STLEI_CARG
getTable()  : mixed
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
setACUMU_CARG()  : self
Set the value of ACUMU_CARG
setATIVI_CARG()  : self
Set the value of ATIVI_CARG
setCODIG_CARG()  : self
Set the value of CODIG_CARG
setDESCR_CARG()  : self
Set the value of DESCR_CARG
setDTLEI_CARG()  : self
Set the value of DTLEI_CARG
setESPEC_CARG()  : self
Set the value of ESPEC_CARG
setEXCLU_CARG()  : self
Set the value of EXCLU_CARG
setNOCBO_CARG()  : self
Set the value of NOCBO_CARG
setNOLEI_CARG()  : self
Set the value of NOLEI_CARG
setS1040_CARG()  : self
Set the value of S1040_CARG
setSALAR_CARG()  : self
Set the value of SALAR_CARG
setSALRA_CARG()  : self
Set the value of SALRA_CARG
setSTLEI_CARG()  : self
Set the value of STLEI_CARG
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 = []

const_values

public mixed const_values = []

security

Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>

public mixed security = []

tracking

public mixed tracking = true

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

getACUMU_CARG()

Get the value of ACUMU_CARG

public getACUMU_CARG() : mixed

getATIVI_CARG()

Get the value of ATIVI_CARG

public getATIVI_CARG() : mixed

getAuditlog()

public getAuditlog([string|null $key = null ]) : mixed
Parameters
$key : string|null = null

getCODIG_CARG()

Get the value of CODIG_CARG

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

getDatabase()

public getDatabase() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getDESCR_CARG()

Get the value of DESCR_CARG

public getDESCR_CARG() : mixed

getDTLEI_CARG()

Get the value of DTLEI_CARG

public getDTLEI_CARG() : mixed

getESPEC_CARG()

Get the value of ESPEC_CARG

public getESPEC_CARG() : mixed

getEXCLU_CARG()

Get the value of EXCLU_CARG

public getEXCLU_CARG() : mixed

getNOCBO_CARG()

Get the value of NOCBO_CARG

public getNOCBO_CARG() : mixed

getNOLEI_CARG()

Get the value of NOLEI_CARG

public getNOLEI_CARG() : mixed

getS1040_CARG()

Get the value of S1040_CARG

public getS1040_CARG() : mixed

getSALAR_CARG()

Get the value of SALAR_CARG

public getSALAR_CARG() : mixed

getSALRA_CARG()

Get the value of SALRA_CARG

public getSALRA_CARG() : mixed

getSTLEI_CARG()

Get the value of STLEI_CARG

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

setACUMU_CARG()

Set the value of ACUMU_CARG

public setACUMU_CARG(mixed $ACUMU_CARG) : self
Parameters
$ACUMU_CARG : mixed
Return values
self

setATIVI_CARG()

Set the value of ATIVI_CARG

public setATIVI_CARG(mixed $ATIVI_CARG) : self
Parameters
$ATIVI_CARG : mixed
Return values
self

setCODIG_CARG()

Set the value of CODIG_CARG

public setCODIG_CARG(mixed $CODIG_CARG) : self
Parameters
$CODIG_CARG : mixed
Return values
self

setDESCR_CARG()

Set the value of DESCR_CARG

public setDESCR_CARG(mixed $DESCR_CARG) : self
Parameters
$DESCR_CARG : mixed
Return values
self

setDTLEI_CARG()

Set the value of DTLEI_CARG

public setDTLEI_CARG(mixed $DTLEI_CARG) : self
Parameters
$DTLEI_CARG : mixed
Return values
self

setESPEC_CARG()

Set the value of ESPEC_CARG

public setESPEC_CARG(mixed $ESPEC_CARG) : self
Parameters
$ESPEC_CARG : mixed
Return values
self

setEXCLU_CARG()

Set the value of EXCLU_CARG

public setEXCLU_CARG(mixed $EXCLU_CARG) : self
Parameters
$EXCLU_CARG : mixed
Return values
self

setNOCBO_CARG()

Set the value of NOCBO_CARG

public setNOCBO_CARG(mixed $NOCBO_CARG) : self
Parameters
$NOCBO_CARG : mixed
Return values
self

setNOLEI_CARG()

Set the value of NOLEI_CARG

public setNOLEI_CARG(mixed $NOLEI_CARG) : self
Parameters
$NOLEI_CARG : mixed
Return values
self

setS1040_CARG()

Set the value of S1040_CARG

public setS1040_CARG(mixed $S1040_CARG) : self
Parameters
$S1040_CARG : mixed
Return values
self

setSALAR_CARG()

Set the value of SALAR_CARG

public setSALAR_CARG(mixed $SALAR_CARG) : self
Parameters
$SALAR_CARG : mixed
Return values
self

setSALRA_CARG()

Set the value of SALRA_CARG

public setSALRA_CARG(mixed $SALRA_CARG) : self
Parameters
$SALRA_CARG : mixed
Return values
self

setSTLEI_CARG()

Set the value of STLEI_CARG

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