This handles exceptions for new Component structure.

This is old code and should be replaced so that this class becomes unnecessary

copyright CONTREXX CMS - COMVATION AG
author Michael Ritter
package contrexx
subpackage core_core
link contrexx homepage
since v3.1.0
todo : Remove this code (move all exceptions to components)

 Methods

Pushes all the legacy code into our array of exceptions

__construct() 

Exceptions

\Exception If frontend is locked by license

Executes an exception (if any) for a certain action and component

executeException(boolean $frontend, string $action, string $componentName) : mixed

Parameters

$frontend

boolean

Are we in frontend mode or not

$action

string

Name of action

$componentName

string

Component name

Returns

mixedReturn value of called exception (most of them return null)

Tells wheter there is an exception for a certain action and component or not

hasExceptionFor(boolean $frontend, string $action, string $componentName) : boolean

Parameters

$frontend

boolean

Are we in frontend mode or not

$action

string

Name of action

$componentName

string

Component name

Returns

booleanTrue if there is an exception listed, false otherwise

Checks if the component is active and in the list of legal components (license)

isActive(boolean $frontend, string $componentName) : boolean

Parameters

$frontend

boolean

Are we in frontend mode or not

$componentName

string

Component name

Returns

booleanTrue if the component is active and legal, false otherwise

 Properties

 

$exceptions : array

array[ frontend| backend ][ preResolve| postResolve| preContentLoad| preContentParse| load| postContentParse| postContentLoad| preFinalize| postFinalize ] = {callable}

© Copyright 2014 by Comvation AG
Generated on 2014-07-11T08:39:19+02:00.