protected function getBaseUser($uid)
    {
        $query = "SELECT email, password, isactive FROM {$this->config->table_users} WHERE id = :id";
        $query_prepared = $this->dbh->prepare($query);
        $query_prepared->execute(['id' => $uid]);

        $data = $query_prepared->fetch(\PDO::FETCH_ASSOC);

        if (!$data) {
            return false;
        }

        $data['uid'] = $uid;

        return $data;
    }
protected function getBaseUser($uid)
    {
        $query = "SELECT email, password, isactive FROM {$this->config->table_users} WHERE id = :id";
        $query_prepared = $this->dbh->prepare($query);
        $query_prepared->execute(['id' => $uid]);

        $data = $query_prepared->fetch(\PDO::FETCH_ASSOC);

        if (!$data) {
            return false;
        }

        $data['uid'] = $uid;

        return $data;
    }
protected function getBaseUser ( $ uid ) { $ query = "SELECT email, password, isactive FROM {$this->config->table_users} WHERE id = :id" ; $ query_prepared = $ this -> dbh -> prepare ( $ query ) ; $ query_prepared -> execute ( [ 'id' => $ uid ] ) ; $ data = $ query_prepared -> fetch ( \ PDO :: FETCH_ASSOC ) ; if ( ! $ data ) { return false ; } $ data [ 'uid' ] = $ uid ; return $ data ; }
Gets basic user data for a given UID and returns an array
@param int $uid
@return array $data
Gets basic user data for a given UID and returns an array