public function getExtendedStats($type = '', $slabid = 0, $limit = 100) { if ($this->logging) { $start = microtime(true); $name = 'getExtendedStats'; $arguments = array($type, $slabid, $limit); } list($_type, $_slabid, $_limit) = array($type, $slabid, $limit); if ($_type == '') { $result = parent::getExtendedStats(); } else { $result = parent::getExtendedStats($_type, $_slabid, $_limit); } list($type, $slabid, $limit) = array($_type, $_slabid, $_limit); if ($this->logging) { $time = microtime(true) - $start; $this->calls[] = (object) compact('start', 'time', 'name', 'arguments', 'result'); } return $result; }