PartyTools
in package
uses
TraitSeo, TraitUser
Table of Contents
Properties
Methods
- __construct() : mixed
- getPartyInfoTpl() : string
- getPartyPhotosRndTpl() : string
- getSeoInstance() : Seo
- getUserInstance() : User
- getUserOrga() : array<string|int, mixed>
- Define $saUserOrga
- redirectOnWrongPartySeo() : void
- Checks the party-url and redirects if it's wrong
- setVisitedToSession() : void
- togglePartyTimerWithMsg() : void
Properties
$PID
private
int
$PID
$saParty
private
array<string|int, mixed>
$saParty
$user
private
User
$user
Methods
__construct()
public
__construct([array<string|int, mixed> $saParty = [] ][, int $PID = 0 ]) : mixed
Parameters
- $saParty : array<string|int, mixed> = []
- $PID : int = 0
getPartyInfoTpl()
public
getPartyInfoTpl(string $type) : string
Parameters
- $type : string
Return values
stringgetPartyPhotosRndTpl()
public
getPartyPhotosRndTpl() : string
Return values
stringgetSeoInstance()
public
getSeoInstance() : Seo
Return values
SeogetUserInstance()
public
getUserInstance() : User
Return values
UsergetUserOrga()
Define $saUserOrga
public
getUserOrga(int $orgaUserId) : array<string|int, mixed>
Parameters
- $orgaUserId : int
Return values
array<string|int, mixed>redirectOnWrongPartySeo()
Checks the party-url and redirects if it's wrong
public
redirectOnWrongPartySeo([string $strTarget = '' ]) : void
Parameters
- $strTarget : string = ''
-
- meetingpoint, reports, whocomes, invites, lift, photos, admin if empty it goes to details
setVisitedToSession()
public
setVisitedToSession() : void
togglePartyTimerWithMsg()
public
togglePartyTimerWithMsg(string $seoParty) : void
Parameters
- $seoParty : string