/**
* Load entire datalist in memory.
*
* This could cause OOM problems if the datalists table is large.
*
* @todo make a list of datalists that we want to get in one grab
*
* @return array
* @access private
*/
function loadAll()
{
$result = $this->db->getData("SELECT * FROM {$this->table}");
$map = array();
if (is_array($result)) {
foreach ($result as $row) {
$map[$row->name] = $row->value;
$this->cache->put($row->name, $row->value);
}
}
return $map;
}