Page
in package
Page content from database
Table of Contents
- cleanAtt() : array<string|int, mixed>
- getBack() : string
- Liefert HTTP_REFERER wenn es nicht die eigene Seite ist
- getContentAllowed() : array<string|int, mixed>
- Gets page content from database
- getData() : array<string|int, mixed>
- getLink() : string
- Erzeuge page-link
- getMenuFromCache() : string
- Reads the menu from the cache
- getNewEntries() : string
- shows new entries of events, reports, photos, flyer, lifts uses js:get-ajax-list to open all other behind $nShowStop
- getPageID() : array<string|int, mixed>
- Holt Page-ID und Seo anhand Dateinamen
- getShareButtons() : mixed
- Fertige Share-Links fuer FB, Twitter, Reddit usw
- getSitemap() : string
- hasRights() : bool
- Helperfunktion Gets the rights for a page
Methods
cleanAtt()
public
static cleanAtt([array<string|int, mixed> $saAtt = [] ]) : array<string|int, mixed>
Parameters
- $saAtt : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getBack()
Liefert HTTP_REFERER wenn es nicht die eigene Seite ist
public
static getBack() : string
Return values
string —getContentAllowed()
Gets page content from database
public
static getContentAllowed([string $strFile = '' ]) : array<string|int, mixed>
Function must be used on top of each page before include of page_header.tpl.php
Example: $page = Page::GetContent(); if (is_array($page)) { $laPageTitle = $page['title']; $laInfo = $page['page_info']; $page['page_content'] = $page['page_content']; }
Parameters
- $strFile : string = ''
-
- the php file name
Return values
array<string|int, mixed> —getData()
public
static getData(string $strFile) : array<string|int, mixed>
Parameters
- $strFile : string
Return values
array<string|int, mixed> —getLink()
Erzeuge page-link
public
static getLink([string $strContent = '' ]) : string
syntax page-key: {page:128}, {page:index}, {page:index?var=1}
Parameters
- $strContent : string = ''
Tags
Return values
string —- Link
getMenuFromCache()
Reads the menu from the cache
public
static getMenuFromCache() : string
Return values
string —getNewEntries()
shows new entries of events, reports, photos, flyer, lifts uses js:get-ajax-list to open all other behind $nShowStop
public
static getNewEntries([string $strType = 'party' ], int $nShowStart[, int $nShowStop = 4 ]) : string
Parameters
- $strType : string = 'party'
-
- party, report, meeting, party_photos, photos, flyer|flyimg
- $nShowStart : int
- $nShowStop : int = 4
Tags
Return values
string —getPageID()
Holt Page-ID und Seo anhand Dateinamen
public
static getPageID(string $strFile) : array<string|int, mixed>
Parameters
- $strFile : string
Return values
array<string|int, mixed> —getShareButtons()
Fertige Share-Links fuer FB, Twitter, Reddit usw
public
static getShareButtons(array<string|int, mixed> $saData[, string $strAdd = '' ], int $bLine) : mixed
Parameters
- $saData : array<string|int, mixed>
-
- link, topic
- $strAdd : string = ''
-
- weitere button, z.b. Rss
- $bLine : int
Tags
Return values
mixed —getSitemap()
public
static getSitemap(int $nID) : string
Parameters
- $nID : int
Tags
Return values
string —hasRights()
Helperfunktion Gets the rights for a page
public
static hasRights(string $nFlag) : bool
Parameters
- $nFlag : string
-
- flag_display of the page
Return values
bool —- 0 = no rights, 1 = rights