controller
in
implements
controller
Allgemeine Basis einen Controller
Table of Contents
ERROR_PROCESS_BYPARAMS | 0x404 | |
---|---|---|
BYPARAM_DEFAULT_PREFIX | 'process' | |
BYPARAM_DEFAULT_ACTION | 'fn' | |
$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 |
__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 |
Constants
ERROR_PROCESS_BYPARAMS
mixed
$ERROR_PROCESS_BYPARAMS
= 0x404
BYPARAM_DEFAULT_PREFIX
mixed
$BYPARAM_DEFAULT_PREFIX
= 'process'
BYPARAM_DEFAULT_ACTION
mixed
$BYPARAM_DEFAULT_ACTION
= 'fn'
Properties
$request
Request object
protected
request
$request
$session
Aktuelle Sessions
protected
session
$session
$config
System-Configuration
protected
config
$config
$language
Language object
protected
language
$language
$permissions
Berechtigungen
protected
permissions
$permissions
$events
Events
protected
events
$events
$crons
Cronjobs
protected
cronlist
$crons
$cache
Cache
protected
cache
$cache
$crypt
Crypt object
protected
crypt
$crypt
$notifications
Notifications
protected
notifications
$notifications
$ipList
IP-Sperren-List-Objekt
protected
iplist
$ipList
$cacheName
Cache name
protected
string
$cacheName
= false
$moduleCheckExit
Cache name
protected
string
$moduleCheckExit
= true
$view
View object
protected
view
$view
$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
__construct()
Konstruktor
public
__construct(
)
: mixed
Return values
mixedgetRequestVar()
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
Return values
mixedbuttonClicked()
Prüft ob Button gesendet wurde
public
final buttonClicked(
$buttonName :
string
)
: string
Parameters
- $buttonName : string
Return values
stringgetSession()
Session zurückgeben
public
final getSession(
)
: session
Return values
sessioninitView()
Initialises view object
protected
initView(
)
: bool
Return values
boolredirectNoSession()
Redirect if user is not logged in
protected
redirectNoSession(
)
: bool
Return values
boolredirect()
Controller Redirect
protected
redirect(
[ $controller :
string
= '' ]
[, $params :
array
= [] ]
)
: bool
Parameters
- $controller : string = ''
- $params : array = []
Return values
boolgetControllerLink()
Create controller link
protected
getControllerLink(
[ $controller :
string
= '' ]
[, $params :
array
= [] ]
)
: string
Parameters
- $controller : string = ''
- $params : array = []
Return values
stringmaintenanceMode()
Hinweis das Wartungsmodus aktiv ist
protected
final maintenanceMode(
[ $simplemsg :
bool
= true ]
)
: bool
Parameters
- $simplemsg : bool = true
Return values
boolcheckPageToken()
Check page token
protected
checkPageToken(
[ $name :
string
= '' ]
)
: bool
Parameters
- $name : string = ''
Return values
boolrequestExit()
Additional frontend request check
protected
final requestExit(
$vars :
array
)
: bool
Parameters
- $vars : array
Return values
boolgetViewPath()
Get view path for controller
protected
getViewPath(
)
: string
Return values
stringgetHelpLink()
Get help link
protected
getHelpLink(
)
: string
Return values
stringgetIpLockedModul()
Get controller access lock module
protected
getIpLockedModul(
)
: string
Return values
stringgetPermissions()
Get controller permissions
protected
getPermissions(
)
: array
Return values
arraygetActiveNavigationElement()
Get active navigation item id
protected
getActiveNavigationElement(
)
: string
Return values
stringinitActionObjects()
Init action objects
protected
initActionObjects(
)
: bool
Return values
boolprocess()
Controller processing
public
process(
)
: bool
Tags
Return values
boolrequest()
Request processing, false prevent execution
public
request(
)
: bool
Tags
Return values
boolhasAccess()
Access check processing, false prevent execution of request() and process()
public
hasAccess(
)
: bool
Tags
Return values
boolprocessButtons()
Process click of form items as function
public
processButtons(
)
: bool
Tags
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
boolgetActiveTab()
Returns active tab ID, jQuery UI zero-based index
protected
final getActiveTab(
)
: int
Tags
Return values
intprocessByParam()
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
Return values
float|boolinitPermissionObject()
Initialize permission object
protected
initPermissionObject(
)
: bool