ItemRange Class

ItemRange Class — Represents a range of items which optionally contain items.

Members

bool all_subitems_displayed

True if the subitems in this range represent the entire set. In this case, all of the URL members are blank.

int current

The currently-active item.

int from_subitem

The index of the first subitem in this range.

int num_subitems_displayed

The number of subitems in this range.

int to_subitem

The index of the last subitem in this range.

int total

The total number of items that are navigable to.

int total_subitems

The number of subitems.

string url_first

(Read-only) URL for the 'first' link. Blank if already on the first page.

string url_last

(Read-only) URL for the 'last' link. Blank if already on the last page.

string url_next

(Read-only) URL for the 'next' link. Blank if there isn't a next URL.

string url_prev

(Read-only) URL for the 'previous' link. Blank if there isn't a previous URL.

Methods

print() : void

Prints the item range links

print(string labeltext) : void

Prints the item range links with the given $labeltext

url_of(int n) : string

Returns the URL to use to link to the nth item