<?php
/**
 * aheadWorks Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://ecommerce.aheadworks.com/LICENSE-M1.txt
 *
 * @category   AW
 * @package    AW_Core
 * @version    1.0
 * @copyright  Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
 * @license    http://ecommerce.aheadworks.com/LICENSE-M1.txt
 */

class AW_Core_Model_Mysql4_Logger extends Mage_Core_Model_Mysql4_Abstract {
    protected function _construct() {
	$this->_init('awcore/logger', 'id');
    }

    /**
     * Truncates all log records
     * @return AW_Core_Model_Mysql4_Logger
     */
    public function truncateAll() {
	$this->_getWriteAdapter()->delete($this->getMainTable(), '');
	return $this;
    }
}