/** * Reload the WURFL Data into the persistence provider */ private function reload() { $this->persistenceStorage->setWURFLLoaded(false); $this->invalidateCache(); $this->init(); $this->persistenceStorage->save(self::WURFL_LAST_MODIFICATION_TIME, filemtime($this->wurflConfig->wurflFile)); }
/** * Saves the classified user agents in the persistence provider */ public function persistData() { // we sort the array first, useful for doing ris match if (!empty($this->userAgentsWithDeviceID)) { ksort($this->userAgentsWithDeviceID); $this->persistenceProvider->save($this->getPrefix(), $this->userAgentsWithDeviceID); } }
/** * Save given $device in the persistence provider * @param WURFL_Device $device * @see WURFL_UserAgentHandlerChain::filter(), WURFL_Xml_PersistenceProvider::save() */ private function classifyAndPersistDevice($device) { $this->userAgentHandlerChain->filter($device->userAgent, $device->id); $this->persistenceProvider->save($device->id, $device); }