23 lines
582 B
PHP
23 lines
582 B
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
* 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'),
|
|
'body'=>_('Running SQL').': <b>'.$sql.'</b><br/><br/>'.implode('<br/>',$error),
|
|
'type'=>'error',
|
|
));
|
|
}
|
|
}
|
|
?>
|