本文整理汇总了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;
}