protected function getUserChoice($listTitle, $selectMessage, $menuItems)
    {
        $menuOptions = new \ezcConsoleMenuDialogOptions(
            array(
                'text' => $listTitle,
                'selectText' => $selectMessage,
                'validator' => new DialogMenuValidator($menuItems)
            )
        );

        $menuDialog = new \ezcConsoleMenuDialog($this->output, $menuOptions);
        do {
            $menuDialog->display();
        } while ($menuDialog->hasValidResult() === false);

        return $menuDialog->getResult();
    }
protected function getUserChoice($listTitle, $selectMessage, $menuItems)
    {
        $menuOptions = new \ezcConsoleMenuDialogOptions(
            array(
                'text' => $listTitle,
                'selectText' => $selectMessage,
                'validator' => new DialogMenuValidator($menuItems)
            )
        );

        $menuDialog = new \ezcConsoleMenuDialog($this->output, $menuOptions);
        do {
            $menuDialog->display();
        } while ($menuDialog->hasValidResult() === false);

        return $menuDialog->getResult();
    }
protected function getUserChoice ( $ listTitle , $ selectMessage , $ menuItems ) { $ menuOptions = new \ ezcConsoleMenuDialogOptions ( array ( 'text' => $ listTitle , 'selectText' => $ selectMessage , 'validator' => new DialogMenuValidator ( $ menuItems ) ) ) ; $ menuDialog = new \ ezcConsoleMenuDialog ( $ this -> output , $ menuOptions ) ; do { $ menuDialog -> display ( ) ; } while ( $ menuDialog -> hasValidResult ( ) === false ) ; return $ menuDialog -> getResult ( ) ; }
Display a Dialog menu, and retrieve the user selection

@param  string $listTitle     Title of the menu dialog
@param  string $selectMessage Select option message
@param  array  $menuItems     The menu contents

@codeCoverageIgnore
@since  1.2.0
@return int The index in the menu that was selected
Display a Dialog menu and retrieve the user selection