phpBB API Documentation
Class

phpbb\help\manager

class manager

Class help page manager

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
public __construct(dispatcher_interface $dispatcher, language $language, template $template)

Constructor

Parameters

dispatcher_interface $dispatcher
language $language
template $template

at line 54
public 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
public 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
public bool switched_column()

Returns whether the block titles switched side

Return Value

bool