This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/application/classes/systemmessage.php

23 lines
612 B
PHP
Raw Normal View History

2011-01-17 05:33:55 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
2011-03-03 23:06:18 +00:00
/**
* PTA System Messages.
*
* @package PTA
* @subpackage TSM
* @category Helpers
* @author Deon George
* @copyright (c) 2010 phpTSMadmin Development Team
* @license http://phptsmadmin.sf.net/license.html
*/
class SystemMessage extends lnApp_SystemMessage {
static public function TSM_Error($error,$sql) {
SystemMessage::add(array(
'title'=>_('Error while talking to TSM'),
2011-08-31 21:36:33 +00:00
'body'=>_('Running SQL').': <b>'.$sql.'</b><br/><br/>'.(is_array($error) ? implode('<br/>',$error) : $error),
2011-03-03 23:06:18 +00:00
'type'=>'error',
));
}
}
2011-01-17 05:33:55 +00:00
?>