Class Mage_Core_Model_Resource_Abstract

Description

Abstract resource model

Located in /Core/Model/Resource/Abstract.php (line 34)


	
			
Direct descendents
Class Description
Mage_Eav_Model_Entity_Abstract Entity/Attribute/Model - entity abstract
Mage_Core_Model_Mysql4_Abstract Abstract resource model class
Mage_Media_Model_File_Image Media library file image resource model
Variable Summary
static array $_commitCallbacks
Method Summary
Mage_Core_Model_Resource_Abstract __construct ()
string formatDate (string $date, [bool $includeTime = true])
void mktime ( $str)
void _construct ()
void _getReadAdapter ()
void _serializeField ( $object, string $field, [mixed $defaultValue = null], [bool $unsetEmpty = false])
void _unserializeField ( $object, string $field, [mixed $defaultValue = null])
Variables
static array $_commitCallbacks = array() (line 46)

Array of callbacks subscribed to commit transaction commit

  • access: protected
Methods
Constructor __construct (line 36)
  • access: public
Mage_Core_Model_Resource_Abstract __construct ()

Redefined in descendants as:
addCommitCallback (line 80)

Subscribe some callback to transaction commit

  • access: public
Mage_Core_Model_Resource_Abstract addCommitCallback (callback $callback)
  • callback $callback
beginTransaction (line 68)

Start resource transaction

  • access: public
Mage_Core_Model_Resource_Abstract beginTransaction ()
commit (line 92)

Commit resource transaction

  • access: public
formatDate (line 129)

Format date to internal format

  • access: public
string formatDate (string $date, [bool $includeTime = true])
  • bool $includeTime
  • string $date: | Zend_Date $date
mktime (line 155)
  • access: public
void mktime ( $str)
  • $str
rollBack (line 116)

Roll back resource transaction

  • access: public
_construct (line 51)

Resource initialization

  • abstract:
  • access: protected
void _construct ()

Redefined in descendants as:
_getReadAdapter (line 56)

Retrieve connection for read data

  • abstract:
  • access: protected
void _getReadAdapter ()

Redefined in descendants as:
_getWriteAdapter (line 61)

Retrieve connection for write data

  • abstract:
  • access: protected
void _getWriteAdapter ()

Redefined in descendants as:
_serializeField (line 168)

Serialize specified field in an object

  • access: protected
void _serializeField ( $object, string $field, [mixed $defaultValue = null], [bool $unsetEmpty = false])
  • Varien_Object $object
  • string $field
  • mixed $defaultValue
  • bool $unsetEmpty
_unserializeField (line 192)

Unserialize Varien_Object field in an object

  • access: protected
void _unserializeField ( $object, string $field, [mixed $defaultValue = null])

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