This class represents the current state of a selection.
This class represents the current state of a selection. It encapsulates a single selection interval.
Located in /Api/IndexSelection.php (line 11)
Creates a selection.
Creates a selection. If $iBeginIndex and $iEndIndex are omitted, this will create an empty selection. If only $iEndIndex is omitted, the selection will contain only $iEndIndex. If both parameters are set, the selection will contain the set of indices between $iBeginIndex and $iEndIndex inclusive.
Returns the first selected index or -1 if the selection is empty.
Returns the first selected index or -1 if the selection is empty.
Returns the last selected index or -1 if the selection is empty.
Returns the last selected index or -1 if the selection is empty.
Returns the number of selected elements.
Returns the number of selected elements.
Change the selection to be the set of indices between $iBeginIndex and $iEndIndex inclusive.
Change the selection to be the set of indices between $iBeginIndex and $iEndIndex inclusive. $iEndIndex may be omitted, thus changing the selection to only contain $iBeginIndex.
Documentation generated on Thu, 17 Sep 2015 14:27:25 +0200 by phpDocumentor 1.3.2