User
in package
uses
TraitDataWrite
Table of Contents
Properties
- $env : array<string|int, mixed>
- $isMobile : int
- $isUser : bool
- $myPUID : string
- $nUserID : int
- $userData : array<string|int, mixed>
- $userName : string
- $dataWrite : DataWrite
Methods
- __construct() : mixed
- ajaxTimeLogOn() : void
- cntRecords() : array<string|int, mixed>|int
- Counts submitted entries by `table_name` and user
- getData() : array<string|int, mixed>
- Holt die aktuellen Member-Daten anhand UID oder PUID
- 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() : string
- returns comma separates list of record_id from table_name
- getSQLCount() : string
- getSubSql() : string
- initParams() : void
- isMod() : int
- returns 1 if the user can edit the party
- writeLogIDs() : void
- Stores in a separate table the record and table of the user, updates the last online
Properties
$env
public
array<string|int, mixed>
$env
$isMobile
public
int
$isMobile
$isUser
public
bool
$isUser
$myPUID
public
string
$myPUID
$nUserID
public
int
$nUserID
$userData
public
array<string|int, mixed>
$userData
$userName
public
string
$userName
$dataWrite
private
DataWrite
$dataWrite
Methods
__construct()
public
__construct() : mixed
ajaxTimeLogOn()
public
ajaxTimeLogOn() : void
cntRecords()
Counts submitted entries by `table_name` and user
public
cntRecords([array<string|int, mixed> $saPUID = [] ][, string $strTableName = '' ]) : array<string|int, mixed>|int
Sets session and handle idle
Parameters
- $saPUID : array<string|int, mixed> = []
-
- array of UserPublic
- $strTableName : string = ''
-
- if tablename is set we get not an array but an integer. tables: ads_base, ads_campaign, dbentry_comment, forum, forum_ads, forum_mods party_lifts, linkbase, logo_contest partybase, party_images, party_invites party_meetingpoint, party_reports, party_voting poll, poll_vote, user_images, www_guestbook, www_modboard
Tags
Return values
array<string|int, mixed>|int —saCount['table_name'] = val
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>getDataWriteInstance()
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 $bSQL = false ]) : int
Parameters
- $strTableName : string
- $nRecordID : int
- $bSQL : 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 comma separates list of record_id from table_name
public
getRecordIDs(string $strTableName, int $nUserID) : string
Parameters
- $strTableName : string
- $nUserID : int
Return values
stringgetSQLCount()
public
getSQLCount(string $strTableName, int $id) : string
Parameters
- $strTableName : string
- $id : int
Return values
stringgetSubSql()
public
getSubSql(string $strTableName, int $nUserID) : string
Parameters
- $strTableName : string
- $nUserID : int
Return values
stringinitParams()
public
initParams() : void
isMod()
returns 1 if the user can edit the party
public
isMod([int|null $nSubmitterID = 0 ]) : int
Parameters
- $nSubmitterID : int|null = 0
Return values
intwriteLogIDs()
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