- Added a 'pre' method for transparent support of the CLI (Command Line Interface) mode.

SVN:trunk[942]
This commit is contained in:
Denis Flaven
2010-11-12 16:28:17 +00:00
parent 1a92a7b4f3
commit effa212261
2 changed files with 13 additions and 0 deletions

View File

@@ -46,6 +46,11 @@ class CLIPage
echo $sText."\n";
}
public function pre($sText)
{
echo $sText."\n";
}
public function add_comment($sText)
{
echo "#".$sText."\n";

View File

@@ -103,6 +103,14 @@ class WebPage
$this->add($this->GetP($s_html));
}
/**
* Add a pre-formatted text to the body of the page
*/
public function pre($s_html)
{
$this->add('<pre>'.$s_html.'</pre>');
}
/**
* Add a paragraph to the body of the page
*/