class Details extends AbstractAction

Class Details

Traits

Class CacheResponseTrait
Class DisplayActionTrait

Properties

protected ContainerInterface $container from AbstractWidgetAction
protected EventDispatcherInterface $eventDispatcher from AbstractWidgetAction
protected ACL $acl from AbstractWidgetAction
protected UserModel $user from AbstractWidgetAction
protected Translator $translator from AbstractWidgetAction
protected Modules $modules from AbstractWidgetAction
protected RequestInterface $request from AbstractWidgetAction
protected RouterInterface $router from AbstractWidgetAction
protected Validator $validator from AbstractWidgetAction
protected View $view from AbstractWidgetAction
protected SettingsInterface $config from AbstractWidgetAction
protected ApplicationPath $appPath from AbstractWidgetAction
protected Response $response from AbstractWidgetAction
protected ResultsPerPage $resultsPerPage from AbstractWidgetAction
protected Assets $assets from AbstractFrontendAction
protected Steps $breadcrumb from AbstractFrontendAction
protected Title $title from AbstractFrontendAction
protected Action $actionHelper from AbstractFrontendAction
protected array $newsSettings from AbstractAction
protected bool $commentsActive from AbstractAction
protected Date $date
protected NewsRepository $newsRepository
protected Cache $newsCache

Methods

Response
display(Response|string|array $actionResult)

Outputs the requested module controller action

string
applyTemplateAutomatically()

No description

Response
getResponse()

No description

getView()

No description

string
getContentType()

Gibt den Content-Type der anzuzeigenden Seiten zurück

$this
setContentType(string $data)

Weist der aktuell auszugebenden Seite den Content-Type zu

string
getCharset()

No description

$this
setCharset(string $charset)

No description

string|false
getContent()

Gibt den auszugebenden Seiteninhalt zurück

$this
setContent(string|false $data)

Weist dem Template den auszugebenden Inhalt zu

string
getTemplate()

Gibt das aktuell zugewiesene Template zurück

$this
setTemplate(string $template)

Setzt das Template der Seite

__construct(WidgetContext $context, Date $date, NewsRepository $newsRepository, Cache $newsCache)

Details constructor.

$this
preDispatch()

Helper function for initializing models, etc.

mixed
get(string $serviceId)

No description

string
getApplicationMode()

No description

getRequest()

No description

string
fetchLayoutViaInheritance()

No description

string
getLayout()

No description

$this
setLayout(string $layout)

No description

setCacheResponseCacheable(int $lifetime = 60)

No description

bool
disallowPageCache()

No description

array
execute(int $id)

No description

Details

in DisplayActionTrait at line 32
Response display(Response|string|array $actionResult)

Outputs the requested module controller action

Parameters

Response|string|array $actionResult

Return Value

Response

in DisplayActionTrait at line 65
abstract protected string applyTemplateAutomatically()

Return Value

string

in DisplayActionTrait at line 70
abstract protected void addCustomTemplateVarsBeforeOutput()

Return Value

void

in DisplayActionTrait at line 75
abstract protected Response getResponse()

Return Value

Response

in DisplayActionTrait at line 80
abstract protected View getView()

Return Value

View

in DisplayActionTrait at line 87
string getContentType()

Gibt den Content-Type der anzuzeigenden Seiten zurück

Return Value

string

in DisplayActionTrait at line 99
$this setContentType(string $data)

Weist der aktuell auszugebenden Seite den Content-Type zu

Parameters

string $data

Return Value

$this

in DisplayActionTrait at line 109
string getCharset()

Return Value

string

in DisplayActionTrait at line 119
$this setCharset(string $charset)

Parameters

string $charset

Return Value

$this

in DisplayActionTrait at line 131
string|false getContent()

Gibt den auszugebenden Seiteninhalt zurück

Return Value

string|false

in DisplayActionTrait at line 143
$this setContent(string|false $data)

Weist dem Template den auszugebenden Inhalt zu

Parameters

string|false $data

Return Value

$this

in DisplayActionTrait at line 155
string getTemplate()

Gibt das aktuell zugewiesene Template zurück

Return Value

string

in DisplayActionTrait at line 167
$this setTemplate(string $template)

Setzt das Template der Seite

Parameters

string $template

Return Value

$this

at line 41
__construct(WidgetContext $context, Date $date, NewsRepository $newsRepository, Cache $newsCache)

Details constructor.

Parameters

WidgetContext $context
Date $date
NewsRepository $newsRepository
Cache $newsCache

in AbstractAction at line 27
$this preDispatch()

Helper function for initializing models, etc.

Return Value

$this

Exceptions

AccessForbiddenException

in AbstractWidgetAction at line 129
mixed get(string $serviceId)

Parameters

string $serviceId

Return Value

mixed

in CacheResponseTrait at line 36
abstract protected SettingsInterface getSettings()

Return Value

SettingsInterface

in CacheResponseTrait at line 31
abstract protected string getApplicationMode()

Return Value

string

in CacheResponseTrait at line 21
abstract protected getRequest()

protected string fetchLayoutViaInheritance()

Return Value

string

in AbstractFrontendAction at line 142
string getLayout()

Return Value

string

in AbstractFrontendAction at line 151
$this setLayout(string $layout)

Parameters

string $layout

Return Value

$this

in AbstractFrontendAction at line 161
RedirectMessages redirectMessages()

Return Value

RedirectMessages

in AbstractFrontendAction at line 173
RedirectResponse redirect()

Return Value

RedirectResponse

in CacheResponseTrait at line 41
setCacheResponseCacheable(int $lifetime = 60)

Parameters

int $lifetime Cache TTL in seconds

in CacheResponseTrait at line 66
protected bool disallowPageCache()

Return Value

bool

at line 60
array execute(int $id)

Parameters

int $id

Return Value

array

Exceptions

ResultNotExistsException