class manager

Class help page manager

Properties

protected dispatcher_interface $dispatcher
protected language $language
protected template $template
protected bool $switched_column

Methods

__construct(dispatcher_interface $dispatcher, language $language, template $template)

Constructor

add_block(string $block_name, bool $switch_column = false, array $questions = array())

Add a new faq block

add_question(string $question, string $answer)

Add a new faq question

bool
switched_column()

Returns whether the block titles switched side

Details

at line 40
__construct(dispatcher_interface $dispatcher, language $language, template $template)

Constructor

Parameters

dispatcher_interface $dispatcher
language $language
template $template

at line 54
add_block(string $block_name, bool $switch_column = false, array $questions = array())

Add a new faq block

Parameters

string $block_name

Name or language key with the name of the block

bool $switch_column

Switch the column of the menu

array $questions

Array of frequently asked questions

at line 99
add_question(string $question, string $answer)

Add a new faq question

Parameters

string $question

Question or language key with the question of the block

string $answer

Answer or language key with the answer of the block

at line 133
bool switched_column()

Returns whether the block titles switched side

Return Value

bool