UnavailableTreeBrowser

final readonly class \TYPO3\CMS\Core\Console\TreeBrowser\UnavailableTreeBrowser

Implements
TreeBrowserInterface

The tree browser without EXT:lowlevel: it explains that the package is needed.

Table of Contents

Interfaces

TreeBrowserInterface
Lets a person browse a tree in the terminal and returns the selection.

Methods

problem()  : string
Why the browser cannot run here, or null. Commands exit with code 2 if there is a reason.
run()  : BrowserResult|null
Runs until the browser is left with "q", or returns null after Ctrl-C.

Methods

problem()

Why the browser cannot run here, or null. Commands exit with code 2 if there is a reason.

public problem(InputInterface $input, OutputInterface $output[, string $alternative = '' ]) : string

Parameters

$input : InputInterface
$output : OutputInterface
$alternative : string = ''

appended to the reason, e.g. the options to use instead

Return values

string

run()

Runs until the browser is left with "q", or returns null after Ctrl-C.

public run(BrowsableTree $tree, InputInterface $input, OutputInterface $output[, array $start = [] ][, bool $labels = false ][, string $language = 'en' ]) : BrowserResult|null

Call it only if problem() returned null.

Parameters

$tree : BrowsableTree
$input : InputInterface
$output : OutputInterface
$start : array = []

keys of the level to start on, top-level identifier first

$labels : bool = false

whether label references start translated, if the tree supports labels

$language : string = 'en'

the language labels are translated to

Return values

BrowserResult|null
On this page