protected getPopulatedCache ( ) : array | ||
return | array |
protected function getPopulatedCache()
{
if ($this->cache === null) {
$rows = $this->db->getData("\n\t\t\t\tSELECT *\n\t\t\t\tFROM {$this->db->prefix}entity_subtypes\n\t\t\t");
$this->cache = [];
foreach ($rows as $row) {
$this->cache[$row->id] = $row;
}
}
return $this->cache;
}