Public Member Functions | |
__construct () | |
isDeleted ($isDeleted=null) | |
setIdFieldName ($name) | |
getIdFieldName () | |
getId () | |
setId ($value) | |
addData (array $arr) | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
getData ($key='', $index=null) | |
setDataUsingMethod ($key, $args=array()) | |
getDataUsingMethod ($key, $args=null) | |
getDataSetDefault ($key, $default) | |
hasData ($key='') | |
__toArray (array $arrAttributes=array()) | |
toArray (array $arrAttributes=array()) | |
toXml (array $arrAttributes=array(), $rootName= 'item', $addOpenTag=false, $addCdata=true) | |
toJson (array $arrAttributes=array()) | |
__toString (array $arrAttributes=array(), $valueSeparator=',') | |
toString ($format='') | |
__call ($method, $args) | |
__get ($var) | |
__set ($var, $value) | |
isEmpty () | |
serialize ($attributes=array(), $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
getOrigData ($key=null) | |
setOrigData ($key=null, $data=null) | |
dataHasChangedFor ($field) | |
isDirty ($field=null) | |
flagDirty ($field, $flag=true) | |
debug ($data=null, &$objects=array()) | |
offsetSet ($offset, $value) | |
offsetExists ($offset) | |
offsetUnset ($offset) | |
offsetGet ($offset) | |
Protected Member Functions | |
_construct () | |
_getData ($key) | |
_prepareArray (&$arr, array $elements=array()) | |
__toXml (array $arrAttributes=array(), $rootName= 'item', $addOpenTag=false, $addCdata=true) | |
__toJson (array $arrAttributes=array()) | |
_underscore ($name) | |
_camelize ($name) | |
Protected Attributes | |
$_data = array() | |
$_origData | |
$_idFieldName = null | |
$_isDeleted = false | |
Static Protected Attributes | |
static | $_underscoreCache = array() |
static | $_camelizeCache = array() |
Definition at line 35 of file Object.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented in Mage_Admin_Model_Session, Mage_Adminhtml_Block_Api_Buttons, Mage_Adminhtml_Block_Api_Editroles, Mage_Adminhtml_Block_Api_Edituser, Mage_Adminhtml_Block_Api_Grid_Role, Mage_Adminhtml_Block_Api_Role_Grid_User, Mage_Adminhtml_Block_Api_Role, Mage_Adminhtml_Block_Api_Roles, Mage_Adminhtml_Block_Api_Tab_Roleinfo, Mage_Adminhtml_Block_Api_Tab_Rolesedit, Mage_Adminhtml_Block_Api_Tab_Rolesusers, Mage_Adminhtml_Block_Api_Tab_Userroles, Mage_Adminhtml_Block_Api_User_Edit_Tab_Roles, Mage_Adminhtml_Block_Api_User_Edit_Tabs, Mage_Adminhtml_Block_Api_User_Edit, Mage_Adminhtml_Block_Api_User_Grid, Mage_Adminhtml_Block_Api_User, Mage_Adminhtml_Block_Api_Users, Mage_Adminhtml_Block_Backup, Mage_Adminhtml_Block_Catalog_Category_Abstract, Mage_Adminhtml_Block_Catalog_Category_Edit_Form, Mage_Adminhtml_Block_Catalog_Category_Edit, Mage_Adminhtml_Block_Catalog_Category_Tab_Attributes, Mage_Adminhtml_Block_Catalog_Category_Tab_Design, Mage_Adminhtml_Block_Catalog_Category_Tab_General, Mage_Adminhtml_Block_Catalog_Category_Tab_Product, Mage_Adminhtml_Block_Catalog_Category_Tabs, Mage_Adminhtml_Block_Catalog_Category_Tree, Mage_Adminhtml_Block_Catalog_Form_Renderer_Googleoptimizer_Import, Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tab_Options, Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tabs, Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit, Mage_Adminhtml_Block_Catalog_Product_Attribute_Grid, Mage_Adminhtml_Block_Catalog_Product_Attribute_New_Product_Created, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Grid, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Main_Formattribute, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Main_Formgroup, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Main_Formset, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Toolbar_Main_Filter, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Toolbar_Main, Mage_Adminhtml_Block_Catalog_Product_Attribute, Mage_Adminhtml_Block_Catalog_Product_Created, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Alerts_Price, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Alerts_Stock, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Alerts, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Categories, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Crosssell, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Inventory, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Option, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Date, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_File, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Select, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Text, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Price_Tier, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Related, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config_Grid, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Group, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Tag_Customer, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Tag, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Upsell, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Websites, Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs, Mage_Adminhtml_Block_Catalog_Product_Edit, Mage_Adminhtml_Block_Catalog_Product_Grid, Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content, Mage_Adminhtml_Block_Catalog_Product, Mage_Adminhtml_Block_Catalog_Search_Edit_Form, Mage_Adminhtml_Block_Catalog_Search_Edit, Mage_Adminhtml_Block_Catalog_Search_Grid, Mage_Adminhtml_Block_Catalog_Search, Mage_Adminhtml_Block_Catalog, Mage_Adminhtml_Block_Checkout_Agreement_Edit_Form, Mage_Adminhtml_Block_Checkout_Agreement_Edit, Mage_Adminhtml_Block_Checkout_Agreement_Grid, Mage_Adminhtml_Block_Checkout_Agreement, Mage_Adminhtml_Block_Cms_Block_Edit_Form, Mage_Adminhtml_Block_Cms_Block_Edit, Mage_Adminhtml_Block_Cms_Block_Grid, Mage_Adminhtml_Block_Cms_Block, Mage_Adminhtml_Block_Cms_Page_Edit_Tab_Design, Mage_Adminhtml_Block_Cms_Page_Edit_Tab_Meta, Mage_Adminhtml_Block_Cms_Page_Edit_Tabs, Mage_Adminhtml_Block_Cms_Page_Edit, Mage_Adminhtml_Block_Cms_Page_Grid, Mage_Adminhtml_Block_Cms_Page, Mage_Adminhtml_Block_Customer_Edit_Tab_Account, Mage_Adminhtml_Block_Customer_Edit_Tab_Addresses, Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter_Grid_Filter_Status, Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter_Grid_Renderer_Status, Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter_Grid, Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter, Mage_Adminhtml_Block_Customer_Edit_Tab_Orders, Mage_Adminhtml_Block_Customer_Edit_Tab_Reviews, Mage_Adminhtml_Block_Customer_Edit_Tab_Tag, Mage_Adminhtml_Block_Customer_Edit_Tab_Tags, Mage_Adminhtml_Block_Customer_Edit_Tab_View_Cart, Mage_Adminhtml_Block_Customer_Edit_Tab_View_Orders, Mage_Adminhtml_Block_Customer_Edit_Tab_View_Sales, Mage_Adminhtml_Block_Customer_Edit_Tab_View_Wishlist, Mage_Adminhtml_Block_Customer_Edit_Tab_Wishlist, Mage_Adminhtml_Block_Customer_Edit_Tabs, Mage_Adminhtml_Block_Customer_Edit, Mage_Adminhtml_Block_Customer_Grid, Mage_Adminhtml_Block_Customer_Group_Edit, Mage_Adminhtml_Block_Customer_Group_Grid, Mage_Adminhtml_Block_Customer_Group, Mage_Adminhtml_Block_Customer_Online_Filter, Mage_Adminhtml_Block_Customer_Online_Grid, Mage_Adminhtml_Block_Customer_Online, Mage_Adminhtml_Block_Customer, Mage_Adminhtml_Block_Dashboard_Diagrams, Mage_Adminhtml_Block_Dashboard_Graph, Mage_Adminhtml_Block_Dashboard_Grid, Mage_Adminhtml_Block_Dashboard_Grids, Mage_Adminhtml_Block_Dashboard_Orders_Grid, Mage_Adminhtml_Block_Dashboard_Searches_Last, Mage_Adminhtml_Block_Dashboard_Searches_Top, Mage_Adminhtml_Block_Dashboard_Tab_Amounts, Mage_Adminhtml_Block_Dashboard_Tab_Customers_Most, Mage_Adminhtml_Block_Dashboard_Tab_Customers_Newest, Mage_Adminhtml_Block_Dashboard_Tab_Orders, Mage_Adminhtml_Block_Dashboard_Tab_Products_Ordered, Mage_Adminhtml_Block_Dashboard_Tab_Products_Viewed, Mage_Adminhtml_Block_Dashboard, Mage_Adminhtml_Block_Extensions_Config_Edit, Mage_Adminhtml_Block_Extensions_Console_Edit, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Abstract, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Contents, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Depends, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Grid, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Load, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Maintainers, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Package, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Release, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tabs, Mage_Adminhtml_Block_Extensions_Custom_Edit, Mage_Adminhtml_Block_Extensions_Local_Edit_Tab_Actions, Mage_Adminhtml_Block_Extensions_Local_Edit_Tab_Changelog, Mage_Adminhtml_Block_Extensions_Local_Edit_Tab_Contents, Mage_Adminhtml_Block_Extensions_Local_Edit_Tab_Depends, Mage_Adminhtml_Block_Extensions_Local_Edit_Tab_Package, Mage_Adminhtml_Block_Extensions_Local_Edit_Tabs, Mage_Adminhtml_Block_Extensions_Local_Edit, Mage_Adminhtml_Block_Extensions_Local, Mage_Adminhtml_Block_Extensions_Remote_Edit_Tab_Actions, Mage_Adminhtml_Block_Extensions_Remote_Edit_Tab_Changelog, Mage_Adminhtml_Block_Extensions_Remote_Edit_Tab_Package, Mage_Adminhtml_Block_Extensions_Remote_Edit_Tabs, Mage_Adminhtml_Block_Extensions_Remote_Edit, Mage_Adminhtml_Block_Extensions_Remote, Mage_Adminhtml_Block_Media_Editor, Mage_Adminhtml_Block_Media_Uploader, Mage_Adminhtml_Block_Newsletter_Problem_Grid, Mage_Adminhtml_Block_Newsletter_Problem, Mage_Adminhtml_Block_Newsletter_Queue_Grid, Mage_Adminhtml_Block_Newsletter_Queue, Mage_Adminhtml_Block_Newsletter_Subscriber_Grid, Mage_Adminhtml_Block_Newsletter_Subscriber, Mage_Adminhtml_Block_Newsletter_Template_Edit_Form, Mage_Adminhtml_Block_Newsletter_Template_Edit, Mage_Adminhtml_Block_Newsletter_Template, Mage_Adminhtml_Block_Notification_Inbox, Mage_Adminhtml_Block_Page_Header, Mage_Adminhtml_Block_Page, Mage_Adminhtml_Block_Permissions_Buttons, Mage_Adminhtml_Block_Permissions_Editroles, Mage_Adminhtml_Block_Permissions_Edituser, Mage_Adminhtml_Block_Permissions_Grid_Role, Mage_Adminhtml_Block_Permissions_Grid_User, Mage_Adminhtml_Block_Permissions_Role_Grid_User, Mage_Adminhtml_Block_Permissions_Role, Mage_Adminhtml_Block_Permissions_Tab_Rolesedit, Mage_Adminhtml_Block_Permissions_Tab_Rolesusers, Mage_Adminhtml_Block_Permissions_Tab_Userroles, Mage_Adminhtml_Block_Permissions_User_Edit_Tab_Roles, Mage_Adminhtml_Block_Permissions_User_Edit_Tabs, Mage_Adminhtml_Block_Permissions_User_Edit, Mage_Adminhtml_Block_Permissions_User_Grid, Mage_Adminhtml_Block_Permissions_User, Mage_Adminhtml_Block_Permissions_UsernRoles, Mage_Adminhtml_Block_Permissions_Users, Mage_Adminhtml_Block_Poll_Answer_Edit, Mage_Adminhtml_Block_Poll_Edit_Tab_Answers_Grid, Mage_Adminhtml_Block_Poll_Edit_Tab_Answers_List, Mage_Adminhtml_Block_Poll_Edit_Tabs, Mage_Adminhtml_Block_Poll_Edit, Mage_Adminhtml_Block_Poll_Grid, Mage_Adminhtml_Block_Poll_Poll, Mage_Adminhtml_Block_Promo_Catalog_Edit_Form, Mage_Adminhtml_Block_Promo_Catalog_Edit_Tabs, Mage_Adminhtml_Block_Promo_Catalog_Edit, Mage_Adminhtml_Block_Promo_Catalog_Grid, Mage_Adminhtml_Block_Promo_Catalog, Mage_Adminhtml_Block_Promo_Quote_Edit_Form, Mage_Adminhtml_Block_Promo_Quote_Edit_Tabs, Mage_Adminhtml_Block_Promo_Quote_Edit, Mage_Adminhtml_Block_Promo_Quote_Grid, Mage_Adminhtml_Block_Promo_Quote, Mage_Adminhtml_Block_Rating_Edit_Tabs, Mage_Adminhtml_Block_Rating_Edit, Mage_Adminhtml_Block_Rating_Grid, Mage_Adminhtml_Block_Rating_Rating, Mage_Adminhtml_Block_Report_Customer_Accounts_Grid, Mage_Adminhtml_Block_Report_Customer_Accounts, Mage_Adminhtml_Block_Report_Customer_Orders_Grid, Mage_Adminhtml_Block_Report_Customer_Orders, Mage_Adminhtml_Block_Report_Customer_Totals_Grid, Mage_Adminhtml_Block_Report_Customer_Totals, Mage_Adminhtml_Block_Report_Grid, Mage_Adminhtml_Block_Report_Product_Downloads_Grid, Mage_Adminhtml_Block_Report_Product_Downloads, Mage_Adminhtml_Block_Report_Product_Grid, Mage_Adminhtml_Block_Report_Product_Lowstock_Grid, Mage_Adminhtml_Block_Report_Product_Lowstock, Mage_Adminhtml_Block_Report_Product_Ordered_Grid, Mage_Adminhtml_Block_Report_Product_Ordered, Mage_Adminhtml_Block_Report_Product_Sold_Grid, Mage_Adminhtml_Block_Report_Product_Sold, Mage_Adminhtml_Block_Report_Product_Viewed_Grid, Mage_Adminhtml_Block_Report_Product_Viewed, Mage_Adminhtml_Block_Report_Product, Mage_Adminhtml_Block_Report_Review_Customer_Grid, Mage_Adminhtml_Block_Report_Review_Customer, Mage_Adminhtml_Block_Report_Review_Detail_Grid, Mage_Adminhtml_Block_Report_Review_Detail, Mage_Adminhtml_Block_Report_Review_Product_Grid, Mage_Adminhtml_Block_Report_Review_Product, Mage_Adminhtml_Block_Report_Sales_Coupons_Grid, Mage_Adminhtml_Block_Report_Sales_Coupons, Mage_Adminhtml_Block_Report_Sales_Invoiced_Grid, Mage_Adminhtml_Block_Report_Sales_Invoiced, Mage_Adminhtml_Block_Report_Sales_Refunded_Grid, Mage_Adminhtml_Block_Report_Sales_Refunded, Mage_Adminhtml_Block_Report_Sales_Sales_Grid, Mage_Adminhtml_Block_Report_Sales_Sales, Mage_Adminhtml_Block_Report_Sales_Shipping_Grid, Mage_Adminhtml_Block_Report_Sales_Shipping, Mage_Adminhtml_Block_Report_Sales_Tax_Grid, Mage_Adminhtml_Block_Report_Sales_Tax, Mage_Adminhtml_Block_Report_Search_Grid, Mage_Adminhtml_Block_Report_Search, Mage_Adminhtml_Block_Report_Shopcart_Abandoned_Grid, Mage_Adminhtml_Block_Report_Shopcart_Abandoned, Mage_Adminhtml_Block_Report_Shopcart_Customer_Grid, Mage_Adminhtml_Block_Report_Shopcart_Customer, Mage_Adminhtml_Block_Report_Shopcart_Product_Grid, Mage_Adminhtml_Block_Report_Shopcart_Product, Mage_Adminhtml_Block_Report_Tag_Customer_Detail_Grid, Mage_Adminhtml_Block_Report_Tag_Customer_Detail, Mage_Adminhtml_Block_Report_Tag_Customer_Grid, Mage_Adminhtml_Block_Report_Tag_Customer, Mage_Adminhtml_Block_Report_Tag_Popular_Detail_Grid, Mage_Adminhtml_Block_Report_Tag_Popular_Detail, Mage_Adminhtml_Block_Report_Tag_Popular_Grid, Mage_Adminhtml_Block_Report_Tag_Popular, Mage_Adminhtml_Block_Report_Tag_Product_Detail_Grid, Mage_Adminhtml_Block_Report_Tag_Product_Detail, Mage_Adminhtml_Block_Report_Tag_Product_Grid, Mage_Adminhtml_Block_Report_Tag_Product, Mage_Adminhtml_Block_Report_Wishlist_Grid, Mage_Adminhtml_Block_Report_Wishlist, Mage_Adminhtml_Block_Review_Add, Mage_Adminhtml_Block_Review_Edit, Mage_Adminhtml_Block_Review_Grid, Mage_Adminhtml_Block_Review_Main, Mage_Adminhtml_Block_Review_Product_Grid, Mage_Adminhtml_Block_Review_Rating_Detailed, Mage_Adminhtml_Block_Review_Rating_Summary, Mage_Adminhtml_Block_Sales_Creditmemo_Grid, Mage_Adminhtml_Block_Sales_Creditmemo, Mage_Adminhtml_Block_Sales_Invoice_Grid, Mage_Adminhtml_Block_Sales_Invoice, Mage_Adminhtml_Block_Sales_Order_Create_Billing_Method, Mage_Adminhtml_Block_Sales_Order_Create_Coupons_Form, Mage_Adminhtml_Block_Sales_Order_Create_Coupons, Mage_Adminhtml_Block_Sales_Order_Create_Customer_Grid, Mage_Adminhtml_Block_Sales_Order_Create_Customer, Mage_Adminhtml_Block_Sales_Order_Create_Form, Mage_Adminhtml_Block_Sales_Order_Create_Items_Grid, Mage_Adminhtml_Block_Sales_Order_Create_Items, Mage_Adminhtml_Block_Sales_Order_Create_Newsletter_Form, Mage_Adminhtml_Block_Sales_Order_Create_Newsletter, Mage_Adminhtml_Block_Sales_Order_Create_Search_Grid, Mage_Adminhtml_Block_Sales_Order_Create_Search, Mage_Adminhtml_Block_Sales_Order_Create_Shipping_Method_Form, Mage_Adminhtml_Block_Sales_Order_Create_Shipping_Method, Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Cart, Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Compared, Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Pcompared, Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Pviewed, Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Reorder, Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Viewed, Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Wishlist, Mage_Adminhtml_Block_Sales_Order_Create_Store_Select, Mage_Adminhtml_Block_Sales_Order_Create_Store, Mage_Adminhtml_Block_Sales_Order_Create_Totals_Table, Mage_Adminhtml_Block_Sales_Order_Create_Totals, Mage_Adminhtml_Block_Sales_Order_Create, Mage_Adminhtml_Block_Sales_Order_Creditmemo_Create, Mage_Adminhtml_Block_Sales_Order_Creditmemo_View, Mage_Adminhtml_Block_Sales_Order_Grid, Mage_Adminhtml_Block_Sales_Order_Invoice_Create, Mage_Adminhtml_Block_Sales_Order_Invoice_View, Mage_Adminhtml_Block_Sales_Order_Shipment_Create, Mage_Adminhtml_Block_Sales_Order_Shipment_View, Mage_Adminhtml_Block_Sales_Order_View_Tab_Creditmemos, Mage_Adminhtml_Block_Sales_Order_View_Tab_Invoices, Mage_Adminhtml_Block_Sales_Order_View_Tab_Shipments, Mage_Adminhtml_Block_Sales_Order_View_Tabs, Mage_Adminhtml_Block_Sales_Order_View, Mage_Adminhtml_Block_Sales_Order, Mage_Adminhtml_Block_Sales_Shipment_Grid, Mage_Adminhtml_Block_Sales_Shipment, Mage_Adminhtml_Block_Sales, Mage_Adminhtml_Block_Sitemap_Edit_Form, Mage_Adminhtml_Block_Sitemap_Edit, Mage_Adminhtml_Block_Sitemap_Grid, Mage_Adminhtml_Block_Sitemap, Mage_Adminhtml_Block_Store_Switcher, Mage_Adminhtml_Block_System_Account_Edit, Mage_Adminhtml_Block_System_Cache_Edit, Mage_Adminhtml_Block_System_Config_Dwstree, Mage_Adminhtml_Block_System_Config_Edit, Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract, Mage_Adminhtml_Block_System_Config_Form_Field_Regexceptions, Mage_Adminhtml_Block_System_Config_Form, Mage_Adminhtml_Block_System_Convert_Gui_Edit_Tab_Upload, Mage_Adminhtml_Block_System_Convert_Gui_Edit_Tab_Wizard, Mage_Adminhtml_Block_System_Convert_Gui_Edit_Tabs, Mage_Adminhtml_Block_System_Convert_Gui_Edit, Mage_Adminhtml_Block_System_Convert_Gui_Grid, Mage_Adminhtml_Block_System_Convert_Gui, Mage_Adminhtml_Block_System_Convert_Profile_Edit_Tab_History, Mage_Adminhtml_Block_System_Convert_Profile_Edit_Tab_Run, Mage_Adminhtml_Block_System_Convert_Profile_Edit_Tabs, Mage_Adminhtml_Block_System_Convert_Profile_Edit, Mage_Adminhtml_Block_System_Convert_Profile_Grid, Mage_Adminhtml_Block_System_Convert_Profile, Mage_Adminhtml_Block_System_Currency_Edit_Form, Mage_Adminhtml_Block_System_Currency_Edit_Tabs, Mage_Adminhtml_Block_System_Currency_Rate_Matrix, Mage_Adminhtml_Block_System_Design_Edit_Tabs, Mage_Adminhtml_Block_System_Design_Edit, Mage_Adminhtml_Block_System_Design_Grid, Mage_Adminhtml_Block_System_Email_Template_Edit, Mage_Adminhtml_Block_System_Email_Template, Mage_Adminhtml_Block_System_Store_Delete_Form, Mage_Adminhtml_Block_System_Store_Delete, Mage_Adminhtml_Block_System_Store_Edit_Form, Mage_Adminhtml_Block_System_Store_Edit, Mage_Adminhtml_Block_System_Store_Grid, Mage_Adminhtml_Block_System_Store_Store, Mage_Adminhtml_Block_Tag_Customer_Grid, Mage_Adminhtml_Block_Tag_Customer, Mage_Adminhtml_Block_Tag_Edit_Form, Mage_Adminhtml_Block_Tag_Edit, Mage_Adminhtml_Block_Tag_Grid_All, Mage_Adminhtml_Block_Tag_Grid_Pending, Mage_Adminhtml_Block_Tag_Pending, Mage_Adminhtml_Block_Tag_Product_Grid, Mage_Adminhtml_Block_Tag_Product, Mage_Adminhtml_Block_Tag_Tag_Edit_Form, Mage_Adminhtml_Block_Tag_Tag_Edit, Mage_Adminhtml_Block_Tag_Tag_Grid, Mage_Adminhtml_Block_Tag_Tag, Mage_Adminhtml_Block_Tag, Mage_Adminhtml_Block_Tax_Class_Edit_Form, Mage_Adminhtml_Block_Tax_Class_Edit, Mage_Adminhtml_Block_Tax_Class_Grid, Mage_Adminhtml_Block_Tax_Class, Mage_Adminhtml_Block_Tax_Rate_Form, Mage_Adminhtml_Block_Tax_Rate_Grid, Mage_Adminhtml_Block_Tax_Rate_ImportExport, Mage_Adminhtml_Block_Tax_Rate_Toolbar_Add, Mage_Adminhtml_Block_Tax_Rate_Toolbar_Save, Mage_Adminhtml_Block_Tax_Rule_Edit_Form, Mage_Adminhtml_Block_Tax_Rule_Edit, Mage_Adminhtml_Block_Tax_Rule_Grid, Mage_Adminhtml_Block_Tax_Rule, Mage_Adminhtml_Block_Urlrewrite_Category_Tree, Mage_Adminhtml_Block_Urlrewrite_Edit_Form, Mage_Adminhtml_Block_Urlrewrite_Grid, Mage_Adminhtml_Block_Urlrewrite_Selector, Mage_Adminhtml_Block_Urlrewrite, Mage_Adminhtml_Block_Widget_Accordion_Item, Mage_Adminhtml_Block_Widget_Accordion, Mage_Adminhtml_Block_Widget_Breadcrumbs, Mage_Adminhtml_Block_Widget_Button, Mage_Adminhtml_Block_Widget_Form_Container, Mage_Adminhtml_Block_Widget_Form_Element_Gallery, Mage_Adminhtml_Block_Widget_Form_Element, Mage_Adminhtml_Block_Widget_Form, Mage_Adminhtml_Block_Widget_Grid_Container, Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract, Mage_Adminhtml_Block_Widget_View_Container, Mage_Adminhtml_Model_Sales_Order_Create, Mage_Adminhtml_Model_Session_Quote, Mage_Adminhtml_Model_Session, Mage_Adminhtml_Model_System_Store, Mage_AmazonPayments_Model_Payment, Mage_AmazonPayments_Model_Session, Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option_Search_Grid, Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option_Selection, Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option, Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle, Mage_Catalog_Block_Layer_Filter_Abstract, Mage_Catalog_Block_Layer_Filter_Attribute, Mage_Catalog_Block_Layer_Filter_Category, Mage_Catalog_Block_Layer_Filter_Price, Mage_Catalog_Block_Layer_State, Mage_Catalog_Block_Product_Send, Mage_Catalog_Block_Product_View_Additional, Mage_Catalog_Block_Product_View_Options, Mage_Catalog_Model_Layer_Filter_Attribute, Mage_Catalog_Model_Layer_Filter_Category, Mage_Catalog_Model_Layer_Filter_Price, Mage_Catalog_Model_Product_Visibility, Mage_Catalog_Model_Session, Mage_CatalogRule_Model_Rule_Action_Collection, Mage_CatalogRule_Model_Rule_Condition_Combine, Mage_CatalogSearch_Block_Term, Mage_CatalogSearch_Model_Session, Mage_Checkout_Block_Cart_Abstract, Mage_Checkout_Block_Cart_Sidebar, Mage_Checkout_Model_Session, Mage_Checkout_Model_Type_Multishipping_State, Mage_Checkout_Model_Type_Multishipping, Mage_Core_Block_Store_Switcher, Mage_Core_Model_Email, Mage_Customer_Block_Account, Mage_Customer_Block_Newsletter, Mage_Customer_Model_Session, Mage_Downloadable_Block_Adminhtml_Catalog_Product_Edit_Tab_Downloadable_Links, Mage_Downloadable_Block_Adminhtml_Catalog_Product_Edit_Tab_Downloadable_Samples, Mage_Downloadable_Block_Adminhtml_Catalog_Product_Edit_Tab_Downloadable, Mage_Downloadable_Block_Customer_Products_List, Mage_GiftMessage_Block_Message_Form, Mage_GiftMessage_Block_Message_Helper, Mage_GoogleBase_Block_Adminhtml_Captcha, Mage_GoogleBase_Block_Adminhtml_Items_Item, Mage_GoogleBase_Block_Adminhtml_Items_Product, Mage_GoogleBase_Block_Adminhtml_Items, Mage_GoogleBase_Block_Adminhtml_Store_Switcher, Mage_GoogleBase_Block_Adminhtml_Types_Edit_Attributes, Mage_GoogleBase_Block_Adminhtml_Types_Edit, Mage_GoogleBase_Block_Adminhtml_Types_Grid, Mage_GoogleBase_Block_Adminhtml_Types, Mage_GoogleOptimizer_Block_Adminhtml_Catalog_Category_Edit_Tab_Googleoptimizer, Mage_GoogleOptimizer_Block_Adminhtml_Cms_Page_Edit_Renderer_Conversion, Mage_Install_Block_Admin, Mage_Install_Block_Begin, Mage_Install_Block_Config, Mage_Install_Block_Download, Mage_Install_Block_End, Mage_Install_Block_Locale, Mage_Install_Block_State, Mage_Install_Model_Session, Mage_Log_Model_Customer, Mage_Newsletter_Model_Session, Mage_Page_Block_Html_Breadcrumbs, Mage_Page_Block_Html_Toplinks, Mage_Page_Block_Html, Mage_Page_Block_Js_Translate, Mage_Payment_Model_Method_Abstract, Mage_Paypal_Model_Session, Mage_PaypalUk_Model_Session, Mage_Poll_Block_ActivePoll, Mage_Poll_Block_Poll, Mage_ProductAlert_Block_Email_Price, Mage_ProductAlert_Block_Email_Stock, Mage_ProductAlert_Block_Price, Mage_ProductAlert_Block_Stock, Mage_Rating_Block_Entity_Detailed, Mage_Rating_Model_Rating_Option_Vote, Mage_Rating_Model_Rating_Option, Mage_Rating_Model_Rating, Mage_Reports_Model_Session, Mage_Review_Block_Customer_Recent, Mage_Review_Block_Customer_View, Mage_Review_Block_Form, Mage_Review_Block_View, Mage_Review_Model_Review_Summary, Mage_Review_Model_Session, Mage_Rss_Block_Order_Details, Mage_Rss_Model_Session, Mage_Rule_Model_Action_Abstract, Mage_Rule_Model_Action_Collection, Mage_Rule_Model_Condition_Abstract, Mage_Rule_Model_Condition_Combine, Mage_Sales_Block_Order_Details, Mage_Sales_Block_Order_History, Mage_Sales_Block_Order_Print_Creditmemo, Mage_Sales_Block_Order_Print_Invoice, Mage_Sales_Block_Order_Print_Shipment, Mage_Sales_Block_Order_Recent, Mage_Sales_Block_Reorder_Sidebar, Mage_Sales_Model_Entity_Sale_Collection, Mage_Sales_Model_Mysql4_Sale_Collection, Mage_SalesRule_Model_Rule_Action_Collection, Mage_SalesRule_Model_Rule_Condition_Combine, Mage_SalesRule_Model_Rule_Condition_Product_Combine, Mage_SalesRule_Model_Rule_Condition_Product_Found, Mage_SalesRule_Model_Rule_Condition_Product_Subselect, Mage_Shipping_Model_Carrier_Abstract, Mage_Shipping_Model_Carrier_Tablerate, Mage_Tag_Model_Session, Mage_Weee_Block_Renderer_Weee_Tax, Mage_Wishlist_Block_Share_Email_Items, Mage_Wishlist_Block_Share_Email_Rss, and Mage_Wishlist_Model_Session.
Definition at line 82 of file Object.php.
00083 { 00084 $args = func_get_args(); 00085 if (empty($args[0])) { 00086 $args[0] = array(); 00087 } 00088 $this->_data = $args[0]; 00089 00090 $this->_construct(); 00091 }
__call | ( | $ | method, | |
$ | args | |||
) |
Set/Get attribute wrapper
string | $method | |
array | $args |
Definition at line 519 of file Object.php.
00520 { 00521 switch (substr($method, 0, 3)) { 00522 case 'get' : 00523 //Varien_Profiler::start('GETTER: '.get_class($this).'::'.$method); 00524 $key = $this->_underscore(substr($method,3)); 00525 $data = $this->getData($key, isset($args[0]) ? $args[0] : null); 00526 //Varien_Profiler::stop('GETTER: '.get_class($this).'::'.$method); 00527 return $data; 00528 00529 case 'set' : 00530 //Varien_Profiler::start('SETTER: '.get_class($this).'::'.$method); 00531 $key = $this->_underscore(substr($method,3)); 00532 $result = $this->setData($key, isset($args[0]) ? $args[0] : null); 00533 //Varien_Profiler::stop('SETTER: '.get_class($this).'::'.$method); 00534 return $result; 00535 00536 case 'uns' : 00537 //Varien_Profiler::start('UNS: '.get_class($this).'::'.$method); 00538 $key = $this->_underscore(substr($method,3)); 00539 $result = $this->unsetData($key); 00540 //Varien_Profiler::stop('UNS: '.get_class($this).'::'.$method); 00541 return $result; 00542 00543 case 'has' : 00544 //Varien_Profiler::start('HAS: '.get_class($this).'::'.$method); 00545 $key = $this->_underscore(substr($method,3)); 00546 //Varien_Profiler::stop('HAS: '.get_class($this).'::'.$method); 00547 return isset($this->_data[$key]); 00548 } 00549 throw new Varien_Exception("Invalid method ".get_class($this)."::".$method."(".print_r($args,1).")"); 00550 }
__get | ( | $ | var | ) |
Attribute getter (deprecated)
string | $var |
Definition at line 559 of file Object.php.
00560 { 00561 $var = $this->_underscore($var); 00562 return $this->getData($var); 00563 }
__set | ( | $ | var, | |
$ | value | |||
) |
Attribute setter (deprecated)
string | $var | |
mixed | $value |
Definition at line 571 of file Object.php.
00572 { 00573 $this->_isChanged = true; 00574 $var = $this->_underscore($var); 00575 $this->setData($var, $value); 00576 }
Convert object attributes to array
array | $arrAttributes array of required attributes |
Reimplemented in Varien_Data_Form_Abstract.
Definition at line 363 of file Object.php.
00364 { 00365 if (empty($arrAttributes)) { 00366 return $this->_data; 00367 } 00368 00369 $arrRes = array(); 00370 foreach ($arrAttributes as $attribute) { 00371 if (isset($this->_data[$attribute])) { 00372 $arrRes[$attribute] = $this->_data[$attribute]; 00373 } 00374 else { 00375 $arrRes[$attribute] = null; 00376 } 00377 } 00378 return $arrRes; 00379 }
Convert object attributes to JSON
array | $arrAttributes array of required attributes |
Definition at line 459 of file Object.php.
00460 { 00461 $arrData = $this->toArray($arrAttributes); 00462 $json = Zend_Json::encode($arrData); 00463 return $json; 00464 }
Convert object attributes to string
array | $arrAttributes array of required attributes | |
string | $valueSeparator |
Definition at line 484 of file Object.php.
00485 { 00486 $arrData = $this->toArray($arrAttributes); 00487 return implode($valueSeparator, $arrData); 00488 }
__toXml | ( | array $ | arrAttributes = array() , |
|
$ | rootName = 'item' , |
|||
$ | addOpenTag = false , |
|||
$ | addCdata = true | |||
) | [protected] |
Convert object attributes to XML
array | $arrAttributes array of required attributes | |
string | $rootName name of the root element |
Definition at line 416 of file Object.php.
00417 { 00418 $xml = ''; 00419 if ($addOpenTag) { 00420 $xml.= '<?xml version="1.0" encoding="UTF-8"?>'."\n"; 00421 } 00422 if (!empty($rootName)) { 00423 $xml.= '<'.$rootName.'>'."\n"; 00424 } 00425 $xmlModel = new Varien_Simplexml_Element('<node></node>'); 00426 $arrData = $this->toArray($arrAttributes); 00427 foreach ($arrData as $fieldName => $fieldValue) { 00428 if ($addCdata === true) { 00429 $fieldValue = "<![CDATA[$fieldValue]]>"; 00430 } else { 00431 $fieldValue = $xmlModel->xmlentities($fieldValue); 00432 } 00433 $xml.= "<$fieldName>$fieldValue</$fieldName>"."\n"; 00434 } 00435 if (!empty($rootName)) { 00436 $xml.= '</'.$rootName.'>'."\n"; 00437 } 00438 return $xml; 00439 }
_camelize | ( | $ | name | ) | [protected] |
_construct | ( | ) | [protected] |
Enter description here...
Reimplemented in Mage_Admin_Model_Role, Mage_Admin_Model_Roles, Mage_Admin_Model_Rules, Mage_Admin_Model_User, Mage_Adminhtml_Block_Backup_Grid, Mage_Adminhtml_Block_Catalog_Form_Renderer_Fieldset_Element, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Main_Tree_Attribute, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Main_Tree_Group, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Main, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Toolbar_Add, Mage_Adminhtml_Block_Catalog_Product_Edit_Action_Attribute_Tab_Attributes, Mage_Adminhtml_Block_Catalog_Product_Edit_Action_Attribute_Tabs, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Ajax_Serializer, Mage_Adminhtml_Block_Dashboard_Bar, Mage_Adminhtml_Block_Dashboard_Sales, Mage_Adminhtml_Block_Dashboard_Totals, Mage_Adminhtml_Block_Extensions_Local_Grid, Mage_Adminhtml_Block_Extensions_Remote_Grid, Mage_Adminhtml_Block_Newsletter_Template_Grid, Mage_Adminhtml_Block_Notification_Grid, Mage_Adminhtml_Block_Notification_Toolbar, Mage_Adminhtml_Block_Notification_Window, Mage_Adminhtml_Block_Page_Footer, Mage_Adminhtml_Block_Page_Menu, Mage_Adminhtml_Block_Sales_Items_Abstract, Mage_Adminhtml_Block_Sales_Order_Create_Totals_Default, Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Tracking, Mage_Adminhtml_Block_Sales_Order_Shipment_Tracking_Info, Mage_Adminhtml_Block_Sales_Order_View_Form, Mage_Adminhtml_Block_Sales_Order_View_Tab_History, Mage_Adminhtml_Block_System_Config_Tabs, Mage_Adminhtml_Block_System_Currency, Mage_Adminhtml_Block_System_Email_Template_Grid, Mage_Adminhtml_Block_Tax_Rate_Title, Mage_Adminhtml_Block_Widget_Form_Renderer_Element, Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element, Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset, Mage_Adminhtml_Block_Widget_Tabs, Mage_Adminhtml_Block_Tree, Mage_AdminNotification_Model_Feed, Mage_AdminNotification_Model_Inbox, Mage_AmazonPayments_Block_Asp_Form, Mage_AmazonPayments_Block_Cba_Form, Mage_AmazonPayments_Block_Form, Mage_AmazonPayments_Model_Api_Cba_Document, Mage_AmazonPayments_Model_Api_Debug, Mage_Api_Model_Acl_Role, Mage_Api_Model_Role, Mage_Api_Model_Roles, Mage_Api_Model_Rules, Mage_Api_Model_User, Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option_Search, Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Checkbox, Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Multi, Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Radio, Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Select, Mage_Bundle_Model_Option, Mage_Bundle_Model_Price_Index, Mage_Bundle_Model_Selection, Mage_Catalog_Block_Navigation, Mage_Catalog_Block_Product_Compare_Sidebar, Mage_Catalog_Block_Product_List_Toolbar, Mage_Catalog_Model_Category, Mage_Catalog_Model_Product_Compare_Item, Mage_Catalog_Model_Product_Flat_Indexer, Mage_Catalog_Model_Product_Link, Mage_Catalog_Model_Product_Option_Value, Mage_Catalog_Model_Product_Option, Mage_Catalog_Model_Product_Status, Mage_Catalog_Model_Product_Type_Configurable_Attribute, Mage_Catalog_Model_Product_Website, Mage_Catalog_Model_Product, Mage_Catalog_Model_Sendfriend, Mage_CatalogIndex_Model_Aggregation, Mage_CatalogIndex_Model_Attribute, Mage_CatalogIndex_Model_Data_Abstract, Mage_CatalogIndex_Model_Data_Configurable, Mage_CatalogIndex_Model_Data_Grouped, Mage_CatalogIndex_Model_Indexer_Eav, Mage_CatalogIndex_Model_Indexer_Minimalprice, Mage_CatalogIndex_Model_Indexer_Price, Mage_CatalogIndex_Model_Indexer_Tierprice, Mage_CatalogIndex_Model_Indexer, Mage_CatalogIndex_Model_Observer, Mage_CatalogIndex_Model_Price, Mage_CatalogIndex_Model_Retreiver, Mage_CatalogInventory_Model_Stock_Item, Mage_CatalogInventory_Model_Stock_Status, Mage_CatalogInventory_Model_Stock, Mage_CatalogRule_Model_Rule_Product_Price, Mage_CatalogRule_Model_Rule, Mage_CatalogSearch_Model_Fulltext, Mage_CatalogSearch_Model_Query, Mage_Checkout_Block_Onepage_Billing, Mage_Checkout_Block_Onepage_Login, Mage_Checkout_Block_Onepage_Payment, Mage_Checkout_Block_Onepage_Review, Mage_Checkout_Block_Onepage_Shipping_Method, Mage_Checkout_Block_Onepage_Shipping, Mage_Checkout_Block_Total_Default, Mage_Checkout_Model_Agreement, Mage_Cms_Model_Block, Mage_Cms_Model_Page, Mage_Compiler_Block_Process, Mage_Core_Block_Abstract, Mage_Core_Block_Template_Zend, Mage_Core_Block_Text_Tag_Css_Admin, Mage_Core_Block_Text_Tag_Css, Mage_Core_Block_Text_Tag_Debug, Mage_Core_Block_Text_Tag_Js, Mage_Core_Block_Text_Tag, Mage_Core_Model_Config_Data, Mage_Core_Model_Config_Options, Mage_Core_Model_Convert_History, Mage_Core_Model_Convert_Profile, Mage_Core_Model_Design, Mage_Core_Model_Flag, Mage_Core_Model_Language, Mage_Core_Model_Layout_Data, Mage_Core_Model_Store_Group, Mage_Core_Model_Store, Mage_Core_Model_Translate_String, Mage_Core_Model_Url_Rewrite, Mage_Core_Model_Url, Mage_Core_Model_Website, Mage_Cron_Model_Schedule, Mage_Customer_Block_Widget_Dob, Mage_Customer_Block_Widget_Name, Mage_Customer_Block_Widget_Taxvat, Mage_Customer_Model_Address, Mage_Customer_Model_Customer, Mage_Customer_Model_Group, Mage_Dataflow_Model_Batch_Export, Mage_Dataflow_Model_Batch_Import, Mage_Dataflow_Model_Batch, Mage_Dataflow_Model_Import, Mage_Dataflow_Model_Profile_History, Mage_Dataflow_Model_Profile, Mage_Dataflow_Model_Session, Mage_Directory_Model_Country_Format, Mage_Directory_Model_Country, Mage_Directory_Model_Currency, Mage_Directory_Model_Region, Mage_Downloadable_Model_Link_Purchased_Item, Mage_Downloadable_Model_Link_Purchased, Mage_Downloadable_Model_Link, Mage_Downloadable_Model_Sample, 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_GiftMessage_Block_Message_Inline, Mage_GiftMessage_Model_Message, Mage_GiftRegistry_Model_Gift, Mage_GoogleBase_Model_Attribute, Mage_GoogleBase_Model_Item, Mage_GoogleBase_Model_Type, Mage_GoogleCheckout_Block_Form, Mage_GoogleCheckout_Model_Api_Debug, Mage_GoogleOptimizer_Model_Code, Mage_Log_Model_Aggregation, Mage_Log_Model_Log, Mage_Log_Model_Visitor_Online, Mage_Log_Model_Visitor, Mage_Media_Model_Image, Mage_Newsletter_Model_Problem, Mage_Newsletter_Model_Queue, Mage_Newsletter_Model_Template, Mage_Page_Block_Html_Footer, Mage_Page_Block_Html_Head, Mage_Page_Block_Html_Header, Mage_Page_Block_Html_Pager, Mage_Page_Block_Template_Container, Mage_Page_Block_Template_Links, Mage_Paygate_Model_Authorizenet_Debug, Mage_Payment_Block_Form_Cc, Mage_Payment_Block_Form_Ccsave, Mage_Payment_Block_Form_Checkmo, Mage_Payment_Block_Form_Purchaseorder, Mage_Payment_Block_Info_Cc, Mage_Payment_Block_Info_Ccsave, Mage_Payment_Block_Info_Checkmo, Mage_Payment_Block_Info_Purchaseorder, Mage_Payment_Block_Info, Mage_Paypal_Block_Express_Form, Mage_Paypal_Block_Express_Info, Mage_Paypal_Block_Standard_Form, Mage_Paypal_Model_Api_Debug, Mage_PaypalUk_Block_Direct_Form, Mage_PaypalUk_Block_Direct_Info, Mage_PaypalUk_Block_Express_Form, Mage_PaypalUk_Block_Express_Info, Mage_PaypalUk_Model_Api_Debug, Mage_Poll_Model_Poll_Answer, Mage_Poll_Model_Poll_Vote, Mage_Poll_Model_Poll, Mage_ProductAlert_Model_Price, Mage_ProductAlert_Model_Stock, Mage_Rating_Model_Rating_Entity, Mage_Reports_Model_Event_Type, Mage_Reports_Model_Event, Mage_Review_Block_Customer_List, Mage_Review_Model_Review, Mage_Rss_Block_Catalog_Category, Mage_Rss_Block_Catalog_New, Mage_Rss_Block_Catalog_NotifyStock, Mage_Rss_Block_Catalog_Review, Mage_Rss_Block_Catalog_Salesrule, Mage_Rss_Block_Catalog_Special, Mage_Rss_Block_Catalog_Tag, Mage_Rss_Block_Order_New, Mage_Rss_Block_Order_Status, Mage_Rule_Model_Rule, Mage_Sales_Block_Items_Abstract, Mage_Sales_Block_Order_Creditmemo, Mage_Sales_Block_Order_Info, Mage_Sales_Block_Order_Invoice, Mage_Sales_Block_Order_Shipment, Mage_Sales_Block_Order_View, Mage_Sales_Model_Order_Address, Mage_Sales_Model_Order_Creditmemo_Comment, Mage_Sales_Model_Order_Creditmemo_Item, Mage_Sales_Model_Order_Creditmemo, Mage_Sales_Model_Order_Invoice_Comment, Mage_Sales_Model_Order_Invoice_Item, Mage_Sales_Model_Order_Invoice, Mage_Sales_Model_Order_Item, Mage_Sales_Model_Order_Payment, Mage_Sales_Model_Order_Shipment_Comment, Mage_Sales_Model_Order_Shipment_Item, Mage_Sales_Model_Order_Shipment_Track, Mage_Sales_Model_Order_Shipment, Mage_Sales_Model_Order_Status_History, Mage_Sales_Model_Order_Status, Mage_Sales_Model_Order_Tax, Mage_Sales_Model_Order, Mage_Sales_Model_Quote_Address_Item, Mage_Sales_Model_Quote_Address_Rate, Mage_Sales_Model_Quote_Address, Mage_Sales_Model_Quote_Item_Option, Mage_Sales_Model_Quote_Item, Mage_Sales_Model_Quote_Payment, Mage_Sales_Model_Quote, Mage_SalesRule_Model_Rule_Customer, Mage_SalesRule_Model_Rule_Product, Mage_SalesRule_Model_Rule, Mage_SalesRule_Model_Validator, Mage_Sendfriend_Model_Sendfriend, Mage_Sitemap_Model_Sitemap, Mage_Tag_Block_Customer_Recent, Mage_Tag_Block_Customer_View, Mage_Tag_Model_Tag_Relation, Mage_Tag_Model_Tag, Mage_Tax_Model_Calculation_Rate_Title, Mage_Tax_Model_Calculation_Rate, Mage_Tax_Model_Calculation_Rule, Mage_Tax_Model_Calculation, Mage_Tax_Model_Class, Mage_Weee_Model_Tax, Mage_Wishlist_Model_Item, Mage_Wishlist_Model_Mysql4_Wishlist_Collection, and Mage_Wishlist_Model_Wishlist.
Definition at line 97 of file Object.php.
_getData | ( | $ | key | ) | [protected] |
Get value from _data array without parse key
string | $key |
Definition at line 309 of file Object.php.
Set required array elements
array | $arr | |
array | $elements |
Definition at line 399 of file Object.php.
00400 { 00401 foreach ($elements as $element) { 00402 if (!isset($arr[$element])) { 00403 $arr[$element] = null; 00404 } 00405 } 00406 return $arr; 00407 }
_underscore | ( | $ | name | ) | [protected] |
Converts field names for setters and geters
$this->setMyField($value) === $this->setData('my_field', $value) Uses cache to eliminate unneccessary preg_replace
string | $name |
Definition at line 600 of file Object.php.
00601 { 00602 if (isset(self::$_underscoreCache[$name])) { 00603 return self::$_underscoreCache[$name]; 00604 } 00605 #Varien_Profiler::start('underscore'); 00606 $result = strtolower(preg_replace('/(.)([A-Z])/', "$1_$2", $name)); 00607 #Varien_Profiler::stop('underscore'); 00608 self::$_underscoreCache[$name] = $result; 00609 return $result; 00610 }
addData | ( | array $ | arr | ) |
Add data to the object.
Retains previous data in the object.
array | $arr |
Definition at line 178 of file Object.php.
00179 { 00180 foreach($arr as $index=>$value) { 00181 $this->setData($index, $value); 00182 } 00183 return $this; 00184 }
dataHasChangedFor | ( | $ | field | ) |
Enter description here...
string | $field |
Definition at line 680 of file Object.php.
00681 { 00682 $newData = $this->getData($field); 00683 $origData = $this->getOrigData($field); 00684 return $newData!=$origData; 00685 }
debug | ( | $ | data = null , |
|
&$ | objects = array() | |||
) |
Definition at line 737 of file Object.php.
00738 { 00739 if (is_null($data)) { 00740 $hash = spl_object_hash($this); 00741 if (!empty($objects[$hash])) { 00742 return '*** RECURSION ***'; 00743 } 00744 $objects[$hash] = true; 00745 $data = $this->getData(); 00746 } 00747 $debug = array(); 00748 foreach ($data as $key=>$value) { 00749 if (is_scalar($value)) { 00750 $debug[$key] = $value; 00751 } elseif (is_array($value)) { 00752 $debug[$key] = $this->debug($value, $objects); 00753 } elseif ($value instanceof Varien_Object) { 00754 $debug[$key.' ('.get_class($value).')'] = $value->debug(null, $objects); 00755 } 00756 } 00757 return $debug; 00758 }
flagDirty | ( | $ | field, | |
$ | flag = true | |||
) |
Enter description here...
string | $field | |
boolean | $flag |
Definition at line 711 of file Object.php.
00712 { 00713 if (is_null($field)) { 00714 foreach ($this->getData() as $field=>$value) { 00715 $this->flagDirty($field, $flag); 00716 } 00717 } else { 00718 if ($flag) { 00719 $this->_dirty[$field] = true; 00720 } else { 00721 unset($this->_dirty[$field]); 00722 } 00723 } 00724 return $this; 00725 }
getData | ( | $ | key = '' , |
|
$ | index = null | |||
) |
Retrieves data from the object
If $key is empty will return all the data as an array Otherwise it will return value of the attribute specified by $key
If $index is specified it will assume that attribute data is an array and retrieve corresponding member.
string | $key | |
string|int | $index | |
mixed | $default |
If we have any data, even if it empty - we should use it, anyway
Reimplemented in Mage_Core_Model_Session_Abstract_Varien, Mage_Core_Model_Session_Abstract_Zend, Mage_Payment_Model_Info, and Mage_Sales_Model_Order.
Definition at line 246 of file Object.php.
00247 { 00248 if (''===$key) { 00249 return $this->_data; 00250 } 00251 00252 $default = null; 00253 00254 // accept a/b/c as ['a']['b']['c'] 00255 if (strpos($key,'/')) { 00256 $keyArr = explode('/', $key); 00257 $data = $this->_data; 00258 foreach ($keyArr as $i=>$k) { 00259 if ($k==='') { 00260 return $default; 00261 } 00262 if (is_array($data)) { 00263 if (!isset($data[$k])) { 00264 return $default; 00265 } 00266 $data = $data[$k]; 00267 } elseif ($data instanceof Varien_Object) { 00268 $data = $data->getData($k); 00269 } else { 00270 return $default; 00271 } 00272 } 00273 return $data; 00274 } 00275 00276 // legacy functionality for $index 00277 if (isset($this->_data[$key])) { 00278 if (is_null($index)) { 00279 return $this->_data[$key]; 00280 } 00281 00282 $value = $this->_data[$key]; 00283 if (is_array($value)) { 00284 //if (isset($value[$index]) && (!empty($value[$index]) || strlen($value[$index]) > 0)) { 00285 /** 00286 * If we have any data, even if it empty - we should use it, anyway 00287 */ 00288 if (isset($value[$index])) { 00289 return $value[$index]; 00290 } 00291 return null; 00292 } elseif (is_string($value)) { 00293 $arr = explode("\n", $value); 00294 return (isset($arr[$index]) && (!empty($arr[$index]) || strlen($arr[$index]) > 0)) ? $arr[$index] : null; 00295 } elseif ($value instanceof Varien_Object) { 00296 return $value->getData($index); 00297 } 00298 return $default; 00299 } 00300 return $default; 00301 }
getDataSetDefault | ( | $ | key, | |
$ | default | |||
) |
Fast get data or set default if value is not available
string | $key | |
mixed | $default |
Definition at line 334 of file Object.php.
00335 { 00336 if (!isset($this->_data[$key])) { 00337 $this->_data[$key] = $default; 00338 } 00339 return $this->_data[$key]; 00340 }
getDataUsingMethod | ( | $ | key, | |
$ | args = null | |||
) |
getId | ( | ) |
Retrieve object id
Reimplemented in Mage_Admin_Model_User, Mage_Adminhtml_Block_Widget, Mage_AmazonPayments_Model_Api_Asp_Fps_Response_Abstract, Mage_Api_Model_User, Mage_CatalogInventory_Model_Stock, Mage_Core_Block_Html_Select, Mage_Core_Model_Abstract, Mage_Core_Model_Email_Template, Mage_Core_Model_Store, Mage_Newsletter_Model_Subscriber, Mage_Rating_Model_Rating_Option, Varien_Data_Form_Element_Abstract, and Varien_Data_Tree_Node.
Definition at line 145 of file Object.php.
00146 { 00147 if ($this->getIdFieldName()) { 00148 return $this->getData($this->getIdFieldName()); 00149 } 00150 return $this->getData('id'); 00151 }
getIdFieldName | ( | ) |
Retrieve name of object id field
string | $name |
Reimplemented in Mage_Core_Model_Abstract.
Definition at line 135 of file Object.php.
getOrigData | ( | $ | key = null |
) |
Enter description here...
string | $key |
Definition at line 649 of file Object.php.
00650 { 00651 if (is_null($key)) { 00652 return $this->_origData; 00653 } 00654 return isset($this->_origData[$key]) ? $this->_origData[$key] : null; 00655 }
hasData | ( | $ | key = '' |
) |
If $key is empty, checks whether there's any data in the object Otherwise checks if the specified attribute is set.
string | $key |
Definition at line 349 of file Object.php.
00350 { 00351 if (empty($key) || !is_string($key)) { 00352 return !empty($this->_data); 00353 } 00354 return array_key_exists($key, $this->_data); 00355 }
isDeleted | ( | $ | isDeleted = null |
) |
Enter description here...
boolean | $isDeleted |
Definition at line 108 of file Object.php.
00109 { 00110 $result = $this->_isDeleted; 00111 if (!is_null($isDeleted)) { 00112 $this->_isDeleted = $isDeleted; 00113 } 00114 return $result; 00115 }
isDirty | ( | $ | field = null |
) |
Enter description here...
string | $field |
Definition at line 693 of file Object.php.
00694 { 00695 if (empty($this->_dirty)) { 00696 return false; 00697 } 00698 if (is_null($field)) { 00699 return true; 00700 } 00701 return isset($this->_dirty[$field]); 00702 }
isEmpty | ( | ) |
offsetExists | ( | $ | offset | ) |
offsetGet | ( | $ | offset | ) |
offsetSet | ( | $ | offset, | |
$ | value | |||
) |
offsetUnset | ( | $ | offset | ) |
serialize | ( | $ | attributes = array() , |
|
$ | valueSeparator = '=' , |
|||
$ | fieldSeparator = ' ' , |
|||
$ | quote = '"' | |||
) |
serialize object attributes
array | $attributes | |
string | $valueSeparator | |
string | $fieldSeparator | |
string | $quote |
Reimplemented in Varien_Data_Form_Element_Abstract.
Definition at line 626 of file Object.php.
00627 { 00628 $res = ''; 00629 $data = array(); 00630 if (empty($attributes)) { 00631 $attributes = array_keys($this->_data); 00632 } 00633 00634 foreach ($this->_data as $key => $value) { 00635 if (in_array($key, $attributes)) { 00636 $data[] = $key . $valueSeparator . $quote . $value . $quote; 00637 } 00638 } 00639 $res = implode($fieldSeparator, $data); 00640 return $res; 00641 }
setData | ( | $ | key, | |
$ | value = null | |||
) |
Overwrite data in the object.
$key can be string or array. If $key is string, the attribute value will be overwritten by $value
If $key is an array, it will overwrite all the data in the object.
$isChanged will specify if the object needs to be saved after an update.
string|array | $key | |
mixed | $value | |
boolean | $isChanged |
Reimplemented in Mage_Catalog_Model_Abstract.
Definition at line 201 of file Object.php.
00202 { 00203 if(is_array($key)) { 00204 $this->_data = $key; 00205 } else { 00206 $this->_data[$key] = $value; 00207 } 00208 return $this; 00209 }
setDataUsingMethod | ( | $ | key, | |
$ | args = array() | |||
) |
Definition at line 314 of file Object.php.
00315 { 00316 $method = 'set'.$this->_camelize($key); 00317 $this->$method($args); 00318 return $this; 00319 }
setId | ( | $ | value | ) |
Set object id field value
mixed | $value |
Reimplemented in Mage_Core_Block_Html_Select, Mage_Core_Model_Abstract, Mage_Core_Model_Email_Template, Mage_Newsletter_Model_Subscriber, Mage_Rating_Model_Rating_Option, and Varien_Data_Form_Element_Abstract.
Definition at line 159 of file Object.php.
00160 { 00161 if ($this->getIdFieldName()) { 00162 $this->setData($this->getIdFieldName(), $value); 00163 } 00164 else { 00165 $this->setData('id', $value); 00166 } 00167 return $this; 00168 }
setIdFieldName | ( | $ | name | ) |
set name of object id field
string | $name |
Definition at line 123 of file Object.php.
setOrigData | ( | $ | key = null , |
|
$ | data = null | |||
) |
Enter description here...
string | $key | |
mixed | $data |
Reimplemented in Mage_Catalog_Model_Product.
Definition at line 664 of file Object.php.
00665 { 00666 if (is_null($key)) { 00667 $this->_origData = $this->_data; 00668 } else { 00669 $this->_origData[$key] = $data; 00670 } 00671 return $this; 00672 }
Public wrapper for __toArray
array | $arrAttributes |
Reimplemented in Mage_Catalog_Model_Product, Mage_CatalogRule_Model_Rule, Mage_Sales_Model_Quote_Address, Mage_Sales_Model_Quote_Item, and Mage_SalesRule_Model_Rule.
Definition at line 387 of file Object.php.
00388 { 00389 return $this->__toArray($arrAttributes); 00390 }
Public wrapper for __toJson
array | $arrAttributes |
Definition at line 472 of file Object.php.
00473 { 00474 return $this->__toJson($arrAttributes); 00475 }
toString | ( | $ | format = '' |
) |
Public wrapper for __toString
Will use $format as an template and substitute {{key}} for attributes
string | $format |
Reimplemented in Mage_AmazonPayments_Model_Api_Asp_Ipn_Request, Mage_CatalogRule_Model_Rule, and Mage_SalesRule_Model_Rule.
Definition at line 498 of file Object.php.
00499 { 00500 if (empty($format)) { 00501 $str = implode(', ', $this->getData()); 00502 } else { 00503 preg_match_all('/\{\{([a-z0-9_]+)\}\}/is', $format, $matches); 00504 foreach ($matches[1] as $var) { 00505 $format = str_replace('{{'.$var.'}}', $this->getData($var), $format); 00506 } 00507 $str = $format; 00508 } 00509 return $str; 00510 }
toXml | ( | array $ | arrAttributes = array() , |
|
$ | rootName = 'item' , |
|||
$ | addOpenTag = false , |
|||
$ | addCdata = true | |||
) |
Public wrapper for __toXml
array | $arrAttributes | |
string | $rootName |
Definition at line 448 of file Object.php.
00449 { 00450 return $this->__toXml($arrAttributes, $rootName, $addOpenTag, $addCdata); 00451 }
unsetData | ( | $ | key = null |
) |
Unset data from the object.
$key can be a string only. Array will be ignored.
$isChanged will specify if the object needs to be saved after an update.
string | $key | |
boolean | $isChanged |
Reimplemented in Mage_Catalog_Model_Abstract, and Mage_Sales_Model_Order.
Definition at line 222 of file Object.php.
00223 { 00224 if (is_null($key)) { 00225 $this->_data = array(); 00226 } else { 00227 unset($this->_data[$key]); 00228 } 00229 return $this; 00230 }
$_camelizeCache = array() [static, protected] |
Definition at line 66 of file Object.php.
$_data = array() [protected] |
Definition at line 43 of file Object.php.
$_idFieldName = null [protected] |
Definition at line 57 of file Object.php.
$_isDeleted = false [protected] |
Definition at line 73 of file Object.php.
$_origData [protected] |
Definition at line 50 of file Object.php.
$_underscoreCache = array() [static, protected] |
Definition at line 64 of file Object.php.