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

Public Member Functions

 __construct (ContentRepository $repository)
 
 setRepository (ContentRepository $repository)
 
 render ()
 

Public Attributes

 $doc
 

Protected Member Functions

 loadJavascript ()
 
 loadCss ()
 
 loadSettings ()
 
 loadLocalization ()
 
 callRenderHook ()
 
 removeTrailingDotsFromTyposcript (array &$array)
 
 getPageRenderer ()
 
 getLanguageService ()
 

Protected Attributes

 $recordIsAvailable = false
 
 $repository
 
 $pageRenderer
 

Detailed Description

The form wizard view

Definition at line 29 of file WizardView.php.

Constructor & Destructor Documentation

__construct ( ContentRepository  $repository)

Constructs this view

Defines the global variable SOBE. Normally this is used by the wizards which are one file only. This view is now the class with the global variable name SOBE.

Defines the document template object.

Parameters
ContentRepository$repository
See Also

Definition at line 69 of file WizardView.php.

References $GLOBALS, WizardView\getLanguageService(), GeneralUtility\makeInstance(), and WizardView\setRepository().

Member Function Documentation

callRenderHook ( )
protected

Hook to extend the wizard interface.

The hook is called just before content rendering. Use it by adding your function to the array $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['form']['hooks']['renderWizard']

Returns
void

Definition at line 304 of file WizardView.php.

References $GLOBALS, and GeneralUtility\callUserFunction().

Referenced by WizardView\render().

getLanguageService ( )
protected

Returns an instance of LanguageService

Returns

Definition at line 407 of file WizardView.php.

Referenced by WizardView\__construct(), WizardView\loadLocalization(), and WizardView\render().

getPageRenderer ( )
protected
Returns
PageRenderer

Definition at line 393 of file WizardView.php.

Referenced by WizardView\loadCss(), WizardView\loadJavascript(), and WizardView\loadLocalization().

loadCss ( )
protected

Load the necessary css

This will only be done when the referenced record is available

Returns
void

Definition at line 251 of file WizardView.php.

References ExtensionManagementUtility\extRelPath(), and WizardView\getPageRenderer().

Referenced by WizardView\render().

loadJavascript ( )
protected

Load the necessary javascript

This will only be done when the referenced record is available

Returns
void

Definition at line 132 of file WizardView.php.

References ExtensionManagementUtility\extRelPath(), and WizardView\getPageRenderer().

Referenced by WizardView\render().

loadLocalization ( )
protected

Reads locallang file into array (for possible include in header)

Returns
void

Definition at line 288 of file WizardView.php.

References WizardView\getLanguageService(), and WizardView\getPageRenderer().

Referenced by WizardView\render().

loadSettings ( )
protected

Load the settings

The settings are defined in pageTSconfig mod.wizards.form

Returns
void

Definition at line 273 of file WizardView.php.

References BackendUtility\getModTSconfig(), and WizardView\removeTrailingDotsFromTyposcript().

Referenced by WizardView\render().

removeTrailingDotsFromTyposcript ( array &  $array)
protected

Remove the trailing dots from the values in Typoscript

Parameters
array$arrayThe array with the trailing dots
Returns
void

Definition at line 320 of file WizardView.php.

Referenced by WizardView\loadSettings().

render ( )

The main render method

Gathers all content and returns it

Returns
string

Definition at line 96 of file WizardView.php.

References WizardView\callRenderHook(), WizardView\getLanguageService(), WizardView\loadCss(), WizardView\loadJavascript(), WizardView\loadLocalization(), and WizardView\loadSettings().

setRepository ( ContentRepository  $repository)

Sets the content repository to be used.

Parameters
ContentRepository$repository
Returns
void

Definition at line 85 of file WizardView.php.

References WizardView\$repository.

Referenced by WizardView\__construct().

Member Data Documentation

$doc

Definition at line 50 of file WizardView.php.

$pageRenderer
protected

Definition at line 55 of file WizardView.php.

$recordIsAvailable = false
protected

Definition at line 36 of file WizardView.php.

$repository
protected

Definition at line 41 of file WizardView.php.

Referenced by WizardView\setRepository().