src/Html2Pdf.php
protected function _listeGetLi()
    {
        $im = $this->_defList[count($this->_defList)-1]['img'];
        $st = $this->_defList[count($this->_defList)-1]['style'];
        $nb = $this->_defList[count($this->_defList)-1]['nb'];
        $up = (substr($st, 0, 6) === 'upper-');

        if ($im) {
            return array(false, false, $im);
        }

        switch ($st) {
            case 'none':
                return array('helvetica', true, ' ');

            case 'upper-alpha':
            case 'lower-alpha':
                $str = '';
                while ($nb>26) {
                    $str = chr(96+$nb%26).$str;
                    $nb = floor($nb/26);
                }
                $str = chr(96+$nb).$str;

                return array('helvetica', false, ($up ? strtoupper($str) : $str).'.');

            case 'upper-roman':
            case 'lower-roman':
                $str = $this->_listeArab2Rom($nb);

                return array('helvetica', false, ($up ? strtoupper($str) : $str).'.');

            case 'decimal':
                return array('helvetica', false, $nb.'.');

            case 'square':
                return array('zapfdingbats', true, chr(110));

            case 'circle':
                return array('zapfdingbats', true, chr(109));

            case 'disc':
            default:
                return array('zapfdingbats', true, chr(108));
        }
    }
protected function _listeGetLi()
    {
        $im = $this->_defList[count($this->_defList)-1]['img'];
        $st = $this->_defList[count($this->_defList)-1]['style'];
        $nb = $this->_defList[count($this->_defList)-1]['nb'];
        $up = (substr($st, 0, 6) === 'upper-');

        if ($im) {
            return array(false, false, $im);
        }

        switch ($st) {
            case 'none':
                return array('helvetica', true, ' ');

            case 'upper-alpha':
            case 'lower-alpha':
                $str = '';
                while ($nb>26) {
                    $str = chr(96+$nb%26).$str;
                    $nb = floor($nb/26);
                }
                $str = chr(96+$nb).$str;

                return array('helvetica', false, ($up ? strtoupper($str) : $str).'.');

            case 'upper-roman':
            case 'lower-roman':
                $str = $this->_listeArab2Rom($nb);

                return array('helvetica', false, ($up ? strtoupper($str) : $str).'.');

            case 'decimal':
                return array('helvetica', false, $nb.'.');

            case 'square':
                return array('zapfdingbats', true, chr(110));

            case 'circle':
                return array('zapfdingbats', true, chr(109));

            case 'disc':
            default:
                return array('zapfdingbats', true, chr(108));
        }
    }
protected function _listeGetLi ( ) { $ im = $ this -> _defList [ count ( $ this -> _defList ) - 1 ] [ 'img' ] ; $ st = $ this -> _defList [ count ( $ this -> _defList ) - 1 ] [ 'style' ] ; $ nb = $ this -> _defList [ count ( $ this -> _defList ) - 1 ] [ 'nb' ] ; $ up = ( substr ( $ st , 0 , 6 ) === 'upper-' ) ; if ( $ im ) { return array ( false , false , $ im ) ; } switch ( $ st ) { case 'none' : return array ( 'helvetica' , true , ' ' ) ; case 'upper-alpha' : case 'lower-alpha' : $ str = '' ; while ( $ nb > 26 ) { $ str = chr ( 96 + $ nb % 26 ) . $ str ; $ nb = floor ( $ nb / 26 ) ; } $ str = chr ( 96 + $ nb ) . $ str ; return array ( 'helvetica' , false , ( $ up ? strtoupper ( $ str ) : $ str ) . '.' ) ; case 'upper-roman' : case 'lower-roman' : $ str = $ this -> _listeArab2Rom ( $ nb ) ; return array ( 'helvetica' , false , ( $ up ? strtoupper ( $ str ) : $ str ) . '.' ) ; case 'decimal' : return array ( 'helvetica' , false , $ nb . '.' ) ; case 'square' : return array ( 'zapfdingbats' , true , chr ( 110 ) ) ; case 'circle' : return array ( 'zapfdingbats' , true , chr ( 109 ) ) ; case 'disc' : default : return array ( 'zapfdingbats' , true , chr ( 108 ) ) ; } }
get the information of the li on the current level

@access protected
@return array(fontName, small size, string)
get the information of the li on the current level