1 | <?php |
||
12 | class SettingsHelper |
||
13 | { |
||
14 | const SETTINGS_XML_FILE_PATH = 'settings.xml'; |
||
15 | |||
16 | /** Definition of XML nodes name and attribute used to parse settings data */ |
||
17 | const XML_NODE_CONFIG_ITEM = 'config:config-item'; |
||
18 | const XML_ATTRIBUTE_CONFIG_NAME = 'config:name'; |
||
19 | const XML_ATTRIBUTE_VALUE_ACTIVE_TABLE = 'ActiveTable'; |
||
20 | |||
21 | /** @var InternalEntityFactory Factory to create entities */ |
||
22 | private $entityFactory; |
||
23 | |||
24 | /** |
||
25 | * @param InternalEntityFactory $entityFactory Factory to create entities |
||
26 | */ |
||
27 | 31 | public function __construct($entityFactory) |
|
31 | |||
32 | /** |
||
33 | * @param string $filePath Path of the file to be read |
||
34 | * @return string|null Name of the sheet that was defined as active or NULL if none found |
||
35 | */ |
||
36 | 31 | public function getActiveSheetName($filePath) |
|
60 | } |
||
61 |