Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Readmes

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

Class c_ws_plugin__s2member_readmes

c_ws_plugin__s2member_readmes

public class c_ws_plugin__s2member_readmes

Readme file parsing.

Since:

3.5


( 3 Methods )
Method Summary
public static str

_parse_readme_specs(str $str)

Callback parses specs in a readme file.

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.

( 3 Methods )
Method Detail

s2member\includes\classes\readmes.inc.php at line #182

_parse_readme_specs()

public static str _parse_readme_specs(str $str)

Callback parses specs in a readme file.

Since:

3.5

Parameters:

str $str - A string (i.e. the specs section).

Returns:

str - Parsed specs. With HTML markup for list item display.

[ back to top ]

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

parse_readme()

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

Handles readme parsing.

Since:

3.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 ]

s2member\includes\classes\readmes.inc.php at line #203

parse_readme_value()

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

Parses readme specification keys.

Since:

3.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