TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\SysNote\Core\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

Author
Kai Vogel kai.v.nosp@m.ogel.nosp@m.@spee.nosp@m.dpro.nosp@m.gs.de

Definition at line 26 of file Bootstrap.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ expectOutput()

TYPO3\CMS\SysNote\Core\Bootstrap::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
boolean

Definition at line 84 of file Bootstrap.php.

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause().

Referenced by TYPO3\CMS\SysNote\Core\Bootstrap\__construct().

◆ overrideGetArguments()

TYPO3\CMS\SysNote\Core\Bootstrap::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 107 of file Bootstrap.php.

Referenced by TYPO3\CMS\SysNote\Core\Bootstrap\__construct().

◆ revertGetArguments()

TYPO3\CMS\SysNote\Core\Bootstrap::revertGetArguments ( )
protected

Revert previously backuped get arguments

Returns
void

Definition at line 117 of file Bootstrap.php.

References TYPO3\CMS\SysNote\Core\Bootstrap\$currentGetArguments.

Referenced by TYPO3\CMS\SysNote\Core\Bootstrap\__construct().

Member Data Documentation

◆ $currentGetArguments

TYPO3\CMS\SysNote\Core\Bootstrap::$currentGetArguments
protected

Definition at line 40 of file Bootstrap.php.

Referenced by TYPO3\CMS\SysNote\Core\Bootstrap\revertGetArguments().

◆ $databaseConnection

TYPO3\CMS\SysNote\Core\Bootstrap::$databaseConnection
protected

Definition at line 45 of file Bootstrap.php.

Referenced by TYPO3\CMS\SysNote\Core\Bootstrap\__construct().

◆ $extbaseConfiguration

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

Definition at line 31 of file Bootstrap.php.