var $type = 'CLI';
var $lp = ''; // line prefix
- var $omode = 'plain';
var $params = array();
var $term = array(
'bold' => '',
function displayLine($text)
{
- trigger_error("Frontend::displayLine deprecated", E_USER_ERROR);
+ trigger_error("PEAR_Frontend_CLI::displayLine deprecated", E_USER_ERROR);
}
function _displayLine($text)
function display($text)
{
- trigger_error("Frontend::display deprecated", E_USER_ERROR);
+ trigger_error("PEAR_Frontend_CLI::display deprecated", E_USER_ERROR);
}
function _display($text)
function displayHeading($title)
{
- trigger_error("Frontend::displayHeading deprecated", E_USER_ERROR);
+ trigger_error("PEAR_Frontend_CLI::displayHeading deprecated", E_USER_ERROR);
}
function _displayHeading($title)
function userConfirm($prompt, $default = 'yes')
{
- trigger_error("Frontend::userConfirm not yet converted", E_USER_ERROR);
+ trigger_error("PEAR_Frontend_CLI::userConfirm not yet converted", E_USER_ERROR);
static $positives = array('y', 'yes', 'on', '1');
static $negatives = array('n', 'no', 'off', '0');
print "$this->lp$prompt [$default] : ";
function startTable($params = array())
{
- trigger_error("Frontend::startTable deprecated", E_USER_ERROR);
+ trigger_error("PEAR_Frontend_CLI::startTable deprecated", E_USER_ERROR);
}
function _startTable($params = array())
{
- $this->omode = 'table';
$params['table_data'] = array();
$params['widest'] = array(); // indexed by column
$params['highest'] = array(); // indexed by row
function tableRow($columns, $rowparams = array(), $colparams = array())
{
- trigger_error("Frontend::tableRow deprecated", E_USER_ERROR);
+ trigger_error("PEAR_Frontend_CLI::tableRow deprecated", E_USER_ERROR);
}
function _tableRow($columns, $rowparams = array(), $colparams = array())
function endTable()
{
- trigger_error("Frontend::tableRow deprecated", E_USER_ERROR);
+ trigger_error("PEAR_Frontend_CLI::tableRow deprecated", E_USER_ERROR);
}
function _endTable()
{
- $this->omode = '';
extract($this->params);
if (!empty($caption)) {
$this->_displayHeading($caption);