
February 21st, 2013, 04:52 PM
|
|
Registered User
|
|
Join Date: May 2004
Posts: 39
Time spent in forums: 12 h 16 m 18 sec
Reputation Power: 0
|
|
|
Help with some function public?? not sure
I am using S2Member Pro to do some stuff.
I came across this:
PHP Code:
add_s2member_sig()
public static str add_s2member_sig(str $url_uri_query, str $sig_var)
Adds an s2Member-generated signature onto a full URL, a partial URI, or just a query string.
Since:
111106
Parameters:
str $url_uri_query - A full URL, a partial URI, or just a query string; to append the s2Member-generated signature onto.
str $sig_var - Optional. The name of the s2Member-generated signature variable. Defaults to _s2member_sig.
Returns:
str - A full URL, a partial URI, or just a query string; with an s2Member-generated signature.
I have not heard of "public", so I don't know how to use this.
Can you tell me what to do with this:
PHP Code:
public static str add_s2member_sig(str $url_uri_query, str $sig_var)
how to call it in Php...
is it like this:
PHP Code:
$_oldurl = "http://domain.com/";
$newUrl = public static str add_s2member_sig(str $url_uri_query, str $_oldurl);
because no matter what I do, I cannot get the PHP to execute. I don't see any errors, but it just does not seem to work.
Anyone know how to use that type of code?
I would really appreciate your knowledge.
Thank you very much in advance.
Rich
|