connectUserId != $userId) { $database = get_db_connect($this->table, $userId); $this->setTable($database['table']); $this->connect($database); $this->connectUserId = $userId; } return $this; } }