public static function buildPaginationElement($total_entries = 0, $total_pages = 0, $entries_per_page = 1, $current_page = 1)
    {
        $pageinfo = new XMLElement('pagination');

        $pageinfo->setAttribute('total-entries', $total_entries);
        $pageinfo->setAttribute('total-pages', $total_pages);
        $pageinfo->setAttribute('entries-per-page', $entries_per_page);
        $pageinfo->setAttribute('current-page', $current_page);

        return $pageinfo;
    }
public static function buildPaginationElement($total_entries = 0, $total_pages = 0, $entries_per_page = 1, $current_page = 1)
    {
        $pageinfo = new XMLElement('pagination');

        $pageinfo->setAttribute('total-entries', $total_entries);
        $pageinfo->setAttribute('total-pages', $total_pages);
        $pageinfo->setAttribute('entries-per-page', $entries_per_page);
        $pageinfo->setAttribute('current-page', $current_page);

        return $pageinfo;
    }
public static function buildPaginationElement ( $ total_entries = 0 , $ total_pages = 0 , $ entries_per_page = 1 , $ current_page = 1 ) { $ pageinfo = new XMLElement ( 'pagination' ) ; $ pageinfo -> setAttribute ( 'total-entries' , $ total_entries ) ; $ pageinfo -> setAttribute ( 'total-pages' , $ total_pages ) ; $ pageinfo -> setAttribute ( 'entries-per-page' , $ entries_per_page ) ; $ pageinfo -> setAttribute ( 'current-page' , $ current_page ) ; return $ pageinfo ; }
Construct an XML fragment that describes a pagination structure.

@param integer $total_entries (optional)
the total number of entries that this structure is paginating. this
defaults to 0.
@param integer $total_pages (optional)
the total number of pages within the pagination structure. this defaults
to 0.
@param integer $entries_per_page (optional)
the number of entries per page. this defaults to 1.
@param integer $current_page (optional)
the current page within the total number of pages within this pagination
structure. this defaults to 1.
@return XMLElement
the constructed XML fragment.
Construct an XML fragment that describes a pagination structure .