/opt/alt/php55/usr/share/pear/ezc/ConsoleTools
NameSizeModeActions
dialog/-0755rm
exceptions/-0755rm
input/-0755rm
interfaces/-0755rm
options/-0755rm
structs/-0755rm
table/-0755rm
tools/-0755rm
console_autoload.php65160644editdlrm
dialog_viewer.php18220644editdlrm
input.php451270644editdlrm
output.php191290644editdlrm
progressbar.php142500644editdlrm
progressmonitor.php59740644editdlrm
statusbar.php74390644editdlrm
table.php287090644editdlrm
Edit: /opt/alt/php55/usr/share/pear/ezc/ConsoleTools/dialog_viewer.php (1822B)
* // Instatiate dialog in $dialog ... * ezcConsoleDialogViewer::displayDialog( $dialog ); * * * For implementing a custom dialog, the method {@link readLine()} method can be * used to read a line of input from the user. * * @package ConsoleTools * @version 1.6.1 */ class ezcConsoleDialogViewer { /** * Displays a dialog and returns a valid result from it. * This methods displays a dialog in a loop, until it received a valid * result from it and returns this result. * * @param ezcConsoleDialog $dialog The dialog to display. * @return mixed The result from this dialog. */ public static function displayDialog( ezcConsoleDialog $dialog ) { do { $dialog->display(); } while ( $dialog->hasValidResult() === false ); return $dialog->getResult(); } /** * Returns a line from STDIN. * The returned line is fully trimmed. * * @return string * @throws ezcConsoleDialogAbortException * if the user closes STDIN using -D. */ public static function readLine() { $res = trim( fgets( STDIN ) ); if ( feof( STDIN ) ) { throw new ezcConsoleDialogAbortException(); } return $res; } } ?>