‪TYPO3CMS  ‪main
TYPO3Tests\BlogExample\Controller\BlogController Class Reference
Inheritance diagram for TYPO3Tests\BlogExample\Controller\BlogController:
TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Public Member Functions

 __construct (BlogRepository $blogRepository, DataMapFactory $dataMapFactory)
 
 listAction ()
 
 detailsAction (Blog $blog=null)
 
 testFormAction ()
 
 testForwardAction (Post $blogPost)
 
 testForwardTargetAction (Post $blogPost)
 
 testRelatedObjectAction (Blog $blog, ?Post $blogPost=null)
 
 processRequest (RequestInterface $request)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectResponseFactory (ResponseFactoryInterface $responseFactory)
 
 injectStreamFactory (StreamFactoryInterface $streamFactory)
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectValidatorResolver (ValidatorResolver $validatorResolver)
 
 injectViewResolver (ViewResolverInterface $viewResolver)
 
 injectReflectionService (ReflectionService $reflectionService)
 
 injectHashService (HashService $hashService)
 
 injectMvcPropertyMappingConfigurationService (MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 injectEventDispatcher (EventDispatcherInterface $eventDispatcher)
 
 injectPropertyMapper (PropertyMapper $propertyMapper)
 
 injectInternalFlashMessageService (FlashMessageService $flashMessageService)
 
 injectInternalExtensionService (ExtensionService $extensionService)
 
 initializeControllerArgumentsBaseValidators ()
 
 addFlashMessage (string $messageBody, string $messageTitle='', ContextualFeedbackSeverity $severity=ContextualFeedbackSeverity::OK, bool $storeInSession=true)
 
 throwStatus (int $statusCode, string $statusMessage='', ?string $content=null)
 

Protected Member Functions

 getErrorFlashMessage ()
 
 getStructure (\Iterator|array $iterator)
 
 getRuntimeIdentifier ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 initializeAction ()
 
 initializeActionMethodArguments ()
 
 initializeActionMethodValidators ()
 
 renderAssetsForRequest (RequestInterface $request)
 
 resolveActionMethodName ()
 
 callActionMethod (RequestInterface $request)
 
 resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
 errorAction ()
 
 addErrorFlashMessage ()
 
 forwardToReferringRequest ()
 
 getFlattenedValidationErrorMessage ()
 
 getFlashMessageQueue (string $identifier=null)
 
 redirect (?string $actionName, ?string $controllerName=null, ?string $extensionName=null, ?array $arguments=null, ?int $pageUid=null, $_=null, int $statusCode=303)
 
 redirectToUri (string|UriInterface $uri, $_=null, int $statusCode=303)
 
 addBaseUriIfNecessary (string $uri)
 
 mapRequestArgumentsToControllerArguments ()
 
 htmlResponse (string $html=null)
 
 jsonResponse (string $json=null)
 

Protected Attributes

string $defaultViewObjectName = JsonView::class
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
HashService $hashService
 
ReflectionService $reflectionService
 
ViewInterface $view
 
string $defaultViewObjectName = TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
RequestInterface $request
 
UriBuilder $uriBuilder
 
array $settings
 
ValidatorResolver $validatorResolver
 
Arguments $arguments
 
ConfigurationManagerInterface $configurationManager
 

Private Attributes

BlogRepository $blogRepository
 
DataMapFactory $dataMapFactory
 

Detailed Description

Definition at line 33 of file BlogController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3Tests\BlogExample\Controller\BlogController::__construct ( BlogRepository  $blogRepository,
DataMapFactory  $dataMapFactory 
)

Member Function Documentation

◆ detailsAction()

TYPO3Tests\BlogExample\Controller\BlogController::detailsAction ( Blog  $blog = null)

◆ getErrorFlashMessage()

TYPO3Tests\BlogExample\Controller\BlogController::getErrorFlashMessage ( )
protected

Disable the default error flash message, otherwise we get an error because the flash message session handling is not available during functional tests.

Reimplemented from TYPO3\CMS\Extbase\Mvc\Controller\ActionController.

Definition at line 105 of file BlogController.php.

◆ getRuntimeIdentifier()

TYPO3Tests\BlogExample\Controller\BlogController::getRuntimeIdentifier ( )
protected

◆ getStructure()

TYPO3Tests\BlogExample\Controller\BlogController::getStructure ( \Iterator|array  $iterator)
protected
Parameters
\Iterator | \TYPO3\CMS\Extbase\DomainObject\AbstractEntity[]$iterator

Definition at line 113 of file BlogController.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

Referenced by TYPO3Tests\BlogExample\Controller\BlogController\listAction().

◆ listAction()

◆ processRequest()

TYPO3Tests\BlogExample\Controller\BlogController::processRequest ( RequestInterface  $request)

◆ testFormAction()

TYPO3Tests\BlogExample\Controller\BlogController::testFormAction ( )

◆ testForwardAction()

TYPO3Tests\BlogExample\Controller\BlogController::testForwardAction ( Post  $blogPost)

// needs to be imported entirely, else the annotationChecker test script complains @IgnoreValidation("blogPost")

Definition at line 71 of file BlogController.php.

References TYPO3\CMS\Extbase\Http\ForwardResponse\withArguments().

◆ testForwardTargetAction()

TYPO3Tests\BlogExample\Controller\BlogController::testForwardTargetAction ( Post  $blogPost)

◆ testRelatedObjectAction()

TYPO3Tests\BlogExample\Controller\BlogController::testRelatedObjectAction ( Blog  $blog,
?Post  $blogPost = null 
)

Member Data Documentation

◆ $blogRepository

BlogRepository TYPO3Tests\BlogExample\Controller\BlogController::$blogRepository
private

◆ $dataMapFactory

DataMapFactory TYPO3Tests\BlogExample\Controller\BlogController::$dataMapFactory
private

◆ $defaultViewObjectName

string TYPO3Tests\BlogExample\Controller\BlogController::$defaultViewObjectName = JsonView::class
protected

Definition at line 36 of file BlogController.php.