Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Readmes

pro\s2member-pro\includes\classes\readmes.inc.php at line #44

Class c_ws_plugin__s2member_pro_readmes

c_ws_plugin__s2member_pro_readmes

public class c_ws_plugin__s2member_pro_readmes

Handles Readme parsing.

Since:

1.5


( 2 Methods )
Method Summary
public static str

parse_readme(str $specific_path, str $specific_section, bool $_blank_targets, bool $process_wp_syntax)

Handles readme parsing.

public static str|bool

parse_readme_value(str $key, str $specific_path)

Parses readme specification keys.

( 2 Methods )
Method Detail

pro\s2member-pro\includes\classes\readmes.inc.php at line #60

parse_readme()

public static str parse_readme(str $specific_path, str $specific_section, bool $_blank_targets, bool $process_wp_syntax)

Handles readme parsing.

Since:

1.5

Parameters:

str $specific_path - Optional. Path to a specific readme file to parse. Defaults to that of the software itself. When/if a readme-dev.txt file is available, that will be used instead of the default readme.txt.

str $specific_section - Optional. The title of a specific section to parse, instead of the entire file.

bool $_blank_targets - Optional. Defaults to true. If false, no target attribute is used.

bool $process_wp_syntax - Optional. Defaults to false. If true, and WP Syntax is installed; it will be used to parse code samples.

Returns:

str - Parsed readme file, or a parsed readme file section; based on parameter configuration.

[ back to top ]

pro\s2member-pro\includes\classes\readmes.inc.php at line #82

parse_readme_value()

public static str|bool parse_readme_value(str $key, str $specific_path)

Parses readme specification keys.

Since:

1.5

Parameters:

str $key - A key (within the specs section).

str $specific_path - Optional. Path to a specific readme file to parse. Defaults to that of the software itself. When/if a readme-dev.txt file is available, that will be used instead of the default readme.txt.

Returns:

str|bool - The value of the key, else false if not found.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail