helpers/TbHtml.php
public static function pager(array $links, $htmlOptions = array())
    {
        if (!empty($links)) {
            self::addCssClass('pager', $htmlOptions);
            $output = self::openTag('ul', $htmlOptions);
            foreach ($links as $itemOptions) {
                // todo: consider removing the support for htmlOptions.
                $options = TbArray::popValue('htmlOptions', $itemOptions, array());
                if (!empty($options)) {
                    $itemOptions = TbArray::merge($options, $itemOptions);
                }
                $label = TbArray::popValue('label', $itemOptions, '');
                $url = TbArray::popValue('url', $itemOptions, false);
                $output .= self::pagerLink($label, $url, $itemOptions);
            }
            $output .= '</ul>';
            return $output;
        }
        return '';
    }
public static function pager(array $links, $htmlOptions = array())
    {
        if (!empty($links)) {
            self::addCssClass('pager', $htmlOptions);
            $output = self::openTag('ul', $htmlOptions);
            foreach ($links as $itemOptions) {
                // todo: consider removing the support for htmlOptions.
                $options = TbArray::popValue('htmlOptions', $itemOptions, array());
                if (!empty($options)) {
                    $itemOptions = TbArray::merge($options, $itemOptions);
                }
                $label = TbArray::popValue('label', $itemOptions, '');
                $url = TbArray::popValue('url', $itemOptions, false);
                $output .= self::pagerLink($label, $url, $itemOptions);
            }
            $output .= '</ul>';
            return $output;
        }
        return '';
    }
public static function pager ( array $ links , $ htmlOptions = array ( ) ) { if ( ! empty ( $ links ) ) { self :: addCssClass ( 'pager' , $ htmlOptions ) ; $ output = self :: openTag ( 'ul' , $ htmlOptions ) ; foreach ( $ links as $ itemOptions ) { // todo: consider removing the support for htmlOptions.
 $ options = TbArray :: popValue ( 'htmlOptions' , $ itemOptions , array ( ) ) ; if ( ! empty ( $ options ) ) { $ itemOptions = TbArray :: merge ( $ options , $ itemOptions ) ; } $ label = TbArray :: popValue ( 'label' , $ itemOptions , '' ) ; $ url = TbArray :: popValue ( 'url' , $ itemOptions , false ) ; $ output .= self :: pagerLink ( $ label , $ url , $ itemOptions ) ; } $ output .= '</ul>' ; return $ output ; } return '' ; }
Generates a pager.
@param array $links the pager buttons.
@param array $htmlOptions additional HTML attributes.
@return string the generated pager.
Generates a pager .