User
in package
uses
TraitDataWrite, TraitData
Read onlyYes
FinalYes
Table of Contents
Properties
- $env : array<string|int, mixed>
- $isMobile : int
- $isUser : bool
- $myPUID : string
- $nUserID : int
- $userCnt : UserCnt
- $userData : array<string|int, mixed>
- $data : Data
Methods
- __construct() : mixed
- ajaxTimeLogOn() : void
- getData() : array<string|int, mixed>
- Holt die aktuellen Member-Daten anhand UID oder PUID
- getDataInstance() : Data
- getDataWriteInstance() : DataWrite
- getIdByPUID() : int
- gets the id with the public_uid
- getLogId() : int
- Gets User ID of a logged record
- getPuidByID() : string
- gets the public_uid by id
- getRecordIDs() : array<string|int, mixed>
- returns array of record_id from table_name: records of user default: comma separated list (old style)
- getSubSql() : string
- getUserOrga() : array<string|int, mixed>
- isMod() : int
- returns 1 if the user can edit the party
- updateSessionData() : void
- writeLogIDs() : void
- Stores in a separate table the record and table of the user, updates the last online
- writeData() : int
Properties
$env
public
array<string|int, mixed>
$env
$isMobile
public
int
$isMobile
$isUser
public
bool
$isUser
$myPUID
public
string
$myPUID
$nUserID
public
int
$nUserID
$userCnt
public
UserCnt
$userCnt
$userData
public
array<string|int, mixed>
$userData
$data
private
Data
$data
Methods
__construct()
public
__construct() : mixed
ajaxTimeLogOn()
public
ajaxTimeLogOn() : void
getData()
Holt die aktuellen Member-Daten anhand UID oder PUID
public
getData([mixed $strUIDorPUID = '' ][, int $nAbout = 1 ]) : array<string|int, mixed>
Parameters
- $strUIDorPUID : mixed = ''
- $nAbout : int = 1
-
- wenn 1 wird auch about-text gelesen
Return values
array<string|int, mixed>getDataInstance()
public
getDataInstance() : Data
Return values
DatagetDataWriteInstance()
public
getDataWriteInstance() : DataWrite
Return values
DataWritegetIdByPUID()
gets the id with the public_uid
public
getIdByPUID(string $PUID) : int
Parameters
- $PUID : string
Return values
int —ID des users
getLogId()
Gets User ID of a logged record
public
getLogId(string $strTableName, int $nRecordID[, bool $doSQL = false ]) : int
Parameters
- $strTableName : string
- $nRecordID : int
- $doSQL : bool = false
Return values
intgetPuidByID()
gets the public_uid by id
public
getPuidByID(int $id) : string
Parameters
- $id : int
Return values
string —ID des users
getRecordIDs()
returns array of record_id from table_name: records of user default: comma separated list (old style)
public
getRecordIDs(string $strTableName, int $nUserID) : array<string|int, mixed>
Parameters
- $strTableName : string
- $nUserID : int
Return values
array<string|int, mixed>getSubSql()
public
getSubSql(string $strTableName, int $nUserID) : string
Parameters
- $strTableName : string
- $nUserID : int
Return values
stringgetUserOrga()
public
getUserOrga(int $orgaUserId) : array<string|int, mixed>
Parameters
- $orgaUserId : int
Return values
array<string|int, mixed>isMod()
returns 1 if the user can edit the party
public
isMod([int|null $nSubmitterID = 0 ]) : int
Parameters
- $nSubmitterID : int|null = 0
Return values
intupdateSessionData()
public
updateSessionData(array<string|int, mixed> $saUser) : void
Parameters
- $saUser : array<string|int, mixed>
writeLogIDs()
Stores in a separate table the record and table of the user, updates the last online
public
writeLogIDs(string $strTableName, int $nRecordID) : void
Parameters
- $strTableName : string
-
- Name der Tabelle
- $nRecordID : int
-
- ID des neuen Datensatzes in der Tabelle
Tags
writeData()
private
writeData(string $table, array<string|int, mixed> $data[, int $id = 0 ]) : int
Parameters
- $table : string
- $data : array<string|int, mixed>
- $id : int = 0