// Remove bad _SQL_USE_SLAVE_ uses + normalize Db->executeS(), Db->execute() and Db->numRows() names

This commit is contained in:
rMalie committed 2011-10-10 12:18:56 +00:00
1 parent 149c814a45
commit 9510337b1d
280 files changed
+1971 -1966

No files matched your search

+8 -8
View File
@@ -117,8 +117,8 @@ class StatsNewsletter extends ModuleGraph
protected function setAllTimeValues($layers)
{
$result1 = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($this->_query.$this->getDate());
$result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($this->_query2.$this->getDate());
$result1 = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query.$this->getDate());
$result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query2.$this->getDate());
foreach ($result1 AS $row)
$this->_values[0][(int)(substr($row['newsletter_date_add'], 0, 4))] += 1;
if ($result2)
@@ -130,8 +130,8 @@ class StatsNewsletter extends ModuleGraph
protected function setYearValues($layers)
{
$result1 = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($this->_query.$this->getDate());
$result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($this->_query2.$this->getDate());
$result1 = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query.$this->getDate());
$result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query2.$this->getDate());
foreach ($result1 AS $row)
$this->_values[0][(int)(substr($row['newsletter_date_add'], 5, 2))] += 1;
if ($result2)
@@ -143,8 +143,8 @@ class StatsNewsletter extends ModuleGraph
protected function setMonthValues($layers)
{
$result1 = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($this->_query.$this->getDate());
$result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($this->_query2.$this->getDate());
$result1 = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query.$this->getDate());
$result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query2.$this->getDate());
foreach ($result1 AS $row)
$this->_values[0][(int)(substr($row['newsletter_date_add'], 8, 2))] += 1;
if ($result2)
@@ -156,8 +156,8 @@ class StatsNewsletter extends ModuleGraph
protected function setDayValues($layers)
{
$result1 = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($this->_query.$this->getDate());
$result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($this->_query2.$this->getDate());
$result1 = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query.$this->getDate());
$result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query2.$this->getDate());
foreach ($result1 AS $row)
$this->_values[0][(int)(substr($row['newsletter_date_add'], 11, 2))] += 1;
if ($result2)