PHP Classes

Put header functions in "oauth_client_class::Process"...

Recommend this page to a friend!

      PHP OAuth Library API  >  All threads  >  Put header functions in...  >  (Un) Subscribe thread alerts  
Subject:Put header functions in...
Summary:into seaprate method, to overwrite them in a child class
Author:Alex Dta
Date:2013-07-06 12:46:43
Update:2013-07-10 10:34:53

  1. Put header functions in...   Reply   Report abuse  
Alex Dta - 2013-07-06 12:46:43
Hello Manuel,

Your oauth class is very good. I wanted to ask you if it is possible to put the `Header` functions in "oauth_client_class::Process" into separate method, thus, i can rewrite them when i inherit your class. Cause i control these redirects myself and this will be good not to tocuh your code.

These ones:
Header('HTTP/1.0 302 OAuth Redirection');
Header('Location: '.$url);
$this->exit_url = $url;

Thanks in advance.

  2. Re: Put header functions in...   Reply   Report abuse  
Manuel Lemos - 2013-07-10 10:34:53 - In reply to message 1 from Alex Dta
OK, I have added the Redirect function to encapsulate the page redirection actions. Soon I will upload the new version.