public function __construct($db, $user, $forum = null) { $this->db = $db; $this->user = $user; $this->forum = $forum; }