‪TYPO3CMS  9.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\AbstractController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Public Member Functions

 listAction ()
 
 detailsAction (Blog $blog=null)
 
string testFormAction ()
 
 testForwardAction ($blogPost)
 
string testForwardTargetAction ($blogPost)
 
string testRelatedObjectAction ($blog, $blogPost=null)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request, \TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 injectCacheService (\TYPO3\CMS\Extbase\Service\CacheService $cacheService)
 
 injectMvcPropertyMappingConfigurationService (\TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request, \TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
 injectSignalSlotDispatcher (\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (\TYPO3\CMS\Extbase\Validation\ValidatorResolver $validatorResolver)
 
ControllerContext getControllerContext ()
 
 __construct ()
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 addFlashMessage ($messageBody, $messageTitle='', $severity=\TYPO3\CMS\Core\Messaging\AbstractMessage::OK, $storeInSession=true)
 
bool canProcessRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request)
 
 forward ($actionName, $controllerName=null, $extensionName=null, array $arguments=null)
 
 throwStatus ($statusCode, $statusMessage=null, $content=null)
 
 initializeControllerArgumentsBaseValidators ()
 

Protected Member Functions

bool getErrorFlashMessage ()
 
array getStructure ($iterator)
 
string getRuntimeIdentifier ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 renderAssetsForRequest ($request)
 
 initializeActionMethodArguments ()
 
 initializeActionMethodValidators ()
 
string resolveActionMethodName ()
 
 callActionMethod ()
 
 emitBeforeCallActionMethodSignal (array $preparedArguments)
 
ViewInterface resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
array getViewProperty ($extbaseFrameworkConfiguration, $setting)
 
mixed resolveViewObjectName ()
 
 initializeView (ViewInterface $view)
 
 initializeAction ()
 
string errorAction ()
 
 clearCacheOnError ()
 
 addErrorFlashMessage ()
 
 forwardToReferringRequest ()
 
string getFlattenedValidationErrorMessage ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
TYPO3 CMS Extbase Mvc Controller ControllerContext buildControllerContext ()
 
 redirect ($actionName, $controllerName=null, $extensionName=null, array $arguments=null, $pageUid=null, $delay=0, $statusCode=303)
 
 redirectToUri ($uri, $delay=0, $statusCode=303)
 
string addBaseUriIfNecessary ($uri)
 
 mapRequestArgumentsToControllerArguments ()
 

Protected Attributes

ExtbaseTeam BlogExample Domain Repository BlogRepository $blogRepository
 
string $defaultViewObjectName = \TYPO3\CMS\Extbase\Mvc\View\JsonView::class
 
TYPO3 CMS Extbase Persistence Generic Mapper DataMapFactory $dataMapFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
TYPO3 CMS Extbase Reflection ReflectionService $reflectionService
 
TYPO3 CMS Extbase Service CacheService $cacheService
 
ViewInterface $view
 
string $namespacesViewObjectNamePattern = '@vendor\@extension\View\@controller\@action@format'
 
array $viewFormatToObjectNameMap = array( )
 
string $defaultViewObjectName = \TYPO3\CMS\Fluid\View\TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
TYPO3 CMS Extbase Mvc Controller MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
TYPO3 CMS Extbase Mvc Request $request
 
TYPO3 CMS Extbase Mvc Response $response
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
 
TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase Mvc Web Routing UriBuilder $uriBuilder
 
string $extensionName
 
array $settings
 
TYPO3 CMS Extbase Mvc RequestInterface $request
 
TYPO3 CMS Extbase Mvc ResponseInterface $response
 
TYPO3 CMS Extbase Validation ValidatorResolver $validatorResolver
 
TYPO3 CMS Extbase Mvc Controller Arguments $arguments
 
array $supportedRequestTypes = array( \TYPO3\CMS\Extbase\Mvc\Request::class )
 
TYPO3 CMS Extbase Mvc Controller ControllerContext $controllerContext
 
ConfigurationManagerInterface $configurationManager
 

Additional Inherited Members

- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
static array getActionMethodParameters ($objectManager)
 

Detailed Description

BlogController

Definition at line 25 of file BlogController.php.

Member Function Documentation

◆ detailsAction()

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

Definition at line 49 of file BlogController.php.

◆ 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 114 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 123 of file BlogController.php.

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

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

◆ listAction()

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

◆ processRequest()

ExtbaseTeam\BlogExample\Controller\BlogController::processRequest ( \TYPO3\CMS\Extbase\Mvc\RequestInterface  $request,
\TYPO3\CMS\Extbase\Mvc\ResponseInterface  $response 
)
Parameters
\TYPO3\CMS\Extbase\Mvc\RequestInterface$request
\TYPO3\CMS\Extbase\Mvc\ResponseInterface$response
Exceptions

Definition at line 96 of file BlogController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\$request, TYPO3\CMS\Extbase\Mvc\Controller\ActionController\$response, and ExtbaseTeam\BlogExample\Controller\BlogController\getRuntimeIdentifier().

◆ testFormAction()

string ExtbaseTeam\BlogExample\Controller\BlogController::testFormAction ( )
Returns
‪string

Definition at line 57 of file BlogController.php.

◆ 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 67 of file BlogController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\AbstractController\forward().

◆ testForwardTargetAction()

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

Definition at line 76 of file BlogController.php.

◆ testRelatedObjectAction()

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

Definition at line 86 of file BlogController.php.

Member Data Documentation

◆ $blogRepository

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

@Extbase\Inject

Definition at line 30 of file BlogController.php.

◆ $dataMapFactory

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

@Extbase\Inject

Definition at line 39 of file BlogController.php.

◆ $defaultViewObjectName

string ExtbaseTeam\BlogExample\Controller\BlogController::$defaultViewObjectName = \TYPO3\CMS\Extbase\Mvc\View\JsonView::class
protected

Definition at line 34 of file BlogController.php.