Class Mage_Reports_Model_Mysql4_Report_Abstract

Description

Abstract report aggregate resource model

Located in /Reports/Model/Mysql4/Report/Abstract.php (line 32)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_Reports_Model_Mysql4_Report_Abstract
Direct descendents
Class Description
Mage_SalesRule_Model_Mysql4_Report_Rule Rule report resource model
Mage_Sales_Model_Mysql4_Report_Abstract Order report resource model
Mage_Tax_Model_Mysql4_Report_Tax Magento
Variable Summary
Method Summary
Mage_Reports_Model_Mysql4_Report_Abstract _checkDates ( &$from,  &$to, mixed $from, mixed $to)
Mage_Reports_Model_Mysql4_Report_Abstract _clearTableByDateRange (string $table, [string|null $from = null], [string|null $to = null], [Zend_Db_Select|string|null $subSelect = null], [ $doNotUseTruncate = false], string|null $sourceWhereColumn, string|null $sourceAdditionalWhere, boolean $doNotUseTrancate)
Zend_Date|null _dateToUtc ( $date)
mixed _getFlagData (string $code)
string _getStoreTimezoneUtcOffset ([ $store = null])
Varien_Db_Select _getTableDateRangeRelatedSelect (string $table, string $relatedTable, array $joinCondition, string $column, string $whereColumn, [string|null $from = null], [string|null $to = null], [array $additionalWhere = array()], [ $alias = 'date_range_table'], [ $relatedAlias = 'related_date_range_table'])
Varien_Db_Select _getTableDateRangeSelect (string $table, string $column, string $whereColumn, [string|null $from = null], [string|null $to = null], [array $additionalWhere = array()], [ $alias = 'date_range_table'])
void _makeConditionFromDateRangeSelect (string|Zend_Db_Select $select, string $periodColumn)
Mage_Reports_Model_Mysql4_Report_Abstract _setFlagData (string $code, [mixed $value = null])
Variables
Methods
_checkDates (line 315)

Check range dates and transforms it to strings

  • access: protected
Mage_Reports_Model_Mysql4_Report_Abstract _checkDates ( &$from,  &$to, mixed $from, mixed $to)
  • mixed $from
  • mixed $to
  • &$from
  • &$to
_clearTableByDateRange (line 122)

Clear report table by specified date range.

If specified source table parameters, condition will be generated by source table subselect.

  • access: protected
Mage_Reports_Model_Mysql4_Report_Abstract _clearTableByDateRange (string $table, [string|null $from = null], [string|null $to = null], [Zend_Db_Select|string|null $subSelect = null], [ $doNotUseTruncate = false], string|null $sourceWhereColumn, string|null $sourceAdditionalWhere, boolean $doNotUseTrancate)
  • string $table
  • string|null $from
  • string|null $to
  • Zend_Db_Select|string|null $subSelect
  • string|null $sourceWhereColumn
  • string|null $sourceAdditionalWhere
  • boolean $doNotUseTrancate
  • $doNotUseTruncate
_dateToUtc (line 343)

Retrieve date in UTC timezone

  • access: protected
Zend_Date|null _dateToUtc ( $date)
  • $date
_getFlag (line 46)

Retrive flag object

  • access: protected
_getFlagData (line 86)

Retrieve flag data

  • access: protected
mixed _getFlagData (string $code)
  • string $code
_getStoreTimezoneUtcOffset (line 333)

Retrieve store timezone offset from UTC in the form acceptable by SQL's CONVERT_TZ()

  • access: protected
string _getStoreTimezoneUtcOffset ([ $store = null])
  • $store
_getTableDateRangeRelatedSelect (line 252)

Generate table date range select

  • access: protected
Varien_Db_Select _getTableDateRangeRelatedSelect (string $table, string $relatedTable, array $joinCondition, string $column, string $whereColumn, [string|null $from = null], [string|null $to = null], [array $additionalWhere = array()], [ $alias = 'date_range_table'], [ $relatedAlias = 'related_date_range_table'])
  • string $table
  • string $relatedTable
  • array $joinCondition
  • string $column
  • string $whereColumn
  • string|null $from
  • string|null $to
  • array $additionalWhere
  • $alias
  • $relatedAlias
_getTableDateRangeSelect (line 162)

Generate table date range select

  • access: protected
