WriteCache
in package
Write different cache files
Table of Contents
- makeLogoTop() : int
- Logo
- makeMemberBanned() : int
- Schreibt Cache-Datei für gebannte Member
- makeMemberCountry() : int
- writes a json file with the recent members per country
- makeMemberTags() : int
- Schreibt Cache-File 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
- makeStatsDB() : void
- Schreibt Array für DB-Stats
- makeTeaser() : void
- Schreibt die aktuellen Fotos in die Cache-Tabelle party_images_teaser
- setPartyImageTeaser() : void
- setToFile() : void
- Writes HTML to a specific file
- writeLng() : void
- getMenuTree() : string
- Creates menu for the cache
- getSQL() : string
- Gets the sql for the different new entries It's needed on two places
Methods
makeLogoTop()
Logo
public
static makeLogoTop( $strStyle) : int
Parameters
Return values
int —makeMemberBanned()
Schreibt Cache-Datei für gebannte Member
public
static makeMemberBanned() : int
Return values
int —makeMemberCountry()
writes a json file with the recent members per country
public
static makeMemberCountry() : int
Return values
int —makeMemberTags()
Schreibt Cache-File fuer member- oder party-tags
public
static makeMemberTags([string $strType = 'member' ]) : int
Parameters
- $strType : string = 'member'
-
- member | party
Return values
int —makeMenuTree()
writes the menu into the cache
public
static makeMenuTree() : int
Return values
int —makeNewEntries()
Writes new cache files
public
static makeNewEntries([string $strType = 'party' ][, int $nRows = 20 ]) : int
Parameters
- $strType : string = 'party'
-
- party, lift, report, meeting, photos, flyer, member, member_photos
- $nRows : int = 20
Return values
int —makeNews()
Schreibt die aktuellen Fotos in die Cache-Tabelle party_images_teaser
public
static makeNews( $saAtt) : int
Parameters
Return values
int —makePartyByStatus()
Writes cachefile for group party status and their amount
public
static makePartyByStatus() : int
$saPartyStatus[$val] = $cnt
Tags
Return values
int —makePartyByType()
Writes cachefile for group partytypes and their amount
public
static makePartyByType() : int
$saRow[$i]['partytype'] = "" $saRow[$i]['cnt'] = ""
Tags
Return values
int —makePartyCountry()
Writes cachefile for countries
public
static makePartyCountry(int $bPast) : int
Parameters
- $bPast : int
Return values
int —makePartyPhotos()
Schreibt die neuen Party-Fotos in den Cache Limitiert auf 20
public
static makePartyPhotos() : int
Return values
int —makeStatsDB()
Schreibt Array für DB-Stats
public
static makeStatsDB(string $serData, string $strArrayName) : void
Parameters
- $serData : string
- $strArrayName : string
Return values
void —makeTeaser()
Schreibt die aktuellen Fotos in die Cache-Tabelle party_images_teaser
public
static makeTeaser(int $PID) : void
Parameters
- $PID : int
Return values
void —setPartyImageTeaser()
public
static setPartyImageTeaser( $row, $PID) : void
Parameters
Return values
void —setToFile()
Writes HTML to a specific file
public
static setToFile( $file, $data) : void
Parameters
Return values
void —writeLng()
public
static writeLng() : void
Tags
Return values
void —getMenuTree()
Creates menu for the cache
protected
static getMenuTree(int $nID[, array<string|int, mixed> $saType = [] ][, string $init = '' ]) : string
Parameters
- $nID : int
- $saType : array<string|int, mixed> = []
-
- user, mod, lang_de
- $init : string = ''
Return values
string —getSQL()
Gets the sql for the different new entries It's needed on two places
protected
static getSQL([string $strType = 'party' ][, int $nRows = 5 ]) : string
Parameters
- $strType : string = 'party'
-
- party, report, photos, flyer, flyerimg
- $nRows : int = 5
Return values
string —- the sql