Documentation

ajaxController extends controller

Basis für AJAX-Controller

Table of Contents

$returnData Rückgabe-Daten mixed
$updateCheckEnabled Update-Check de/aktivieren bool
$moduleCheckExit Cache name string
$response response object response
$request Request object request
$session Aktuelle Sessions session
$config System-Configuration config
$language Language object language
$permissions Berechtigungen permissions
$events Events events
$crons Cronjobs cronlist
$cache Cache cache
$crypt Crypt object crypt
$notifications Notifications notifications
$ipList IP-Sperren-List-Objekt iplist
$cacheName Cache name string
$moduleCheckExit Cache name string
$view View object view
$viewEvents View events namespace string
$checkPageToken Page token check result bool
$execDestruct Execute defined actions on __destruct bool
$moduleElement Check if controller was defined in module bool
initView() Initialises view object bool
redirectNoSession() Redirect if user is not logged in bool
checkPageToken() Check page token bool
__construct() Konstruktor mixed
getRequestVar() Gibt Wert in $_GET, $_POST, $_FILE zurück mixed
buttonClicked() Prüft ob Button gesendet wurde string
getSession() Session zurückgeben session
initView() Initialises view object bool
redirectNoSession() Redirect if user is not logged in bool
redirect() Controller Redirect bool
getControllerLink() Create controller link string
maintenanceMode() Hinweis das Wartungsmodus aktiv ist bool
checkPageToken() Check page token bool
requestExit() Additional frontend request check bool
getViewPath() Get view path for controller string
getHelpLink() Get help link string
getIpLockedModul() Get controller access lock module string
getPermissions() Get controller permissions array
getActiveNavigationElement() Get active navigation item id string
initActionObjects() Init action objects bool
process() Controller processing bool
request() Request processing, false prevent execution bool
hasAccess() Access check processing, false prevent execution of request() and process() bool
processButtons() Process click of form items as function bool
__call() Magische Methode für nicht vorhandene Methoden bool
__callStatic() Magische Methode für nicht vorhandene, statische Methoden bool
__destruct() Destruktor void
hasActiveModule() Check if active module was called bool
getActiveTab() Returns active tab ID, jQuery UI zero-based index int
processByParam() Executes function by param from GET-request in current controller float|bool
initPermissionObject() Initialize permission object bool

Properties

$updateCheckEnabled

Update-Check de/aktivieren

protected bool $updateCheckEnabled = false

$moduleCheckExit

Cache name

protected string $moduleCheckExit = false

$cacheName

Cache name

protected string $cacheName = false

$moduleCheckExit

Cache name

protected string $moduleCheckExit = true

$viewEvents

View events namespace

protected string $viewEvents = 'theme'

$checkPageToken

Page token check result

protected bool $checkPageToken = true

$execDestruct

Execute defined actions on __destruct

protected bool $execDestruct = true

$moduleElement

Check if controller was defined in module

protected bool $moduleElement = false

Methods

initView()

Initialises view object

protected initView( ) : bool
Return values
bool

redirectNoSession()

Redirect if user is not logged in

protected redirectNoSession( ) : bool
Return values
bool

checkPageToken()

Check page token

protected final checkPageToken( [ $name : string = 'token' ] ) : bool
Parameters
$name : string = 'token'
Tags
since
Return values
bool

__construct()

Konstruktor

public __construct( ) : mixed
Return values
mixed

getRequestVar()

Gibt Wert in $_GET, $_POST, $_FILE zurück

public final getRequestVar( [ $varname : string = null ] [, $filter : array = [\fpcm\classes\http::FILTER_STRIPTAGS, \fpcm\classes\http::FILTER_HTMLENTITIES, \fpcm\classes\http::FILTER_STRIPSLASHES, \fpcm\classes\http::FILTER_TRIM] ] ) : mixed
Parameters
$varname : string = null
$filter : array = [\fpcm\classes\http::FILTER_STRIPTAGS, \fpcm\classes\http::FILTER_HTMLENTITIES, \fpcm\classes\http::FILTER_STRIPSLASHES, \fpcm\classes\http::FILTER_TRIM]
Tags
deprecated

