Docs Goabase

WriteCache
in package
uses TraitMemberLink, TraitDataWrite, TraitParty

Table of Contents

Properties

$cacheFile  : array<string|int, mixed>
$env  : array<string|int, mixed>
$party  : Party
$partySQL  : PartySQL

Methods

__construct()  : mixed
getDataWriteInstance()  : DataWrite
getMemberLinkInstance()  : MemberLink
getPartyInstance()  : Party
makeLogoTop()  : int
Logo
makeMemberBanned()  : int
Schreibt Cache-Datei für gebannte Member
makeMemberTags()  : int
Schreibt Cache-FormFile fuer member- oder party-tags
makeMenuTree()  : int
writes the menu into the cache
makeNewEntries()  : int
Writes new cache files
makeNews()  : int
Schreibt die aktuellen Fotos in die Cache-Tabelle party_images_teaser
makePartyByStatus()  : int
Writes cachefile for group party status and their amount
makePartyByType()  : int
Writes cachefile for group partytypes and their amount
makePartyCountry()  : int
Writes cachefile for countries
makePartyPhotos()  : int
Schreibt die neuen Party-Fotos in den Cache Limitiert auf 20
makeTeaser()  : void
Schreibt die aktuellen Fotos in die Cache-Tabelle party_images_teaser
setPartyImageTeaser()  : void
writeToFile()  : void
Writes HTML to a specific file
addMemberToCache()  : array<string|int, mixed>
getMenuTree()  : string
Creates menu for the cache
getPhpHeader()  : string
getSQLCache()  : string
Gets the sql for the different new entries It's needed on two places

Properties

$cacheFile

private array<string|int, mixed> $cacheFile

Methods

makeLogoTop()

Logo

public makeLogoTop(string $strStyle) : int
Parameters
$strStyle : string
Return values
int

makeMemberBanned()

Schreibt Cache-Datei für gebannte Member

public makeMemberBanned() : int
Return values
int

makeMemberTags()

Schreibt Cache-FormFile fuer member- oder party-tags

public makeMemberTags([string $strType = 'member' ]) : int
Parameters
$strType : string = 'member'
  • member | party
Tags
throws
DateMalformedStringException
throws
DateMalformedStringException
throws
RandomException
Return values
int

makeMenuTree()

writes the menu into the cache

public makeMenuTree() : int
Return values
int

makeNewEntries()

Writes new cache files

public makeNewEntries([string $strType = 'party' ][, int $nRows = 20 ]) : int
Parameters
$strType : string = 'party'
  • party, lift, report, meeting, photos, flyer, member, member_photos
$nRows : int = 20
Tags
throws
DateMalformedStringException
throws
RandomException
Return values
int

makeNews()

Schreibt die aktuellen Fotos in die Cache-Tabelle party_images_teaser

public makeNews(array<string|int, mixed> $saAtt) : int
Parameters
$saAtt : array<string|int, mixed>
Return values
int

makePartyByStatus()

Writes cachefile for group party status and their amount

public makePartyByStatus() : int

$saPartyStatus[$val] = $cnt

Tags
throws
DateMalformedStringException
throws
DateMalformedStringException
throws
RandomException
since
2015-04-25
Return values
int

makePartyByType()

Writes cachefile for group partytypes and their amount

public makePartyByType() : int

$saRow[$i]['partytype'] = "" $saRow[$i]['cnt'] = ""

Tags
since
2015-04-25
intern

param bool|int $bPast

Return values
int

makePartyCountry()

Writes cachefile for countries

public makePartyCountry([int $bPast = 0 ]) : int
Parameters
$bPast : int = 0
Return values
int

makePartyPhotos()

Schreibt die neuen Party-Fotos in den Cache Limitiert auf 20

public makePartyPhotos() : int
Return values
int

makeTeaser()

Schreibt die aktuellen Fotos in die Cache-Tabelle party_images_teaser

public makeTeaser(int $PID) : void
Parameters
$PID : int

setPartyImageTeaser()

public setPartyImageTeaser(array<string|int, mixed> $row, int $PID) : void
Parameters
$row : array<string|int, mixed>
$PID : int

writeToFile()

Writes HTML to a specific file

public writeToFile(string $file, string $data) : void
Parameters
$file : string
$data : string

addMemberToCache()

private addMemberToCache(int $cnt, mixed $row, array<string|int, mixed> $saLine) : array<string|int, mixed>
Parameters
$cnt : int
$row : mixed
$saLine : array<string|int, mixed>
Return values
array<string|int, mixed>

getMenuTree()

Creates menu for the cache

private getMenuTree([int $nID = 0 ][, array<string|int, mixed> $saType = [] ][, string $init = '' ]) : string
Parameters
$nID : int = 0
$saType : array<string|int, mixed> = []
  • user, mod, lang_de
$init : string = ''
Return values
string

getPhpHeader()

private getPhpHeader() : string
Return values
string

getSQLCache()

Gets the sql for the different new entries It's needed on two places

private getSQLCache([string $strType = 'party' ][, int $nRows = 5 ]) : string
Parameters
$strType : string = 'party'
  • party, report, photos, flyer, flyerimg
$nRows : int = 5
Return values
string
  • the sql

        
On this page

Search results