Docs Goabase

PartyVotes
in package
uses TraitUser

Table of Contents

Properties

$env  : array<string|int, mixed>
$partyId  : int
$user  : User
$voteIcons  : VoteIcons

Methods

__construct()  : mixed
getSum()  : array{'nVotes': int, 'nPersons': int}
Holt pro Party das Voting
getUserInstance()  : User
getVotesAndStatus()  : string
getVoteTotalPartyImg()  : string
getOrgaSumSQL()  : array<string|int, mixed>
Summiertes Voting für einen User
getSumSubmitter()  : array{nVotes: int, nPersons: int}
Holt das summierte Votings aller Parties eines Veranstalters
getVoteId()  : int

Properties

Methods

__construct()

public __construct(int|null $partyId) : mixed
Parameters
$partyId : int|null

getSum()

Holt pro Party das Voting

public getSum() : array{'nVotes': int, 'nPersons': int}
Return values
array{'nVotes': int, 'nPersons': int}

getVotesAndStatus()

public getVotesAndStatus([int $bPast = 0 ][, string $strStatusImg = '' ]) : string
Parameters
$bPast : int = 0
  • wenn 0 wird nur $strStatusImg zurückgegeben
$strStatusImg : string = ''
Return values
string

getVoteTotalPartyImg()

public getVoteTotalPartyImg([int $nUserID = 0 ]) : string
Parameters
$nUserID : int = 0
Tags
throws
Exception
Return values
string

getOrgaSumSQL()

Summiertes Voting für einen User

private getOrgaSumSQL(int $nUserID) : array<string|int, mixed>
Parameters
$nUserID : int
Return values
array<string|int, mixed>

getSumSubmitter()

Holt das summierte Votings aller Parties eines Veranstalters

private getSumSubmitter([int $nUserID = 0 ]) : array{nVotes: int, nPersons: int}
Parameters
$nUserID : int = 0
Return values
array{nVotes: int, nPersons: int}

getVoteId()

private getVoteId() : int
Return values
int

        
On this page

Search results