[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Source view] [Print] [Project Stats]
This file is part of the phpBB Forum Software package.
Copyright: | (c) phpBB Limited |
License: | GNU General Public License, version 2 (GPL-2.0) |
File Size: | 260 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
metadata_manager:: (10 methods):
__construct()
get_metadata()
fetch_metadata_from_file()
sanitize_json()
validate()
validate_authors()
validate_enable()
validate_dir()
validate_require_phpbb()
validate_require_php()
Class: metadata_manager - X-Ref
The extension metadata manager validates and gets meta-data for extensions__construct($ext_name, $ext_path) X-Ref |
Creates the metadata manager param: string $ext_name Name (including vendor) of the extension param: string $ext_path Path to the extension directory including root path |
get_metadata($element = 'all') X-Ref |
Processes and gets the metadata requested param: string $element All for all metadata that it has and is valid, otherwise specify which section you want by its shorthand term. return: array Contains all of the requested metadata, throws an exception on failure |
fetch_metadata_from_file() X-Ref |
Gets the metadata file contents and cleans loaded file |
sanitize_json(&$value, $key) X-Ref |
Sanitize input from JSON array using htmlspecialchars() param: mixed $value Value of array row param: string $key Key of array row |
validate($name = 'display') X-Ref |
Validate fields param: string $name ("all" for display and enable validation return: Bool True if valid, throws an exception if invalid |
validate_authors() X-Ref |
Validates the contents of the authors field return: boolean True when passes validation, throws exception if invalid |
validate_enable() X-Ref |
This array handles the verification that this extension can be enabled on this board return: bool True if validation succeeded, throws an exception if invalid |
validate_dir() X-Ref |
Validates the most basic directory structure to ensure it follows <vendor>/<ext> convention. return: boolean True when passes validation, throws an exception if invalid |
validate_require_phpbb() X-Ref |
Validates the contents of the phpbb requirement field return: boolean True when passes validation, throws an exception if invalid |
validate_require_php() X-Ref |
Validates the contents of the php requirement field return: boolean True when passes validation, throws an exception if invalid |
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |