primo commit
This commit is contained in:
43
libraries/fof30/Configuration/Domain/DomainInterface.php
Normal file
43
libraries/fof30/Configuration/Domain/DomainInterface.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 2, or later
|
||||
*/
|
||||
|
||||
namespace FOF30\Configuration\Domain;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use SimpleXMLElement;
|
||||
|
||||
/**
|
||||
* The Interface of a FOF configuration domain class. The methods are used to parse and
|
||||
* provision sensible information to consumers. The Configuration class acts as an
|
||||
* adapter to the domain classes.
|
||||
*
|
||||
* @since 2.1
|
||||
*/
|
||||
interface DomainInterface
|
||||
{
|
||||
/**
|
||||
* Parse the XML data, adding them to the $ret array
|
||||
*
|
||||
* @param SimpleXMLElement $xml The XML data of the component's configuration area
|
||||
* @param array &$ret The parsed data, in the form of a hash array
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function parseDomain(SimpleXMLElement $xml, array &$ret);
|
||||
|
||||
/**
|
||||
* Return a configuration variable
|
||||
*
|
||||
* @param string &$configuration Configuration variables (hashed array)
|
||||
* @param string $var The variable we want to fetch
|
||||
* @param mixed $default Default value
|
||||
*
|
||||
* @return mixed The variable's value
|
||||
*/
|
||||
public function get(&$configuration, $var, $default);
|
||||
}
|
||||
Reference in New Issue
Block a user