Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/pause.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michele Brodoloni  >  PHP Dialog  >  examples/pause.php  >  Download  
File: examples/pause.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Dialog
Create console based UIs with the dialog program
Author: By
Last change:
Date: 2 years ago
Size: 327 bytes
 

Contents

Class file image Download
#!/usr/bin/php
<?php

require_once '../include/class.dialog.php';

$dialog Dialog::factory('pause', array(
    
'backtitle' => 'Pause'
));

$dialog->setWindowSize(308)
       ->
setCaption("Please wait...")
       ->
setSeconds(5);

$res $dialog->show();

if (
$res === false) {
    die(
"You have hit EXIT or ESC\n");
}

var_dump($res);