/** * Loads given XML $inputFile * @param string $inputFile */ function __construct($inputFile) { if (!file_exists($inputFile)) { throw new InvalidArgumentException("cannot locate [{$inputFile}] file!"); } $this->inputFile = WURFL_Xml_Utils::getXMLFile($inputFile); }
private function applyPatch($devicesMap, $wurflPatchFile) { $wurflPatchFile = WURFL_Xml_Utils::getXMLFile ( $wurflPatchFile ); $patchDevicesMap = $this->_wurflPatchParser->parse ( $wurflPatchFile ); $devicesMap = $this->_patchManager->applyPatch ( $devicesMap, $patchDevicesMap ); return $devicesMap; }