Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

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

  1. Put header functions in "oauth_client_class::Process"...   Reply   Report abuse  
Picture of Alex Dta
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 "oauth_client_class::Process"...   Reply   Report abuse  
Picture of Manuel Lemos
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.