Abstract model class
Located in /Core/Model/Abstract.php (line 35)
Varien_Object | --Mage_Core_Model_Abstract
Model cache tag for clear cache in after save and after delete
When you use true - all cache will be clean
Flag which can stop data saving after before save Can be used for next sequence: we check data in _beforeSave, if data are not valid - we can set this flag to false value and save process will be stopped
Parameter name in event
In observe method you can use $observer->getEvent()->getObject() in this case
Prefix of model events names
Flag which allow detect object state: is it new object (without id) or existing one (with id)
Resource model instance
Name of the resource collection model
Name of the resource model
Callback function which called after transaction commit in resource model
Object after load processing. Implemented as public interface for supporting objects after load in collections
Remove model onject related cache
Clearing object for correct deleting by garbage collector
Delete object from database
Get cahce tags associated with object id
Get list of cache tags applied to model object.
Return false if cache tags are not supported by model
Retrieve model object identifier
Retrieve identifier field name for model
Retrieve model resource
Get collection instance
Retrieve model resource name
Check object state (true - if it is object without id on object just created)
This method can help detect if object just created in _afterSave method problem is what in after save onject has id and we can't detect what object was created in this transaction
Load object data
Save object data
Declare model object identifier value
Processing object after delete data
Processing manipulation after main transaction commit
Processing object after load data
Processing object after save data
Processing data save after transaction commit.
When method is called we don't have garantee what transaction was really commited
Processing object before delete data
Processing object before load data
Processing object before save data
Clearing object's data
Clearing cyclic references
Get array of objects transfered to default events processing
Get resource instance
Check whether model has changed data.
Can be overloaded in child classes to perform advanced check whether model needs to be saved e.g. usign resouceModel->hasDataChanged() or any other technique
Standard model initialization
Safeguard func that will check, if we are in admin area
Set resource names
If collection name is ommited, resource name will be used with _collection appended
Documentation generated on Fri, 11 Feb 2011 16:55:28 +0200 by phpDocumentor 1.4.3