\Decoration

A Decoration.

Represents an object from the table 'decoration'.

Summary

Methods
Properties
Constants
__construct()
$db
$uid
$decoration
$level
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 — player identifier.

$decoration

$decoration : \K_Decoration

Type

\K_Decoration — Base decoration.

$level

$level : integer

Type

integer — decoration level.

Methods

__construct()

__construct(resource  $db, integer  $id) 

Constructor.

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

Parameters

resource $db

Connection to the database.

integer $id

Building identifier.