Docs Goabase

Party
in package

Around Party

Table of Contents

getAjaxWhoComes()  : string
Helperfunktion Erzeuge link, der eine box für member öffnet öffnet
getById()  : array<string|int, mixed>
Hole eine Party anhand der ID oder des hidden-keys
getDetails()  : string
Liest komplett party_detail.tpl.php
getList()  : array<string|int, mixed>
Get a list of the parties
getListElement()  : string
getListNear()  : string
Shows same type of parties nearby
getUpcomingFromUser()  : string
Three next events from an user except the recent
getVisited()  : string
Get's the visited parties
isMod()  : int
returns 1 if the user can edit the party
isOld()  : bool
isPast()  : int
returns 1 if the date is in the past
redirectOnWrongPartySeo()  : void
Checks the party-url and redirects if it's wrong

Methods

getAjaxWhoComes()

Helperfunktion Erzeuge link, der eine box für member öffnet öffnet

public static getAjaxWhoComes(string $link, int $PID[, string $text = '' ]) : string
Parameters
$link : string
$PID : int
$text : string = ''
Tags
throws
Exception
intern

param string $title

intern

param $saUserPublic

intern

param string $strCssBoxClass

intern

param int $bForce - shows it always, for own cases

intern

param array $PUID

intern

param \public_uid $string

Return values
string
  • html-snippet, was jquery anspricht

getById()

Hole eine Party anhand der ID oder des hidden-keys

public static getById(mixed $nID[, bool $bCache = true ][, bool $bShortList = false ]) : array<string|int, mixed>
Parameters
$nID : mixed
  • Id oder hidden-key
$bCache : bool = true
  • 0: hole nicht aus cache, aber schreibe neu
$bShortList : bool = false
Return values
array<string|int, mixed>

getDetails()

Liest komplett party_detail.tpl.php

public static getDetails(array<string|int, mixed> $saParty, array<string|int, mixed> $saUserOrga) : string
Parameters
$saParty : array<string|int, mixed>
$saUserOrga : array<string|int, mixed>
Return values
string

getList()

Get a list of the parties

public static getList(array<string|int, mixed> $saAtt, int $nPos, int $bPast[, string $strOutput = '' ]) : array<string|int, mixed>
Parameters
$saAtt : array<string|int, mixed>
$nPos : int
$bPast : int
$strOutput : string = ''
Tags
template

party_table.tpl.php

template

party_table_ical.tpl.php

template

party_table_rss.tpl.php

Return values
array<string|int, mixed>
  • [total] amount of parties, [list] of parties

getListElement()

public static getListElement([array<string|int, mixed> $saField = [] ][, int $x = 1 ]) : string
Parameters
$saField : array<string|int, mixed> = []
$x : int = 1
Return values
string

getListNear()

Shows same type of parties nearby

public static getListNear( $saThisParty, int $bPast[, int $nLimit = 3 ]) : string
Parameters
$saThisParty :
  • the party we are calling
$bPast : int
$nLimit : int = 3
Tags
throws
Exception
intern

param array $saAtt

intern

param string $intAnzRow

template

party_new_list_ajax.tpl.php

since
2015-05-11
Return values
string

getUpcomingFromUser()

Three next events from an user except the recent

public static getUpcomingFromUser(int $orga_id, int $party_id) : string

Returns a string of three parties, layouted with party_list_related.tpl.php

Parameters
$orga_id : int
$party_id : int
Tags
intern

param int $party_date

template

party_list_related.tpl.php

Return values
string

getVisited()

Get's the visited parties

public static getVisited() : string
Return values
string

isMod()

returns 1 if the user can edit the party

public static isMod(int $nSubmitterID) : int
Parameters
$nSubmitterID : int
Return values
int

isOld()

public static isOld(string $partydate) : bool
Parameters
$partydate : string
Return values
bool

isPast()

returns 1 if the date is in the past

public static isPast(string $partydate) : int
Parameters
$partydate : string
Return values
int

redirectOnWrongPartySeo()

Checks the party-url and redirects if it's wrong

public static redirectOnWrongPartySeo([string $strTarget = '' ]) : void
Parameters
$strTarget : string = ''
  • meetingpoint, reports, whocomes, invites, lift, photos, admin if empty it goes to details
Return values
void

Search results