Flow PHP

RowSelection

Read onlyYes
FinalYes

File-absolute rows: the selectors cover every row of the file, in order, adjacent selectors merged.

Methods

__construct()  : mixed
all()  : self
contains()  : bool
Whether every row the other selection selects is selected here.
difference()  : self
head()  : self
intersection()  : self
masked()  : self
The selected rows whose entry is true, one entry per selected row in order.
none()  : self
rowCount()  : int
Rows selected.
selectors()  : array<int, RowSelector>
selectsAny()  : bool
slice()  : self
$rows rows from row $offset on, row 0 being row $offset.
split()  : array<int, self>
One selection per consecutive part of the given row counts, row 0 of each being the part's first row.
totalRows()  : int
Rows covered, selected or skipped.
union()  : self
window()  : self
The rows from $offset on, $limit of them at most.

Methods

all()

public static all(int $rows) : self
Parameters
$rows : int
Return values
self

contains()

Whether every row the other selection selects is selected here.

public contains(self $other) : bool
Parameters
$other : self
Return values
bool

difference()

public difference(self $other) : self
Parameters
$other : self
Return values
self

head()

public head(int $rows) : self
Parameters
$rows : int
Return values
self

intersection()

public intersection(self $other) : self
Parameters
$other : self
Return values
self

masked()

The selected rows whose entry is true, one entry per selected row in order.

public masked(array<int, bool> $mask) : self
Parameters
$mask : array<int, bool>
Return values
self

none()

public static none(int $rows) : self
Parameters
$rows : int
Return values
self

rowCount()

Rows selected.

public rowCount() : int
Return values
int

selectsAny()

public selectsAny() : bool
Return values
bool

slice()

$rows rows from row $offset on, row 0 being row $offset.

public slice(int $offset, int $rows) : self
Parameters
$offset : int
$rows : int
Return values
self

split()

One selection per consecutive part of the given row counts, row 0 of each being the part's first row.

public split(array<int, int> $rowCounts) : array<int, self>
Parameters
$rowCounts : array<int, int>
Return values
array<int, self>

totalRows()

Rows covered, selected or skipped.

public totalRows() : int
Return values
int

union()

public union(self $other) : self
Parameters
$other : self
Return values
self

window()

The rows from $offset on, $limit of them at most.

public static window(int $rows[, int $offset = 0 ][, int|null $limit = null ]) : self
Parameters
$rows : int
$offset : int = 0
$limit : int|null = null
Return values
self
On this page

Search results