Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Utilities

s2member\includes\classes\utilities.inc.php at line #28

Class c_ws_plugin__s2member_utilities

c_ws_plugin__s2member_utilities

public class c_ws_plugin__s2member_utilities

General utilities.

Since:

3.5


( 9 Methods )
Method Summary
public static array

callers(array $debug_backtrace)

Builds an array of backtrace callers.

public static str

evl(str $code, mixed $vars)

Evaluates PHP code, and "returns" output.

public static str

get(str $function)

Buffers (gets) function output.

public static str

mem_details()

Acquires information about memory usage.

public static array

mms_options()

Acquires s2Member options for the Main Site of a Multisite Network.

public static str

s_badge_gen(str $v, bool $no_cache, bool $display_on_failure, bool $display_on_failure.)

Generates s2Member Security Badge.

public static str

time_details()

String with current time details.

public static str

ver_checksum()

Builds a version checksum for this installation.

public static str

ver_details()

String with all version details (for PHP, WordPress®, s2Member, and Pro).

( 9 Methods )
Method Detail

s2member\includes\classes\utilities.inc.php at line #197

callers()

public static array callers(array $debug_backtrace)

Builds an array of backtrace callers.

Since:

110912

Parameters:

array $debug_backtrace - Optional. Defaults to debug_backtrace().

Returns:

array - Array of backtrace callers (lowercase).

[ back to top ]

s2member\includes\classes\utilities.inc.php at line #39

evl()

public static str evl(str $code, mixed $vars)

Evaluates PHP code, and "returns" output.

Since:

3.5

Parameters:

str $code - A string of data, possibly with embedded PHP code.

Returns:

str - Output after PHP evaluation.

[ back to top ]

s2member\includes\classes\utilities.inc.php at line #63

get()

public static str get(str $function)

Buffers (gets) function output.

A variable length of additional arguments are possible. Additional parameters get passed into the $function.

Since:

3.5

Parameters:

str $function - Name of a function to call upon.

Returns:

str - Output after call to function. Any output is buffered and returned.

[ back to top ]

s2member\includes\classes\utilities.inc.php at line #165

mem_details()

public static str mem_details()

Acquires information about memory usage.

Since:

110815

Returns:

str - String with Memory x MB :: Real Memory x MB :: Peak Memory x MB :: Real Peak Memory x MB.

[ back to top ]

s2member\includes\classes\utilities.inc.php at line #184

mms_options()

public static array mms_options()

Acquires s2Member options for the Main Site of a Multisite Network.

Since:

110912

Returns:

array - Array of s2Member options for the Main Site.

[ back to top ]

s2member\includes\classes\utilities.inc.php at line #145

s_badge_gen()

public static str s_badge_gen(str $v, bool $no_cache, bool $display_on_failure, bool $display_on_failure.)

Generates s2Member Security Badge.

Since:

3.5

Parameters:

str $v - A variation number to display. Defaults to 1.

bool $no_cache - Defaults to false. If true, the HTML markup will contain query string params that prevent caching.

bool $display_on_failure. - Defaults to false. True if we need to display the "NOT yet verified" version inside admin panels.

Returns:

str - HTML markup for display of s2Member Security Badge.

[ back to top ]

s2member\includes\classes\utilities.inc.php at line #112

time_details()

public static str time_details()

String with current time details.

Since:

130210

Returns:

str - String with time representation (in UTC time).

[ back to top ]

s2member\includes\classes\utilities.inc.php at line #96

ver_checksum()

public static str ver_checksum()

Builds a version checksum for this installation.

Since:

3.5

Returns:

str - String with [version]-[pro version]-[consolidated checksum].

[ back to top ]

s2member\includes\classes\utilities.inc.php at line #127

ver_details()

public static str ver_details()

String with all version details (for PHP, WordPress®, s2Member, and Pro).

Since:

3.5

Returns:

str - String with PHP vX.XX :: WordPress® vX.XX :: s2Member® vX.XX :: s2Member® Pro vX.XX.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail