Class Mage_Core_Model_Abstract
Abstract model class
- Varien_Object
- Mage_Core_Model_Abstract
Direct known subclasses
Mage_Admin_Model_Acl_Role, Mage_Admin_Model_Role, Mage_Api_Model_Acl_Role, Mage_Log_Model_Visitor_Online, Mage_Media_Model_Image, Mage_Newsletter_Model_Problem, Mage_Newsletter_Model_Subscriber, Mage_Oauth_Model_Consumer, Mage_Oauth_Model_Nonce, Mage_Oauth_Model_Token, Mage_Paygate_Model_Authorizenet_Debug, Mage_Payment_Model_Billing_AgreementAbstract, Mage_Payment_Model_Info, Mage_Api_Model_Role, Mage_Payment_Model_Recurring_Profile, Mage_Paypal_Model_Cert, Mage_Paypal_Model_Payment_Transaction, Mage_Paypal_Model_Report_Settlement, Mage_Paypal_Model_Report_Settlement_Row, Mage_Persistent_Model_Session, Mage_Poll_Model_Poll, Mage_Poll_Model_Poll_Answer, Mage_Poll_Model_Poll_Vote, Mage_ProductAlert_Model_Email, Mage_Api_Model_Roles, Mage_ProductAlert_Model_Price, Mage_ProductAlert_Model_Stock, Mage_Rating_Model_Rating, Mage_Rating_Model_Rating_Entity, Mage_Rating_Model_Rating_Option, Mage_Rating_Model_Rating_Option_Vote, Mage_Reports_Model_Event, Mage_Reports_Model_Event_Type, Mage_Reports_Model_Product_Index_Abstract, Mage_Reports_Model_Report, Mage_Api_Model_Rules, Mage_Review_Model_Review, Mage_Review_Model_Review_Status, Mage_Review_Model_Review_Summary, Mage_Rule_Model_Abstract, Mage_Sales_Model_Abstract, Mage_Sales_Model_Order_Creditmemo_Item, Mage_Sales_Model_Order_Invoice_Item, Mage_Sales_Model_Order_Item, Mage_Sales_Model_Order_Payment_Transaction, Mage_Sales_Model_Order_Pdf_Items_Abstract, Mage_Api_Model_User, Mage_Sales_Model_Order_Shipment_Item, Mage_Sales_Model_Order_Status, Mage_Sales_Model_Order_Tax, Mage_Sales_Model_Quote, Mage_Sales_Model_Quote_Item_Abstract, Mage_Sales_Model_Quote_Item_Option, Mage_SalesRule_Model_Coupon, Mage_SalesRule_Model_Coupon_Massgenerator, Mage_SalesRule_Model_Rule_Customer, Mage_SalesRule_Model_Rule_Product, Mage_Bundle_Model_Option, Mage_SalesRule_Model_Validator, Mage_Sendfriend_Model_Sendfriend, Mage_Shipping_Model_Rate_Abstract, Mage_Sitemap_Model_Sitemap, Mage_Tag_Model_Tag, Mage_Tag_Model_Tag_Relation, Mage_Tax_Model_Calculation, Mage_Tax_Model_Calculation_Rate, Mage_Tax_Model_Calculation_Rate_Title, Mage_Tax_Model_Calculation_Rule, Mage_Bundle_Model_Price_Index, Mage_Tax_Model_Class, Mage_Tax_Model_Sales_Order_Tax, Mage_Tax_Model_Sales_Order_Tax_Item, Mage_Weee_Model_Observer, Mage_Weee_Model_Tax, Mage_Widget_Model_Widget_Instance, Mage_Wishlist_Model_Item, Mage_Wishlist_Model_Item_Option, Mage_Wishlist_Model_Observer, Mage_Wishlist_Model_Wishlist, Mage_Bundle_Model_Selection, Mage_XmlConnect_Model_Application, Mage_XmlConnect_Model_ConfigData, Mage_XmlConnect_Model_History, Mage_Catalog_Model_Abstract, Mage_Catalog_Model_Design, Mage_Admin_Model_Roles, Mage_Catalog_Model_Product_Action, Mage_Catalog_Model_Product_Compare_Item, Mage_Catalog_Model_Product_Flat_Indexer, Mage_Catalog_Model_Product_Image, Mage_Catalog_Model_Product_Link, Mage_Catalog_Model_Product_Option, Mage_Catalog_Model_Product_Option_Value, Mage_Catalog_Model_Product_Status, Mage_Catalog_Model_Product_Type_Configurable_Attribute, Mage_Catalog_Model_Product_Website, Mage_Admin_Model_Rules, Mage_CatalogIndex_Model_Aggregation, Mage_CatalogIndex_Model_Attribute, Mage_CatalogIndex_Model_Data_Abstract, Mage_CatalogIndex_Model_Indexer, Mage_CatalogIndex_Model_Indexer_Abstract, Mage_CatalogIndex_Model_Observer, Mage_CatalogIndex_Model_Price, Mage_CatalogIndex_Model_Retreiver, Mage_CatalogInventory_Model_Stock, Mage_CatalogInventory_Model_Stock_Item, Mage_Admin_Model_User, Mage_CatalogInventory_Model_Stock_Status, Mage_CatalogRule_Model_Rule_Product_Price, Mage_CatalogSearch_Model_Advanced, Mage_CatalogSearch_Model_Fulltext, Mage_CatalogSearch_Model_Query, Mage_Checkout_Model_Agreement, Mage_Cms_Model_Block, Mage_Cms_Model_Page, Mage_Core_Model_Config_Data, Mage_Core_Model_Design, Mage_AdminNotification_Model_Feed, Mage_Core_Model_File_Storage, Mage_Core_Model_File_Storage_Abstract, Mage_Core_Model_Flag, Mage_Core_Model_Language, Mage_Core_Model_Layout_Data, Mage_Core_Model_Store, Mage_Core_Model_Store_Group, Mage_Core_Model_Template, Mage_Core_Model_Translate_String, Mage_Core_Model_Url_Rewrite, Mage_AdminNotification_Model_Inbox, Mage_Core_Model_Variable, Mage_Core_Model_Website, Mage_Cron_Model_Schedule, Mage_Customer_Model_Address_Abstract, Mage_Customer_Model_Customer, Mage_Customer_Model_Group, Mage_Dataflow_Model_Batch, Mage_Dataflow_Model_Batch_Abstract, Mage_Dataflow_Model_Import, Mage_Dataflow_Model_Profile, Mage_Api2_Model_Acl_Filter_Attribute, Mage_Dataflow_Model_Profile_History, Mage_Dataflow_Model_Session, Mage_Directory_Model_Country, Mage_Directory_Model_Country_Format, Mage_Directory_Model_Currency, Mage_Directory_Model_Region, Mage_Downloadable_Model_Link, Mage_Downloadable_Model_Link_Purchased, Mage_Downloadable_Model_Link_Purchased_Item, Mage_Downloadable_Model_Sample, Mage_Api2_Model_Acl_Global_Role, Mage_Eav_Model_Entity_Attribute_Abstract, Mage_Eav_Model_Entity_Attribute_Group, Mage_Eav_Model_Entity_Attribute_Option, Mage_Eav_Model_Entity_Attribute_Set, Mage_Eav_Model_Entity_Store, Mage_Eav_Model_Entity_Type, Mage_Eav_Model_Form_Element, Mage_Eav_Model_Form_Fieldset, Mage_Eav_Model_Form_Type, Mage_GiftMessage_Model_Message, Mage_Api2_Model_Acl_Global_Rule, Mage_GoogleCheckout_Model_Api_Debug, Mage_GoogleCheckout_Model_Notification, Mage_Index_Model_Event, Mage_Index_Model_Indexer_Abstract, Mage_Index_Model_Process, Mage_Log_Model_Aggregation, Mage_Log_Model_Cron, Mage_Log_Model_Customer, Mage_Log_Model_Log, Mage_Log_Model_VisitorIndirect known subclasses
Mage_Adminhtml_Model_Email_Template, Mage_Adminhtml_Model_System_Config_Backend_Admin_Custom, Mage_Adminhtml_Model_System_Config_Backend_Catalog_Search_Type, Mage_Customer_Model_Address, Mage_Customer_Model_Attribute, Mage_Customer_Model_Config_Share, Mage_Dataflow_Model_Batch_Export, Mage_Dataflow_Model_Batch_Import, Mage_Downloadable_Model_CatalogIndex_Data_Downloadable, Mage_Downloadable_Model_Sales_Order_Pdf_Items_Abstract, Mage_Downloadable_Model_Sales_Order_Pdf_Items_Creditmemo, Mage_Downloadable_Model_Sales_Order_Pdf_Items_Invoice, Mage_Eav_Model_Attribute, Mage_Adminhtml_Model_System_Config_Backend_Category, Mage_Eav_Model_Entity_Attribute, Mage_ImportExport_Model_Import_Proxy_Product, Mage_Newsletter_Model_Queue, Mage_Newsletter_Model_Template, Mage_Paypal_Model_System_Config_Backend_Cert, Mage_Paypal_Model_System_Config_Backend_Cron, Mage_Paypal_Model_System_Config_Backend_MerchantCountry, Mage_Reports_Model_Flag, Mage_Reports_Model_Product_Index_Compared, Mage_Reports_Model_Product_Index_Viewed, Mage_Adminhtml_Model_System_Config_Backend_Cookie, Mage_Rss_Model_System_Config_Backend_Links, Mage_Sales_Model_Billing_Agreement, Mage_Sales_Model_Email_Template, Mage_Sales_Model_Order, Mage_Sales_Model_Order_Address, Mage_Sales_Model_Order_Creditmemo, Mage_Sales_Model_Order_Creditmemo_Comment, Mage_Sales_Model_Order_Invoice, Mage_Sales_Model_Order_Invoice_Comment, Mage_Sales_Model_Order_Payment, Mage_Adminhtml_Model_System_Config_Backend_Currency_Abstract, Mage_Sales_Model_Order_Pdf_Items_Creditmemo_Default, Mage_Sales_Model_Order_Pdf_Items_Creditmemo_Grouped, Mage_Sales_Model_Order_Pdf_Items_Invoice_Default, Mage_Sales_Model_Order_Pdf_Items_Invoice_Grouped, Mage_Sales_Model_Order_Pdf_Items_Shipment_Default, Mage_Sales_Model_Order_Shipment, Mage_Sales_Model_Order_Shipment_Comment, Mage_Sales_Model_Order_Shipment_Track, Mage_Sales_Model_Order_Status_History, Mage_Sales_Model_Quote_Address, Mage_Adminhtml_Model_System_Config_Backend_Currency_Allow, Mage_Sales_Model_Quote_Address_Item, Mage_Sales_Model_Quote_Address_Rate, Mage_Sales_Model_Quote_Item, Mage_Sales_Model_Quote_Payment, Mage_Sales_Model_Recurring_Profile, Mage_SalesRule_Model_Rule, Mage_Tag_Model_Indexer_Summary, Mage_Tax_Model_Config_Price_Include, Mage_XmlConnect_Model_Adminhtml_System_Config_Backend_Baseurl, Mage_XmlConnect_Model_Adminhtml_System_Config_Backend_Currency_Default, Mage_Adminhtml_Model_System_Config_Backend_Currency_Base, Mage_XmlConnect_Model_Catalog_Category_Image, Mage_XmlConnect_Model_Queue, Mage_XmlConnect_Model_Template, Mage_Adminhtml_Model_System_Config_Backend_Currency_Cron, Mage_Adminhtml_Model_System_Config_Backend_Currency_Default, Mage_Adminhtml_Model_System_Config_Backend_Customer_Address_Street, Mage_Adminhtml_Model_System_Config_Backend_Customer_Password_Link_Expirationperiod, Mage_Adminhtml_Model_System_Config_Backend_Admin_Custompath, Mage_Adminhtml_Model_System_Config_Backend_Customer_Show_Address, Mage_Adminhtml_Model_System_Config_Backend_Customer_Show_Customer, Mage_Adminhtml_Model_System_Config_Backend_Datashare, Mage_Adminhtml_Model_System_Config_Backend_Design_Exception, Mage_Adminhtml_Model_System_Config_Backend_Design_Package, Mage_Adminhtml_Model_System_Config_Backend_Email_Address, Mage_Adminhtml_Model_System_Config_Backend_Email_Logo, Mage_Adminhtml_Model_System_Config_Backend_Email_Sender, Mage_Adminhtml_Model_System_Config_Backend_Encrypted, Mage_Adminhtml_Model_System_Config_Backend_File, Mage_Adminhtml_Model_System_Config_Backend_Admin_Password_Link_Expirationperiod, Mage_Adminhtml_Model_System_Config_Backend_Filename, Mage_Adminhtml_Model_System_Config_Backend_Image, Mage_Adminhtml_Model_System_Config_Backend_Image_Favicon, Mage_Adminhtml_Model_System_Config_Backend_Image_Pdf, Mage_Adminhtml_Model_System_Config_Backend_Layer_Children, Mage_Adminhtml_Model_System_Config_Backend_Locale, Mage_Adminhtml_Model_System_Config_Backend_Locale_Timezone, Mage_Adminhtml_Model_System_Config_Backend_Log_Cron, Mage_Adminhtml_Model_System_Config_Backend_Price_Scope, Mage_Adminhtml_Model_System_Config_Backend_Product_Alert_Cron, Mage_Adminhtml_Model_System_Config_Backend_Admin_Usecustom, Mage_Adminhtml_Model_System_Config_Backend_Secure, Mage_Adminhtml_Model_System_Config_Backend_Seo_Product, Mage_Adminhtml_Model_System_Config_Backend_Serialized, Mage_Adminhtml_Model_System_Config_Backend_Serialized_Array, Mage_Adminhtml_Model_System_Config_Backend_Shipping_Tablerate, Mage_Adminhtml_Model_System_Config_Backend_Sitemap, Mage_Adminhtml_Model_System_Config_Backend_Sitemap_Cron, Mage_Adminhtml_Model_System_Config_Backend_Storage_Media_Database, Mage_Adminhtml_Model_System_Config_Backend_Store, Mage_Adminhtml_Model_System_Config_Backend_Translate, Mage_Adminhtml_Model_System_Config_Backend_Admin_Usecustompath, Mage_Adminhtml_Model_System_Config_Clone_Media_Image, Mage_Backup_Model_Config_Backend_Cron, Mage_Bundle_Model_CatalogIndex_Data_Bundle, Mage_Bundle_Model_Sales_Order_Pdf_Items_Abstract, Mage_Bundle_Model_Sales_Order_Pdf_Items_Creditmemo, Mage_Bundle_Model_Sales_Order_Pdf_Items_Invoice, Mage_Bundle_Model_Sales_Order_Pdf_Items_Shipment, Mage_Captcha_Model_Config_Form_Abstract, Mage_Captcha_Model_Config_Form_Backend, Mage_Captcha_Model_Config_Form_Frontend, Mage_Adminhtml_Model_System_Config_Backend_Admin_Usesecretkey, Mage_Catalog_Model_Category, Mage_Catalog_Model_Category_Indexer_Flat, Mage_Catalog_Model_Category_Indexer_Product, Mage_Catalog_Model_Entity_Attribute, Mage_Catalog_Model_Indexer_Url, Mage_Catalog_Model_Product, Mage_Catalog_Model_Product_Attribute_Group, Mage_Catalog_Model_Product_Flat_Flag, Mage_Catalog_Model_Product_Indexer_Eav, Mage_Catalog_Model_Product_Indexer_Flat, Mage_Adminhtml_Model_System_Config_Backend_Baseurl, Mage_Catalog_Model_Product_Indexer_Price, Mage_Catalog_Model_Resource_Eav_Attribute, Mage_Catalog_Model_System_Config_Backend_Catalog_Category_Flat, Mage_Catalog_Model_System_Config_Backend_Catalog_Product_Flat, Mage_Catalog_Model_System_Config_Backend_Catalog_Url_Rewrite_Suffix, Mage_CatalogIndex_Model_Catalog_Index_Flag, Mage_CatalogIndex_Model_Catalog_Index_Kill_Flag, Mage_CatalogIndex_Model_Data_Configurable, Mage_CatalogIndex_Model_Data_Grouped, Mage_CatalogIndex_Model_Data_Simple, Mage_Adminhtml_Model_System_Config_Backend_Cache, Mage_CatalogIndex_Model_Data_Virtual, Mage_CatalogIndex_Model_Indexer_Eav, Mage_CatalogIndex_Model_Indexer_Minimalprice, Mage_CatalogIndex_Model_Indexer_Price, Mage_CatalogIndex_Model_Indexer_Tierprice, Mage_CatalogInventory_Model_Indexer_Stock, Mage_CatalogInventory_Model_System_Config_Backend_Minqty, Mage_CatalogInventory_Model_System_Config_Backend_Minsaleqty, Mage_CatalogInventory_Model_System_Config_Backend_Qtyincrements, Mage_CatalogRule_Model_Flag, Mage_Adminhtml_Model_System_Config_Backend_Catalog_Inventory_Managestock, Mage_CatalogRule_Model_Rule, Mage_CatalogSearch_Model_Indexer_Fulltext, Mage_Catalogsearch_Model_System_Config_Backend_Sitemap, Mage_Contacts_Model_System_Config_Backend_Links, Mage_Core_Model_Email_Template, Mage_Core_Model_File_Storage_Database, Mage_Core_Model_File_Storage_Database_Abstract, Mage_Core_Model_File_Storage_Directory_Database, Mage_Core_Model_File_Storage_File, Mage_Core_Model_File_Storage_FlagPackage: Mage\Core
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Core/Model/Abstract.php
protected
|
|
protected
|
#
_setResourceModel( string $resourceName, string|null $resourceCollectionName = null )
Set resource names |
protected
|
|
public
string
|
|
public
mixed
|
|
public
|
|
public
string
|
|
public
object
|
|
public
|
|
public
|
|
protected
array
|
|
protected
|
|
protected
|
|
public
|
|
protected
boolean
|
#
_hasModelChanged( )
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 |
public
|
|
public
|
|
public
boolean
|
#
isObjectNew( boolean $flag = null )
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 |
protected
|
|
public
array
|
#
getCacheTags( )
Get list of cache tags applied to model object. Return false if cache tags are not supported by model |
public
array
|
|
public
|
|
protected
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
final public
|
|
protected
|
|
protected
|
protected
string
|
$_eventPrefix | 'core_abstract' |
#
Prefix of model events names |
protected
string
|
$_eventObject | 'object' |
#
Parameter name in event |
protected
string
|
$_resourceName |
|
#
Name of the resource model |
protected
|
$_resource |
|
#
Resource model instance |
protected
string
|
$_resourceCollectionName |
|
#
Name of the resource collection model |
protected
string
|
$_cacheTag | false |
#
Model cache tag for clear cache in after save and after delete |
protected
boolean
|
$_dataSaveAllowed | true |
#
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 |
protected
boolean
|
$_isObjectNew | null |
#
Flag which allow detect object state: is it new object (without id) or existing one (with id) |