src/Versioned.php
public static function get_by_stage(
        $class,
        $stage,
        $filter = '',
        $sort = '',
        $join = '',
        $limit = null,
        $containerClass = DataList::class
    ) {
        ReadingMode::validateStage($stage);
        $result = DataObject::get($class, $filter, $sort, $join, $limit, $containerClass);
        return $result->setDataQueryParam([
            'Versioned.mode' => 'stage',
            'Versioned.stage' => $stage
        ]);
    }
public static function get_by_stage(
        $class,
        $stage,
        $filter = '',
        $sort = '',
        $join = '',
        $limit = null,
        $containerClass = DataList::class
    ) {
        ReadingMode::validateStage($stage);
        $result = DataObject::get($class, $filter, $sort, $join, $limit, $containerClass);
        return $result->setDataQueryParam([
            'Versioned.mode' => 'stage',
            'Versioned.stage' => $stage
        ]);
    }
public static function get_by_stage ( $ class , $ stage , $ filter = '' , $ sort = '' , $ join = '' , $ limit = null , $ containerClass = DataList :: class ) { ReadingMode :: validateStage ( $ stage ) ; $ result = DataObject :: get ( $ class , $ filter , $ sort , $ join , $ limit , $ containerClass ) ; return $ result -> setDataQueryParam ( [ 'Versioned.mode' => 'stage' , 'Versioned.stage' => $ stage ] ) ; }
Get a set of class instances by the given stage.

@param string $class The name of the class.
@param string $stage The name of the stage.
@param string $filter A filter to be inserted into the WHERE clause.
@param string $sort A sort expression to be inserted into the ORDER BY clause.
@param string $join Deprecated, use leftJoin($table, $joinClause) instead
@param int $limit A limit on the number of records returned from the database.
@param string $containerClass The container class for the result set (default is DataList)

@return DataList A modified DataList designated to the specified stage
Get a set of class instances by the given stage .