/** * {@inheritDoc} */ public function getDate() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDate', array()); return parent::getDate(); }
/** * Collect statistics record * * @param string $row Row identificator * @param \XLite\Model\Order $order Order * * @return void */ protected function collectStatsRecord($row, $order) { foreach ($this->getStatsColumns() as $period) { if ($order->getDate() >= $this->getStartTime($period)) { if ($this->isTotalsRow($row)) { $this->stats[$row][$period] += $order->getTotal(); } else { $this->stats[$row][$period] += 1; } } } }