\Building

A Building.

Represents an object from the table 'building'.

Summary

Methods
Properties
Constants
__construct()
$db
$uid
$building
$gain
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$db

$db : resource

Type

resource — Database connection.

$uid

$uid : integer

Type

integer — Owner identifier.

$building

$building : \K_Building

Type

\K_Building — Base building.

$gain

$gain : integer

Type

integer — Gain per horu.

Methods

__construct()

__construct(resource  $db, integer  $id) 

Constructor.

Searches the database and retrieves the information about the building, populating it and it's items.

Parameters

resource $db

Connection to the database.

integer $id

Building identifier.