本文整理匯總了PHP中TCPDF_STATIC::intToRoman方法的典型用法代碼示例。如果您正苦於以下問題:PHP TCPDF_STATIC::intToRoman方法的具體用法?PHP TCPDF_STATIC::intToRoman怎麽用?PHP TCPDF_STATIC::intToRoman使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TCPDF_STATIC
的用法示例。
在下文中一共展示了TCPDF_STATIC::intToRoman方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: putHtmlListBullet
//.........這裏部分代碼省略.........
$this->x -= $lspace;
}
$imgtype = strtolower($img[1]);
$prev_y = $this->y;
switch ($imgtype) {
case 'svg':
$this->ImageSVG($img[4], $this->x, $this->y + ($this->lasth - $img[3]) / 2, $img[2], $img[3], '', 'T', '', 0, false);
break;
case 'ai':
case 'eps':
$this->ImageEps($img[4], $this->x, $this->y + ($this->lasth - $img[3]) / 2, $img[2], $img[3], '', true, 'T', '', 0, false);
break;
default:
$this->Image($img[4], $this->x, $this->y + ($this->lasth - $img[3]) / 2, $img[2], $img[3], $img[1], '', 'T', false, 300, '', false, false, 0, false, false, false);
break;
}
$this->y = $prev_y;
break;
// ordered types
// $this->listcount[$this->listnum];
// $textitem
// ordered types
// $this->listcount[$this->listnum];
// $textitem
case '1':
case 'decimal':
$textitem = $this->listcount[$this->listnum];
break;
case 'decimal-leading-zero':
$textitem = sprintf('%02d', $this->listcount[$this->listnum]);
break;
case 'i':
case 'lower-roman':
$textitem = strtolower(TCPDF_STATIC::intToRoman($this->listcount[$this->listnum]));
break;
case 'I':
case 'upper-roman':
$textitem = TCPDF_STATIC::intToRoman($this->listcount[$this->listnum]);
break;
case 'a':
case 'lower-alpha':
case 'lower-latin':
$textitem = chr(97 + $this->listcount[$this->listnum] - 1);
break;
case 'A':
case 'upper-alpha':
case 'upper-latin':
$textitem = chr(65 + $this->listcount[$this->listnum] - 1);
break;
case 'lower-greek':
$textitem = TCPDF_FONTS::unichr(945 + $this->listcount[$this->listnum] - 1, $this->isunicode);
break;
/*
// Types to be implemented (special handling)
case 'hebrew': {
break;
}
case 'armenian': {
break;
}
case 'georgian': {
break;
}
case 'cjk-ideographic': {
break;
}