3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 class CRM_Case_XMLProcessor_Settings
extends CRM_Case_XMLProcessor
{
19 private $_settings = [];
24 * @param string $filename
25 * The base filename without the .xml extension
28 * An array of settings.
30 public function run($filename = 'settings') {
31 $xml = $this->retrieve($filename);
33 // For now it's not an error. In the future it might be a required file.
35 // There's only one setting right now, and only one value.
37 if ($xml->group
[0]->attributes()) {
38 $groupName = (string) $xml->group
[0]->attributes()->name
;
40 $this->_settings
['groupname'] = $groupName;
45 return $this->_settings
;