WURFL/DeviceRepositoryBuilder.php
private function buildRepository($wurflInfoIterator, $deviceIterator, $patchDeviceIterators = null)
    {
        $this->persistWurflInfo($wurflInfoIterator);
        $patchingDevices = $this->toListOfPatchingDevices($patchDeviceIterators);
        try {
            $this->process($deviceIterator, $patchingDevices);
        } catch (Exception $exception) {
            $this->clean();
            throw new Exception("Problem Building WURFL Repository: " . $exception->getMessage(), 0, $exception);
        }
    }
private function buildRepository($wurflInfoIterator, $deviceIterator, $patchDeviceIterators = null)
    {
        $this->persistWurflInfo($wurflInfoIterator);
        $patchingDevices = $this->toListOfPatchingDevices($patchDeviceIterators);
        try {
            $this->process($deviceIterator, $patchingDevices);
        } catch (Exception $exception) {
            $this->clean();
            throw new Exception("Problem Building WURFL Repository: " . $exception->getMessage(), 0, $exception);
        }
    }
private function buildRepository ( $ wurflInfoIterator , $ deviceIterator , $ patchDeviceIterators = null ) { $ this -> persistWurflInfo ( $ wurflInfoIterator ) ; $ patchingDevices = $ this -> toListOfPatchingDevices ( $ patchDeviceIterators ) ; try { $ this -> process ( $ deviceIterator , $ patchingDevices ) ; } catch ( Exception $ exception ) { $ this -> clean ( ) ; throw new Exception ( "Problem Building WURFL Repository: " . $ exception -> getMessage ( ) , 0 , $ exception ) ; } }
Iterates over XML files and pulls relevent data
@param WURFL_Xml_VersionIterator $wurflInfoIterator
@param WURFL_Xml_DeviceIterator $deviceIterator
@param array $patchDeviceIterators arrray of WURFL_Xml_DeviceIterator objects for patch files
@throws Exception
Iterates over XML files and pulls relevent data