Varien_Db_Select _getTableDateRangeSelect (string $table, string $column, string $whereColumn, [string|null $from = null], [string|null $to = null], [array $additionalWhere = array()], [ $alias = 'date_range_table'])
  • string $table
  • string $column
  • string $whereColumn
  • string|null $from
  • string|null $to
  • array $additionalWhere
  • $alias
_makeConditionFromDateRangeSelect (line 203)

Make condition for using in where section from select statement with single date column

  • access: protected
void _makeConditionFromDateRangeSelect (string|Zend_Db_Select $select, string $periodColumn)
  • string|Zend_Db_Select $select: Query string or instance retrieved from _getTableDateRangeSelect or _getTableDateRangeRelatedSelect
  • string $periodColumn: Name of period column
_setFlagData (line 61)

Saves flag

  • access: protected
Mage_Reports_Model_Mysql4_Report_Abstract _setFlagData (string $code, [mixed $value = null])
  • string $code
  • mixed $value
_truncateTable (line 102)

Trancate table

  • access: protected
Mage_Reports_Model_Mysql4_Report_Abstract _truncateTable (string $table)
  • string $table

Inherited Methods

Inherited From Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::addUniqueField()
Mage_Core_Model_Mysql4_Abstract::afterLoad()
Mage_Core_Model_Mysql4_Abstract::delete()
Mage_Core_Model_Mysql4_Abstract::forsedSave()
Mage_Core_Model_Mysql4_Abstract::getChecksum()
Mage_Core_Model_Mysql4_Abstract::getIdFieldName()
Mage_Core_Model_Mysql4_Abstract::getMainTable()
Mage_Core_Model_Mysql4_Abstract::getReadConnection()
Mage_Core_Model_Mysql4_Abstract::getTable()
Mage_Core_Model_Mysql4_Abstract::getUniqueFields()
Mage_Core_Model_Mysql4_Abstract::getValueTable()
Mage_Core_Model_Mysql4_Abstract::hasDataChanged()
Mage_Core_Model_Mysql4_Abstract::load()
Mage_Core_Model_Mysql4_Abstract::resetUniqueField()
Mage_Core_Model_Mysql4_Abstract::save()
Mage_Core_Model_Mysql4_Abstract::unserializeFields()
Mage_Core_Model_Mysql4_Abstract::_afterDelete()
Mage_Core_Model_Mysql4_Abstract::_afterLoad()
Mage_Core_Model_Mysql4_Abstract::_afterSave()
Mage_Core_Model_Mysql4_Abstract::_beforeDelete()
Mage_Core_Model_Mysql4_Abstract::_beforeSave()
Mage_Core_Model_Mysql4_Abstract::_checkUnique()
Mage_Core_Model_Mysql4_Abstract::_getConnection()
Mage_Core_Model_Mysql4_Abstract::_getLoadSelect()
Mage_Core_Model_Mysql4_Abstract::_getReadAdapter()
Mage_Core_Model_Mysql4_Abstract::_getWriteAdapter()
Mage_Core_Model_Mysql4_Abstract::_init()
Mage_Core_Model_Mysql4_Abstract::_initUniqueFields()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForSave()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForTable()
Mage_Core_Model_Mysql4_Abstract::_prepareValueForSave()
Mage_Core_Model_Mysql4_Abstract::_serializeFields()
Mage_Core_Model_Mysql4_Abstract::_setMainTable()
Mage_Core_Model_Mysql4_Abstract::_setResource()

Inherited From Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::__construct()
Mage_Core_Model_Resource_Abstract::addCommitCallback()
Mage_Core_Model_Resource_Abstract::beginTransaction()
Mage_Core_Model_Resource_Abstract::commit()
Mage_Core_Model_Resource_Abstract::formatDate()
Mage_Core_Model_Resource_Abstract::mktime()
Mage_Core_Model_Resource_Abstract::rollBack()
Mage_Core_Model_Resource_Abstract::_construct()
Mage_Core_Model_Resource_Abstract::_getReadAdapter()
Mage_Core_Model_Resource_Abstract::_getWriteAdapter()
Mage_Core_Model_Resource_Abstract::_serializeField()
Mage_Core_Model_Resource_Abstract::_unserializeField()
Class Constants

Documentation generated on Fri, 11 Feb 2011 16:55:31 +0200 by phpDocumentor 1.4.3