User
in package
Gets the main data from a user
Table of Contents
- cntByMinutes() : string
- Gibt Anzahl Member innerhalb eines gewissen Zeitraums zurueck
- cntMails() : int
- checke, ob es mehrere accounts mit dieser email gibt
- 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
- getIdByPUID() : int
- Holt die user_id anhand der PUID
- getLogId() : mixed
- Gets User ID of a logged record
- getRecordIDs() : string
- returns comma separates list of record_id from table_name
- getTamPost() : array<string|int, mixed>
- Get the post from tell-a-mod/member
- getUserAsk() : array<string|int, mixed>
- user who asked for pw get by mail
- isDoubleName() : string
- Check if user name exists
- isPublic() : int
- Checks if this PUID is member-public profile more a hack, uses only onces
- writeLogIDs() : void
- Stores in a separate table the record and table of the user, updates the last online
- writeToSession() : void
Methods
cntByMinutes()
Gibt Anzahl Member innerhalb eines gewissen Zeitraums zurueck
public
static cntByMinutes(int $nTime[, string $strWhat = 'MINUTE' ]) : string
Parameters
- $nTime : int
-
- Zahlenwert
- $strWhat : string = 'MINUTE'
-
- Intervall
Tags
Return values
string —cntMails()
checke, ob es mehrere accounts mit dieser email gibt
public
static cntMails(string $strThisEmail) : int
Parameters
- $strThisEmail : string
Return values
int —cntRecords()
Counts submitted entries by `table_name` and user
public
static 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
static getData([mixed $strUIDorPUID = '' ][, int $bAbout = 1 ]) : array<string|int, mixed>
Parameters
- $strUIDorPUID : mixed = ''
- $bAbout : int = 1
-
- wenn 1 wird auch about-text gelesen
Return values
array<string|int, mixed> —getIdByPUID()
Holt die user_id anhand der PUID
public
static getIdByPUID(string $PUID) : int
Parameters
- $PUID : string
Return values
int —ID des users
getLogId()
Gets User ID of a logged record
public
static getLogId(string $strTableName, int $nRecordID[, bool $bSQL = false ]) : mixed
Parameters
- $strTableName : string
- $nRecordID : int
- $bSQL : bool = false
Return values
mixed —getRecordIDs()
returns comma separates list of record_id from table_name
public
static getRecordIDs(string $strTableName, int $nUserID) : string
Parameters
- $strTableName : string
- $nUserID : int
Return values
string —getTamPost()
Get the post from tell-a-mod/member
public
static getTamPost( $serTAM, $strOpenerPUID) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —getUserAsk()
user who asked for pw get by mail
public
static getUserAsk(string $strThisEmail) : array<string|int, mixed>
Parameters
- $strThisEmail : string
Return values
array<string|int, mixed> —isDoubleName()
Check if user name exists
public
static isDoubleName([string $strName = '' ][, array<string|int, mixed> $saCheckUser = [] ]) : string
Parameters
- $strName : string = ''
- $saCheckUser : array<string|int, mixed> = []
-
- $_SESSION['saUser']
Return values
string —- Fehlermeldung NameDouble
isPublic()
Checks if this PUID is member-public profile more a hack, uses only onces
public
static isPublic( $PUID) : int
Parameters
Return values
int —1/0
writeLogIDs()
Stores in a separate table the record and table of the user, updates the last online
public
static writeLogIDs(string $strTableName, int $nRecordID) : void
Parameters
- $strTableName : string
-
- Name der Tabelle
- $nRecordID : int
-
- ID des neuen Datensatzes in der Tabelle
Tags
Return values
void —writeToSession()
public
static writeToSession([string $PUID = '' ][, array<string|int, mixed> $saUserPublic = [] ]) : void
Parameters
- $PUID : string = ''
- $saUserPublic : array<string|int, mixed> = []