c_ws_plugin__s2member_pro_readmes
public class c_ws_plugin__s2member_pro_readmes
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. |
public static str parse_readme(str $specific_path, str $specific_section, bool $_blank_targets, bool $process_wp_syntax)
Handles readme parsing.
1.5
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.
str - Parsed readme file, or a parsed readme file section; based on parameter configuration.
public static str|bool parse_readme_value(str $key, str $specific_path)
Parses readme specification keys.
1.5
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.
str|bool - The value of the key, else false if not found.
Handles Readme parsing.