private function get_access_token() {
        global $SESSION;
        if (isset($SESSION->{self::SESSIONKEY}) && $SESSION->{self::SESSIONKEY}) {
            $this->client->setAccessToken($SESSION->{self::SESSIONKEY});
            return $SESSION->{self::SESSIONKEY};
        }
        return null;
    }
private function get_access_token() {
        global $SESSION;
        if (isset($SESSION->{self::SESSIONKEY}) && $SESSION->{self::SESSIONKEY}) {
            $this->client->setAccessToken($SESSION->{self::SESSIONKEY});
            return $SESSION->{self::SESSIONKEY};
        }
        return null;
    }
private function get_access_token ( ) { global $ SESSION ; if ( isset ( $ SESSION -> { self :: SESSIONKEY } ) && $ SESSION -> { self :: SESSIONKEY } ) { $ this -> client -> setAccessToken ( $ SESSION -> { self :: SESSIONKEY } ) ; return $ SESSION -> { self :: SESSIONKEY } ; } return null ; }
Gets the access token from session and sets it to client.

@return null|string null or token.
Gets the access token from session and sets it to client .