Docs Goabase

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>

Erzeuge page-link

public static getLink([string $strContent = '' ]) : string

syntax page-key: {page:128}, {page:index}, {page:index?var=1}

Parameters
$strContent : string = ''
Tags
see
Faq::getAjaxLink
intern

param string $urlvars

intern

param string $strCssBoxClass

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
intern

param int $nShowFirst - behind that number all entries are hidden

intern

param string $strTemplate

see

party_new_list_ajax.tpl.php

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
intern

param bool $bOpen - 0 = nicht sichtbar, 1 = sichtbar

intern

param string $bShowShares

Return values
mixed

getSitemap()

public static getSitemap(int $nID) : string
Parameters
$nID : int
Tags
template

_sitemap_link.php

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

Search results