Search
extends Model
in package
Search Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- getResultsByAllianceTag() : array<string|int, mixed>
- Search results by alliance name or alliance tag
- getResultsByPlanetName() : array<string|int, mixed>
- Search results by planet name
- getResultsByPlayerName() : array<string|int, mixed>
- Search results by player name
- setNewDb() : void
- Creates a new Database object
Properties
$db
Contains the Database instance
protected
Database
$db
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —__destruct()
Destructor
public
__destruct() : mixed
Return values
mixed —getResultsByAllianceTag()
Search results by alliance name or alliance tag
public
getResultsByAllianceTag(string $allianceTag) : array<string|int, mixed>
Parameters
- $allianceTag : string
Return values
array<string|int, mixed> —getResultsByPlanetName()
Search results by planet name
public
getResultsByPlanetName(string $planetName) : array<string|int, mixed>
Parameters
- $planetName : string
Return values
array<string|int, mixed> —getResultsByPlayerName()
Search results by player name
public
getResultsByPlayerName(string $playerName) : array<string|int, mixed>
Parameters
- $playerName : string
Return values
array<string|int, mixed> —setNewDb()
Creates a new Database object
private
setNewDb() : void