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

Public Member Functions

 __construct (\ExtbaseTeam\BlogExample\Domain\Repository\BlogRepository $blogRepository, \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapFactory $dataMapFactory)
 
 listAction ()
 
 detailsAction (Blog $blog=null)
 
 testFormAction ()
 
 testForwardAction ($blogPost)
 
 testForwardTargetAction ($blogPost)
 
 testRelatedObjectAction ($blog, $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)
 
 injectObjectManager (ObjectManagerInterface $objectManager)
 
 injectSignalSlotDispatcher (Dispatcher $signalSlotDispatcher)
 
 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 ()
 
ControllerContext getControllerContext ()
 
 addFlashMessage ($messageBody, $messageTitle='', $severity=AbstractMessage::OK, $storeInSession=true)
 
never forward ($actionName, $controllerName=null, $extensionName=null, array $arguments=null)
 
never throwStatus ($statusCode, $statusMessage=null, $content=null)
 

Protected Member Functions

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

Protected Attributes

string $defaultViewObjectName = JsonView::class
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
TYPO3 CMS Extbase Reflection ReflectionService $reflectionService
 
HashService $hashService
 
ViewInterface $view
 
string $defaultViewObjectName = TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
TYPO3 CMS Extbase Mvc Controller MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
Request $request
 
TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
 
ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase Mvc Web Routing UriBuilder $uriBuilder
 
array $settings
 
TYPO3 CMS Extbase Validation ValidatorResolver $validatorResolver
 
TYPO3 CMS Extbase Mvc Controller Arguments $arguments
 
ControllerContext $controllerContext
 
ConfigurationManagerInterface $configurationManager
 

Private Attributes

ExtbaseTeam BlogExample Domain Repository BlogRepository $blogRepository
 
TYPO3 CMS Extbase Persistence Generic Mapper DataMapFactory $dataMapFactory
 

Detailed Description

BlogController

Definition at line 33 of file BlogController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ detailsAction()

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

◆ getErrorFlashMessage()

bool ExtbaseTeam\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.

Returns
‪bool

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

Definition at line 124 of file BlogController.php.

◆ getRuntimeIdentifier()

string ExtbaseTeam\BlogExample\Controller\BlogController::getRuntimeIdentifier ( )
protected

◆ getStructure()

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

Definition at line 133 of file BlogController.php.

References TYPO3\CMS\Extbase\Reflection\ObjectAccess\getGettableProperties().

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

◆ listAction()

◆ processRequest()

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

◆ testFormAction()

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

◆ testForwardAction()

ExtbaseTeam\BlogExample\Controller\BlogController::testForwardAction (   $blogPost)
Parameters
\ExtbaseTeam\BlogExample\Domain\Model\Post$blogPost‪// needs to be imported entirely, else the annotationChecker test script complains @IgnoreValidation("blogPost")

Definition at line 81 of file BlogController.php.

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

◆ testForwardTargetAction()

ExtbaseTeam\BlogExample\Controller\BlogController::testForwardTargetAction (   $blogPost)
Parameters
\ExtbaseTeam\BlogExample\Domain\Model\Post$blogPost

Definition at line 89 of file BlogController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\htmlResponse().

◆ testRelatedObjectAction()

ExtbaseTeam\BlogExample\Controller\BlogController::testRelatedObjectAction (   $blog,
  $blogPost = null 
)
Parameters
\ExtbaseTeam\BlogExample\Domain\Model\Blog$blog
\ExtbaseTeam\BlogExample\Domain\Model\Post$blogPost

Definition at line 98 of file BlogController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\htmlResponse().

Member Data Documentation

◆ $blogRepository

ExtbaseTeam BlogExample Domain Repository BlogRepository ExtbaseTeam\BlogExample\Controller\BlogController::$blogRepository
private

◆ $dataMapFactory

TYPO3 CMS Extbase Persistence Generic Mapper DataMapFactory ExtbaseTeam\BlogExample\Controller\BlogController::$dataMapFactory
private

◆ $defaultViewObjectName

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

Definition at line 41 of file BlogController.php.