FPCM 4.4, use $this->request instead

Return values
mixed

buttonClicked()

Prüft ob Button gesendet wurde

public final buttonClicked( $buttonName : string ) : string
Parameters
$buttonName : string
Return values
string

getSession()

Session zurückgeben

public final getSession( ) : session
Return values
session

initView()

Initialises view object

protected initView( ) : bool
Return values
bool

redirectNoSession()

Redirect if user is not logged in

protected redirectNoSession( ) : bool
Return values
bool

redirect()

Controller Redirect

protected redirect( [ $controller : string = '' ] [, $params : array = [] ] ) : bool
Parameters
$controller : string = ''
$params : array = []
Return values
bool

getControllerLink()

Create controller link

protected getControllerLink( [ $controller : string = '' ] [, $params : array = [] ] ) : string
Parameters
$controller : string = ''
$params : array = []
Return values
string

maintenanceMode()

Hinweis das Wartungsmodus aktiv ist

protected final maintenanceMode( [ $simplemsg : bool = true ] ) : bool
Parameters
$simplemsg : bool = true
Return values
bool

checkPageToken()

Check page token

protected checkPageToken( [ $name : string = '' ] ) : bool
Parameters
$name : string = ''
Return values
bool

requestExit()

Additional frontend request check

protected final requestExit( $vars : array ) : bool
Parameters
$vars : array
Return values
bool

getViewPath()

Get view path for controller

protected getViewPath( ) : string
Return values
string

getHelpLink()

Get help link

protected getHelpLink( ) : string
Return values
string

getIpLockedModul()

Get controller access lock module

protected getIpLockedModul( ) : string
Return values
string

getPermissions()

Get controller permissions

protected getPermissions( ) : array
Return values
array

getActiveNavigationElement()

Get active navigation item id

protected getActiveNavigationElement( ) : string
Return values
string

initActionObjects()

Init action objects

protected initActionObjects( ) : bool
Return values
bool

process()

Controller processing

public process( ) : bool
Tags
see
Return values
bool

request()

Request processing, false prevent execution

public request( ) : bool
Tags
see
Return values
bool

hasAccess()

Access check processing, false prevent execution of request() and process()

public hasAccess( ) : bool
Tags
see
Return values
bool

processButtons()

Process click of form items as function

public processButtons( ) : bool
Tags
since
todo

experimental

Return values
bool

__call()

Magische Methode für nicht vorhandene Methoden

public __call( $name : string , $arguments : mixed ) : bool
Parameters
$name : string
$arguments : mixed
Return values
bool

__callStatic()

Magische Methode für nicht vorhandene, statische Methoden

public static __callStatic( $name : string , $arguments : mixed ) : bool
Parameters
$name : string
$arguments : mixed
Return values
bool

__destruct()

Destruktor

public __destruct( ) : void

hasActiveModule()

Check if active module was called

protected final hasActiveModule( ) : bool
Return values
bool

getActiveTab()

Returns active tab ID, jQuery UI zero-based index

protected final getActiveTab( ) : int
Tags
since
Return values
int

processByParam()

Executes function by param from GET-request in current controller

protected final processByParam( [ $prefix : string = self::BYPARAM_DEFAULT_PREFIX ] [, $actionFrom : string = self::BYPARAM_DEFAULT_ACTION ] ) : float|bool
Parameters
$prefix : string = self::BYPARAM_DEFAULT_PREFIX
$actionFrom : string = self::BYPARAM_DEFAULT_ACTION
Tags
since
Return values
float|bool

initPermissionObject()

Initialize permission object

protected initPermissionObject( ) : bool
Tags
since
Return values
bool

Search results