Name of the file that keeps a history of the cached data file directories.
Name of the file that stores the cached data file's file-size and file-modification-time. This info is used to sense auto data file changes.
Mobi_Mtld_DA_Device_TreeOptimized $obj = new Mobi_Mtld_DA_Device_TreeOptimized()
Create the JSON tree handler.
void $obj->getDataCreationTimestamp()
Get data file creation timestamp
void $obj->getDataVersion()
Get data file version
string $obj->getLookupSource()
Get the source properties fetch source to be used for debugging.
void $obj->getPropertyNames()
Get the list of all available property names from the tree (not contains client side props)
void $obj->loadTreeFromFile()
Load the JSON tree file into the handler.
void $obj->loadTreeFromString()
Load the JSON tree into the handler.
void $obj->putProperties(string userAgent, array stockUserAgents, string clientside)
Get properties from tree walk/ua/client-side and put them in the tree.properties use cached properties if exists.
void $obj->putTreeWalkProperties(userAgent user-agent, stockUserAgents list)
Get properties from tree walk/ua and put them in the tree.properties if stockUserAgents != null - iterate over stockUserAgents for each item: tree-walk and stop iteration if result has deviceId - use userAgent for detecting the ua-props if stockUserAgents == null - use userAgent for tree walk - use userAgent for detecting the ua-props
void $obj->setConfig(type $config)
Set new config settings via a new Config object.
void $obj->clearCache()
Remove all tree optimization cache files
bool $obj->populateCache(bool force=false)
Break down the DeviceAtlas JSON data file into smaller files and save the batch into "/da-api-temp-dir/batch-cache-dir".