本文整理汇总了PHP中ErrMsgText类的典型用法代码示例。如果您正苦于以下问题:PHP ErrMsgText类的具体用法?PHP ErrMsgText怎么用?PHP ErrMsgText使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ErrMsgText类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($errcode, $a1 = null, $a2 = null, $a3 = null, $a4 = null, $a5 = null)
{
// make sure everything is assigned properly
$errtxt = new ErrMsgText();
JpGraphError::SetTitle('JpGraph Error: ' . $errcode);
parent::__construct($errtxt->Get($errcode, $a1, $a2, $a3, $a4, $a5), 0);
}
示例2: die
die($msg);
} else {
define('TTF_DIR', $sroot . '/fonts/');
}
} else {
define('TTF_DIR', '/usr/share/fonts/truetype/');
}
}
//
// Setup path for MultiByte TTF fonts (japanese, chinese etc.)
//
if (!defined('MBTTF_DIR')) {
if (strstr(PHP_OS, 'WIN')) {
$sroot = getenv('SystemRoot');
if (empty($sroot)) {
$t = new ErrMsgText();
$msg = $t->Get(12, $file, $lineno);
die($msg);
} else {
define('MBTTF_DIR', $sroot . '/fonts/');
}
} else {
define('MBTTF_DIR', '/usr/share/fonts/truetype/');
}
}
//
// Check minimum PHP version
//
function CheckPHPVersion($aMinVersion)
{
list($majorC, $minorC, $editC) = preg_split('/[\\/.-]/', PHP_VERSION);
示例3: Headers
function Headers()
{
// In case we are running from the command line with the client version of
// PHP we can't send any headers.
$sapi = php_sapi_name();
if ($sapi == 'cli') {
return;
}
// These parameters are set by headers_sent() but they might cause
// an undefined variable error unless they are initilized
$file = '';
$lineno = '';
if (headers_sent($file, $lineno)) {
$file = basename($file);
$t = new ErrMsgText();
$msg = $t->Get(10, $file, $lineno);
die($msg);
}
if ($this->expired) {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
}
header("Content-type: image/{$this->img_format}");
}
示例4: RaiseL
function RaiseL($errnbr, $a1 = null, $a2 = null, $a3 = null, $a4 = null, $a5 = null)
{
global $__jpg_err;
$t = new ErrMsgText();
$msg = $t->Get($errnbr, $a1, $a2, $a3, $a4, $a5);
$tmp = new $__jpg_err();
$tmp->Raise($msg);
}
示例5: RaiseL
public static function RaiseL($errnbr, $a1 = null, $a2 = null, $a3 = null, $a4 = null, $a5 = null)
{
$t = new ErrMsgText();
$msg = $t->Get($errnbr, $a1, $a2, $a3, $a4, $a5);
self::$__jpg_err->Raise($msg);
}