Hacked By AnonymousFox

Current Path : /proc/thread-self/root/opt/alt/php55/usr/share/doc/pear/ConsoleTools/docs/
Upload File :
Current File : //proc/thread-self/root/opt/alt/php55/usr/share/doc/pear/ConsoleTools/docs/example_question_dialog_collection_full.php

<?php

require_once "Base/src/base.php";

function __autoload( $className )
{
    ezcBase::autoload( $className );
}

$out = new ezcConsoleOutput();

$opts = new ezcConsoleQuestionDialogOptions();
$opts->text = "Do you want to proceed?";
$opts->showResults = true;
$opts->validator = new ezcConsoleQuestionDialogCollectionValidator(
    array( "y", "n" ),
    "n",
    ezcConsoleQuestionDialogCollectionValidator::CONVERT_LOWER
);

$dialog = new ezcConsoleQuestionDialog( $out, $opts );

echo "The user decided to " . ( ezcConsoleDialogViewer::displayDialog( $dialog ) === "n" ? "not " : "" ) . "proceed.\n";

?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox