Changes
in package
CLASS Changes
logging of changes in tables taxwert and zusatzkosten
Table of Contents
Methods
- getAllRef() : result
- get distinct values of given column and type
- getChange() : mixed
- get all logged changes by type and id_ref or date
- getChangeRef2() : mixed
- getChangesByUser() : mysqli
- get all logged changes by type and id_ref or date
- getDeletion() : mixed
- saveChange() : mixed
- saveDeletion() : mixed
Methods
getAllRef()
get distinct values of given column and type
public
getAllRef(int $type, string $refType) : result
Parameters
- $type : int
-
what kind of change should be selected
- $refType : string
-
possible values are "id_ref", "id_ref_2", "id_ref_3", "user"
Return values
result —array
getChange()
get all logged changes by type and id_ref or date
public
getChange(int $type[, int $id_ref = null ][, date $date = null ]) : mixed
Parameters
- $type : int
-
what kind of change should be selected
- $id_ref : int = null
-
reference to entry in other tables
- $date : date = null
-
all entries from date
getChangeRef2()
public
getChangeRef2(mixed $type, mixed $id_ref_2) : mixed
Parameters
- $type : mixed
- $id_ref_2 : mixed
getChangesByUser()
get all logged changes by type and id_ref or date
public
getChangesByUser(int $type, int $user) : mysqli
Parameters
- $type : int
-
what kind of change should be selected
- $user : int
-
id of user
Return values
mysqli —result
getDeletion()
public
getDeletion(mixed $type[, mixed $id_ref_2 = null ]) : mixed
Parameters
- $type : mixed
- $id_ref_2 : mixed = null
saveChange()
public
saveChange(mixed $type, mixed $id_ref, mixed $user, mixed $log[, mixed $id_ref_2 = null ][, mixed $id_ref_3 = null ][, mixed $kind = null ]) : mixed
Parameters
- $type : mixed
- $id_ref : mixed
- $user : mixed
- $log : mixed
- $id_ref_2 : mixed = null
- $id_ref_3 : mixed = null
- $kind : mixed = null
saveDeletion()
public
saveDeletion(mixed $type, mixed $id_ref, mixed $user[, mixed $log = null ][, mixed $id_ref_2 = null ]) : mixed
Parameters
- $type : mixed
- $id_ref : mixed
- $user : mixed
- $log : mixed = null
- $id_ref_2 : mixed = null