TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\SysNote\Core\Bootstrap Class Reference

Public Member Functions

 __construct (DatabaseConnection $databaseConnection=null)
 

Protected Member Functions

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

Protected Attributes

 $extbaseConfiguration
 
 $currentGetArguments
 
 $databaseConnection
 

Detailed Description

Bootstrap for note module

Definition at line 24 of file Bootstrap.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ expectOutput()

TYPO3\CMS\SysNote\Core\Bootstrap::expectOutput ( array  $arguments = [])
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 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 109 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 120 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 39 of file Bootstrap.php.

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

◆ $databaseConnection

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

Definition at line 44 of file Bootstrap.php.

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

◆ $extbaseConfiguration

TYPO3\CMS\SysNote\Core\Bootstrap::$extbaseConfiguration
protected
Initial value:
= [
'vendorName' => 'TYPO3\\CMS'

Definition at line 30 of file Bootstrap.php.