QueryBuilder
in package
Table of Contents
- STEAM_SEARCH_URL = 'https://store.steampowered.com/search/'
- $excludeVROnly : bool
- $maxPrice : MaxPrice
- $sort : SortBy
- $term : string
- $vrSupport : VRSupport
- __toString() : string
- create() : QueryBuilder
- Create a new QueryBuilder instance.
- getMaxPrice() : MaxPrice
- getSort() : SortBy
- getTerm() : string
- maxPrice() : $this
- Set the maximum price to search for.
- search() : $this
- Set the search term.
- sortByName() : $this
- Sort by name. Alphabetical order.
- sortByPriceAscending() : $this
- Sort by price. Lowest price first.
- sortByPriceDescending() : $this
- Sort by price. Highest price first.
- sortByReleaseDate() : $this
- Sort by release date. Most recent results first.
- sortByRelevance() : $this
- Default steam search sort order.
- sortByReviewScore() : $this
- Sort by review score. Highest score first.
- vrGamepad() : $this
- Filter results to show titles that support gamepads.
- vrHtcVive() : $this
- Filter results to show titles that support the HTC Vive.
- vrKeyboardMouse() : $this
- Filter results to show titles that support keyboard and mouse.
- vrOculusRift() : $this
- Filter results to show titles that support the Oculus Rift.
- vrOnly() : $this
- Filter results to show titles that only support VR.
- vrRoomScale() : self
- vrSeated() : self
- vrStanding() : self
- vrSupported() : $this
- Filter results to show titles with VR support.
- vrTrackedMotionControllers() : $this
- Filter results to show titles that support tracked motion controllers.
- vrValveIndex() : $this
- Filter results to show titles that support the Valve Index.
- vrWindowsMixedReality() : $this
- Filter results to show titles that support Windows Mixed Reality.
- __construct() : mixed
Constants
STEAM_SEARCH_URL
public
mixed
STEAM_SEARCH_URL
= 'https://store.steampowered.com/search/'
Properties
$excludeVROnly
private
bool
$excludeVROnly
= false
$maxPrice
private
MaxPrice
$maxPrice
$sort
private
SortBy
$sort
$term
private
string
$term
= ''
$vrSupport
private
VRSupport
$vrSupport
Methods
__toString()
public
__toString() : string
Return values
string —create()
Create a new QueryBuilder instance.
public
static create([string $term = '' ]) : QueryBuilder
Parameters
- $term : string = ''
Return values
QueryBuilder —getMaxPrice()
public
getMaxPrice() : MaxPrice
Return values
MaxPrice —getSort()
public
getSort() : SortBy
Return values
SortBy —getTerm()
public
getTerm() : string
Return values
string —maxPrice()
Set the maximum price to search for.
public
maxPrice(int $maxPrice) : $this
Parameters
- $maxPrice : int
Return values
$this —search()
Set the search term.
public
search(string $term) : $this
Parameters
- $term : string
Return values
$this —sortByName()
Sort by name. Alphabetical order.
public
sortByName() : $this
Return values
$this —sortByPriceAscending()
Sort by price. Lowest price first.
public
sortByPriceAscending() : $this
Return values
$this —sortByPriceDescending()
Sort by price. Highest price first.
public
sortByPriceDescending() : $this
Return values
$this —sortByReleaseDate()
Sort by release date. Most recent results first.
public
sortByReleaseDate() : $this
Return values
$this —sortByRelevance()
Default steam search sort order.
public
sortByRelevance() : $this
Return values
$this —sortByReviewScore()
Sort by review score. Highest score first.
public
sortByReviewScore() : $this
Return values
$this —vrGamepad()
Filter results to show titles that support gamepads.
public
vrGamepad() : $this
Return values
$this —vrHtcVive()
Filter results to show titles that support the HTC Vive.
public
vrHtcVive() : $this
Return values
$this —vrKeyboardMouse()
Filter results to show titles that support keyboard and mouse.
public
vrKeyboardMouse() : $this
Return values
$this —vrOculusRift()
Filter results to show titles that support the Oculus Rift.
public
vrOculusRift() : $this
Return values
$this —vrOnly()
Filter results to show titles that only support VR.
public
vrOnly() : $this
Return values
$this —vrRoomScale()
public
vrRoomScale() : self
Return values
self —vrSeated()
public
vrSeated() : self
Return values
self —vrStanding()
public
vrStanding() : self
Return values
self —vrSupported()
Filter results to show titles with VR support.
public
vrSupported() : $this
Return values
$this —vrTrackedMotionControllers()
Filter results to show titles that support tracked motion controllers.
public
vrTrackedMotionControllers() : $this
Return values
$this —vrValveIndex()
Filter results to show titles that support the Valve Index.
public
vrValveIndex() : $this
Return values
$this —vrWindowsMixedReality()
Filter results to show titles that support Windows Mixed Reality.
public
vrWindowsMixedReality() : $this
Return values
$this —__construct()
private
__construct() : mixed