Table of Contents
Constants
-
SQL
= 'location_type_id = :location_type_id'
Properties
-
$SQLID
: array{location_type_id: int}
-
$bank
: bool
-
$bar
: bool
-
$CACHE_ALL_LOCATIONS
: array<int, self>
-
$CACHE_LOCATIONS
: array<int, self>
-
$CACHE_SECTOR_LOCATIONS
: array<int, array<int, array<int, self>>>
-
$fed
: bool
-
$gameID
: int
-
$hardwareSold
: array<int, HardwareType>
-
$HQ
: bool
-
$image
: string
-
$name
: string
-
$processor
: string|null
-
$shipsSold
: array<int, ShipType>
-
$typeID
: int
-
$UG
: bool
-
$weaponsSold
: array<int, Weapon>
Methods
-
addHardwareSold()
: void
-
addSectorLocation()
: void
-
addShipSold()
: void
-
addWeaponSold()
: void
-
clearCache()
: void
-
equals()
: bool
-
getAction()
: string|null
-
getAllLocations()
: array<int, self>
-
getEditHREF()
: string
-
getExamineHREF()
: string
-
getGalaxyLocations()
: array<int, array<int, self>>
-
getGameID()
: int
-
getHardwareSold()
: array<int, HardwareType>
-
getImage()
: string
-
getLinkedLocations()
: array<string|int, self>
-
getLocation()
: self
-
getName()
: string
-
getRaceID()
: int
-
getSectorLocations()
: array<int, self>
-
getShipsSold()
: array<int, ShipType>
-
getTypeID()
: int
-
getWeaponsSold()
: array<int, Weapon>
-
hasAction()
: bool
-
hasX()
: bool
-
isBank()
: bool
-
isBar()
: bool
-
isFed()
: bool
-
isHardwareSold()
: bool
-
isHQ()
: bool
-
isShipSold()
: bool
-
isUG()
: bool
-
isWeaponSold()
: bool
-
moveSectorLocation()
: void
-
removeHardwareSold()
: void
-
removeSectorLocations()
: void
-
removeShipSold()
: void
-
removeWeaponSold()
: void
-
setBank()
: void
-
setBar()
: void
-
setFed()
: void
-
setHQ()
: void
-
setName()
: void
-
setUG()
: void
-
__construct()
: mixed
SQL
public
mixed
SQL
= 'location_type_id = :location_type_id'
$SQLID
read-only
public
array{location_type_id: int}
$SQLID
$bank
protected
bool
$bank
$bar
protected
bool
$bar
$CACHE_ALL_LOCATIONS
protected
static array<int, self>
$CACHE_ALL_LOCATIONS
$CACHE_LOCATIONS
protected
static array<int, self>
$CACHE_LOCATIONS
= []
$CACHE_SECTOR_LOCATIONS
protected
static array<int, array<int, array<int, self>>>
$CACHE_SECTOR_LOCATIONS
= []
$fed
protected
bool
$fed
$gameID
read-only
protected
int
$gameID
$hardwareSold
protected
array<int, HardwareType>
$hardwareSold
$HQ
protected
bool
$HQ
$image
protected
string
$image
$name
protected
string
$name
$processor
protected
string|null
$processor
$shipsSold
protected
array<int, ShipType>
$shipsSold
$typeID
read-only
protected
int
$typeID
$UG
protected
bool
$UG
$weaponsSold
protected
array<int, Weapon>
$weaponsSold
addHardwareSold()
public
addHardwareSold(int $hardwareTypeID) : void
Parameters
-
$hardwareTypeID
: int
-
addSectorLocation()
public
static addSectorLocation(int $gameID, int $sectorID, Location $location) : void
Parameters
-
$gameID
: int
-
-
$sectorID
: int
-
-
$location
: Location
-
addShipSold()
public
addShipSold(int $shipTypeID) : void
Parameters
-
$shipTypeID
: int
-
addWeaponSold()
public
addWeaponSold(int $weaponTypeID) : void
Parameters
-
$weaponTypeID
: int
-
clearCache()
public
static clearCache() : void
equals()
public
equals(Location $otherLocation) : bool
Parameters
-
$otherLocation
: Location
-
getAction()
public
getAction() : string|null
Return values
string|null
getAllLocations()
public
static getAllLocations(int $gameID[, bool $forceUpdate = false ]) : array<int, self>
Parameters
-
$gameID
: int
-
-
$forceUpdate
: bool
= false
-
Return values
array<int, self>
getEditHREF()
public
getEditHREF() : string
getExamineHREF()
public
getExamineHREF() : string
getGalaxyLocations()
public
static getGalaxyLocations(int $gameID, int $galaxyID[, bool $forceUpdate = false ]) : array<int, array<int, self>>
Parameters
-
$gameID
: int
-
-
$galaxyID
: int
-
-
$forceUpdate
: bool
= false
-
Return values
array<int, array<int, self>>
getGameID()
public
getGameID() : int
getHardwareSold()
public
getHardwareSold() : array<int, HardwareType>
getImage()
public
getImage() : string
getLinkedLocations()
public
getLinkedLocations() : array<string|int, self>
Return values
array<string|int, self>
getLocation()
public
static getLocation(int $gameID, int $locationTypeID[, bool $forceUpdate = false ][, DatabaseRecord|null $dbRecord = null ]) : self
Parameters
-
$gameID
: int
-
-
$locationTypeID
: int
-
-
$forceUpdate
: bool
= false
-
-
$dbRecord
: DatabaseRecord|null
= null
-
getName()
public
getName() : string
getRaceID()
public
getRaceID() : int
getSectorLocations()
public
static getSectorLocations(int $gameID, int $sectorID[, bool $forceUpdate = false ]) : array<int, self>
Parameters
-
$gameID
: int
-
-
$sectorID
: int
-
-
$forceUpdate
: bool
= false
-
Return values
array<int, self>
getShipsSold()
public
getShipsSold() : array<int, ShipType>
getTypeID()
public
getTypeID() : int
getWeaponsSold()
public
getWeaponsSold() : array<int, Weapon>
Return values
array<int, Weapon>
hasAction()
public
hasAction() : bool
hasX()
public
hasX(mixed $x[, AbstractPlayer|null $player = null ]) : bool
Parameters
-
$x
: mixed
-
-
$player
: AbstractPlayer|null
= null
-
isBank()
public
isBank() : bool
isBar()
public
isBar() : bool
isFed()
public
isFed() : bool
isHardwareSold()
public
isHardwareSold([int|null $hardwareTypeID = null ]) : bool
Parameters
-
$hardwareTypeID
: int|null
= null
-
isHQ()
public
isHQ() : bool
isShipSold()
public
isShipSold([int|null $shipTypeID = null ]) : bool
Parameters
-
$shipTypeID
: int|null
= null
-
isUG()
public
isUG() : bool
isWeaponSold()
public
isWeaponSold([int|null $weaponTypeID = null ]) : bool
Parameters
-
$weaponTypeID
: int|null
= null
-
moveSectorLocation()
public
static moveSectorLocation(int $gameID, int $oldSectorID, int $newSectorID, Location $location) : void
Parameters
-
$gameID
: int
-
-
$oldSectorID
: int
-
-
$newSectorID
: int
-
-
$location
: Location
-
removeHardwareSold()
public
removeHardwareSold(int $hardwareTypeID) : void
Parameters
-
$hardwareTypeID
: int
-
removeSectorLocations()
public
static removeSectorLocations(int $gameID, int $sectorID) : void
Parameters
-
$gameID
: int
-
-
$sectorID
: int
-
removeShipSold()
public
removeShipSold(int $shipTypeID) : void
Parameters
-
$shipTypeID
: int
-
removeWeaponSold()
public
removeWeaponSold(int $weaponTypeID) : void
Parameters
-
$weaponTypeID
: int
-
setBank()
public
setBank(bool $bool) : void
Parameters
-
$bool
: bool
-
setBar()
public
setBar(bool $bool) : void
Parameters
-
$bool
: bool
-
setFed()
public
setFed(bool $bool) : void
Parameters
-
$bool
: bool
-
setHQ()
public
setHQ(bool $bool) : void
Parameters
-
$bool
: bool
-
setName()
public
setName(string $name) : void
Parameters
-
$name
: string
-
setUG()
public
setUG(bool $bool) : void
Parameters
-
$bool
: bool
-
__construct()
protected
__construct(int $gameID, int $typeID[, DatabaseRecord|null $dbRecord = null ]) : mixed
Parameters
-
$gameID
: int
-
-
$typeID
: int
-
-
$dbRecord
: DatabaseRecord|null
= null
-