PHP Classes

File: examples/time.php

Recommend this page to a friend!
  Classes of Michele Brodoloni   PHP Dialog   examples/time.php   Download  
File: examples/time.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: 12 years ago
Size: 302 bytes
 

Contents

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

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

$dialog = Dialog::factory('time', array(
   
'backtitle' => 'Timebox'
));

$dialog->setCaption('Time:')
       ->
setHour(16)
       ->
setMinute(22)
       ->
setSecond(38);

// $dialog->setTime('16:22:38');

$res = $dialog->show();
var_dump($res);