SilverStripe\Versioned\Versioned::get_by_stage
Get a set of class instances by the given stage.
Signature
public function get_by_stage(string
$class,
string
$stage,
[string
$filter = '',
[string
$sort = '',
[string
$join = '',
[int
$limit = NULL,
[string
$containerClass = DataList::class]]]]] )
Parameters
$class
—
string
- The name of the class.
$stage
—
string
- The name of the stage.
$filter
—
string
- A filter to be inserted into the WHERE clause.
$sort
—
string
- A sort expression to be inserted into the ORDER BY clause.
$join
—
string
- Deprecated, use leftJoin($table, $joinClause) instead
$limit
—
int
- A limit on the number of records returned from the database.
$containerClass
—
string
- The container class for the result set (default is DataList)
Returns
- DataList
- A modified DataList designated to the specified stage