TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Bootstrap Class Reference

Public Member Functions

 __construct (DatabaseConnection $databaseConnection=null)
 

Protected Member Functions

 expectOutput (array $arguments=array())
 
 overrideGetArguments (array $arguments)
 
 revertGetArguments ()
 

Protected Attributes

 $extbaseConfiguration
 
 $currentGetArguments
 
 $databaseConnection
 

Detailed Description

Bootstrap for note module

Definition at line 24 of file sys_note/Classes/Core/Bootstrap.php.

Constructor & Destructor Documentation

__construct ( DatabaseConnection  $databaseConnection = null)
Parameters
DatabaseConnection$databaseConnection

Definition at line 49 of file sys_note/Classes/Core/Bootstrap.php.

References Bootstrap\$databaseConnection, and $GLOBALS.

Member Function Documentation

expectOutput ( array  $arguments = array())
protected

Check if the note plugin expects output. If there are no sys_note records on the given pages, the extbase bootstrap doesn't have to run the complete plugin. This mechanism should increase the performance of the hooked backend modules heavily.

Parameters
array$argumentsArguments for the extbase plugin
Returns
bool

Definition at line 85 of file sys_note/Classes/Core/Bootstrap.php.

References $GLOBALS, and BackendUtility\deleteClause().

overrideGetArguments ( array  $arguments)
protected

Modify $_GET to force specific controller, action and arguments in extbase bootstrap process

Note: Overwriting $_GET was the most simple solution here until extbase provides a clean way to force a controller and action in backend mode.

Parameters
array$argumentsThe arguments to set
Returns
void

Definition at line 109 of file sys_note/Classes/Core/Bootstrap.php.

revertGetArguments ( )
protected

Revert previously backuped get arguments

Returns
void

Definition at line 120 of file sys_note/Classes/Core/Bootstrap.php.

References Bootstrap\$currentGetArguments.

Member Data Documentation

$currentGetArguments
protected

Definition at line 39 of file sys_note/Classes/Core/Bootstrap.php.

Referenced by Bootstrap\revertGetArguments().

$databaseConnection
protected

Definition at line 44 of file sys_note/Classes/Core/Bootstrap.php.

Referenced by Bootstrap\__construct().

$extbaseConfiguration
protected
Initial value:
= array(
'vendorName' => 'TYPO3\\CMS',
'extensionName' => 'SysNote',
'pluginName' => 'Note',
)

Definition at line 30 of file sys_note/Classes/Core/Bootstrap.php.