BlogViewHelper extends ViewHelper
in package

This is the BlogViewHelper class.

The purpose of this class is to facilitate to Twig the generation of the blog's view output (providing some useful methods).
This class extends ViewHelper, see this class.

Tags
see
ViewHelper
see
UserViewHelper::subscribeMacro()

Table of Contents

$languageSheet  : Language|null
$session  : Session|null
$theme  : Theme|null
__construct()  : mixed
bloggerInformationMacro() This method merges the given arguments, calculates and returns the view parameters for the blogger information output.  : array<string|int, mixed>
commentsFormMacro() This method merges the given arguments, calculates and returns the view parameters for the blog post comments form.  : array<string|int, mixed>
commentsMacro() This method merges the given arguments, calculates and returns the view parameters for the comments.  : array<string|int, mixed>
getApplicationTaxesIncluded() This method returns the setting of 'show taxes included'.  : bool
mergeArguments() This method merges macro arguments with macro associated class properties by reference.  : void
subscribeFormMacro() This method merges the given arguments, calculates and returns the view parameters for the subscribe form.  : array<string|int, mixed>
tagsCloudMacro() This method merges the given arguments, calculates and returns the view parameters for the tags cloud output.  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(Language $languageSheet, Theme $theme, Session|null $session) : mixed
Parameters
$languageSheet : Language
$theme : Theme
$session : Session|null
Return values
mixed

bloggerInformationMacro()

This method merges the given arguments, calculates and returns the view parameters for the blogger information output.

public bloggerInformationMacro([array<string|int, mixed> $arguments = [] ]) : array<string|int, mixed>

The array keys of the returned parameters are:

  • tags
  • showLabel
Parameters
$arguments : array<string|int, mixed> = []

Twig macro arguments

Return values
array<string|int, mixed>

commentsFormMacro()

This method merges the given arguments, calculates and returns the view parameters for the blog post comments form.

public commentsFormMacro([array<string|int, mixed> $arguments = [] ]) : array<string|int, mixed>

The array keys of the returned parameters are:

  • form
  • blogSettings
  • output
  • showTitle
Parameters
$arguments : array<string|int, mixed> = []

Twig macro arguments

Return values
array<string|int, mixed>

commentsMacro()

This method merges the given arguments, calculates and returns the view parameters for the comments.

public commentsMacro([array<string|int, mixed> $arguments = [] ]) : array<string|int, mixed>

The array keys of the returned parameters are:

  • comments
Parameters
$arguments : array<string|int, mixed> = []

Twig macro arguments

Return values
array<string|int, mixed>

getApplicationTaxesIncluded()

This method returns the setting of 'show taxes included'.

public static getApplicationTaxesIncluded() : bool
Return values
bool

mergeArguments()

This method merges macro arguments with macro associated class properties by reference.

public static mergeArguments(mixed &$classObject[, array<string|int, mixed> $arguments = [] ]) : void
Parameters
$classObject : mixed
$arguments : array<string|int, mixed> = []
Return values
void

subscribeFormMacro()

This method merges the given arguments, calculates and returns the view parameters for the subscribe form.

public subscribeFormMacro([array<string|int, mixed> $arguments = [] ]) : array<string|int, mixed>

The array keys of the returned parameters are:

  • form
  • showLabel
  • showPlaceholder
  • disableValidationMessages
  • useCaptcha
  • showCaptchaLabel
Parameters
$arguments : array<string|int, mixed> = []

Twig macro arguments

Return values
array<string|int, mixed>

tagsCloudMacro()

This method merges the given arguments, calculates and returns the view parameters for the tags cloud output.

public tagsCloudMacro([array<string|int, mixed> $arguments = [] ]) : array<string|int, mixed>

The array keys of the returned parameters are:

  • tags
  • showLabel
Parameters
$arguments : array<string|int, mixed> = []

Twig macro arguments

Return values
array<string|int, mixed>

Search results