$db
$db : resource
A unit.
Represents an object from the table 'k_unit'.
$leader_skill : \K_Leader_Skill
$awakens_from : \K_Unit
$awakens_to : \K_Unit
$transformation : \K_Unit_Transformation
__construct(\resouce $db, integer $id, boolean $complete = true)
Constructor.
Searches the database and retrieves the information about the unit, populating it and it's items.
| \resouce | $db | Connection to the database. |
| integer | $id | Unit identifier. |
| boolean | $complete | If false, query only k_unit. |