PHP Classes

File: examples/msgbox.php

Recommend this page to a friend!
  Classes of Michele Brodoloni   PHP Dialog   examples/msgbox.php   Download  
File: examples/msgbox.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: Added phpdoc-style comments to source code (most of)
Added a README file with installation instructions
Made some fixes into main class code
Made some changes to the example scripts and checked if they work

Date: 11 years ago
Size: 258 bytes
 

Contents

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

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

$dialog = Dialog::factory('msgbox', array(
   
'backtitle' => 'Example: Message Box'
));

$dialog->setCaption('This is a sample message Box')
       ->
setHeight(6)
       ->
setWidth(35)
       ->
show();