config = new AauthConfig(); $this->table = $this->config->dbTableUserVariables; $this->DBGroup = $this->config->dbProfile; } public function get($userId, $dataKey, $system = 0) { $builder = $this->builder(); $builder->where('user_id', $userId); $builder->where('data_key', $dataKey); if ($builder->countAllResults() != 0) { return $builder->get()->getFirstRow(); } else { return false; } } }