function stat($group, $detail) { if (!isset($this->stats[$group])) { $this->stats[$group] = array(); } $this->stats[$group][] = $detail; }