예제 #1
0
 /**
  * Truncate table with <code>$name</code>
  *
  * @param string $name
  * @param Varien_Db_Adapter_Pdo_Mysql $connection
  * @return AW_Advancedreports_Helper_Tools_Aggregator
  */
 private function _dropFlatTable($name, $connection)
 {
     if ($this->_tableExists($name)) {
         try {
             $connection->exec(new Zend_Db_Expr("DROP TABLE IF EXISTS `{$name}`"));
         } catch (Exception $e) {
             Mage::logException($e);
         }
     }
     return $this;
 }