Settings
in package
Settings
This class maps the Settings format (preferences.xml)
It allows to generate settings web forms and handle replies, from a XML document.
Table of Contents
Constants
- SETTINGS_SAVE_METHOD = "save_to_database"
- The method to call in your objects, to save data.
Properties
- $filePath : string
- $pages : array<string|int, SettingsPage>
- A collection of SettingsPage items
- $targets : array<string|int, object>
- The targets are underlying objects manipulated by the settings
Methods
- __construct() : mixed
- Initializes a new instance of Settings class
- parse() : mixed
- Parses XML file
Constants
SETTINGS_SAVE_METHOD
The method to call in your objects, to save data.
public
mixed
SETTINGS_SAVE_METHOD
= "save_to_database"
Tags
Properties
$filePath
public
string
$filePath
$pages
A collection of SettingsPage items
public
array<string|int, SettingsPage>
$pages
= []
$targets
The targets are underlying objects manipulated by the settings
public
array<string|int, object>
$targets
= []
Methods
__construct()
Initializes a new instance of Settings class
public
__construct(string $xmlFilePath) : mixed
Parameters
- $xmlFilePath : string
parse()
Parses XML file
public
parse() : mixed