mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
- Added a 'pre' method for transparent support of the CLI (Command Line Interface) mode.
SVN:trunk[942]
This commit is contained in:
@@ -46,6 +46,11 @@ class CLIPage
|
||||
echo $sText."\n";
|
||||
}
|
||||
|
||||
public function pre($sText)
|
||||
{
|
||||
echo $sText."\n";
|
||||
}
|
||||
|
||||
public function add_comment($sText)
|
||||
{
|
||||
echo "#".$sText."\n";
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user