/** * Collects made orders * * @param string $sQ data query * @param array &$aDataX5 data to fill */ protected function _collectOrdersMadeForVisitorWeek($sQ, &$aDataX5) { // orders made $rs = oxDb::getDb()->execute($sQ); if ($rs != false && $rs->recordCount() > 0) { while (!$rs->EOF) { $sKey = oxRegistry::get("oxUtilsDate")->getWeekNumber(oxConfig::getConfigParam('iFirstWeekDay'), strtotime($rs->fields[0])); if (isset($aDataX5[$sKey])) { $aDataX5[$sKey]++; } $rs->moveNext(); } } }