Mage_Customer_Model_Entity_Setup Class Reference

Inheritance diagram for Mage_Customer_Model_Entity_Setup:

Mage_Eav_Model_Entity_Setup Mage_Core_Model_Resource_Setup

List of all members.

Public Member Functions

 getDefaultEntities ()


Detailed Description

Definition at line 34 of file Setup.php.


Member Function Documentation

getDefaultEntities (  ) 

Definition at line 37 of file Setup.php.

00038     {
00039         return array(
00040             'customer' => array(
00041                 'entity_model'          =>'customer/customer',
00042                 'table'                 => 'customer/entity',
00043                 'increment_model'       => 'eav/entity_increment_numeric',
00044                 'increment_per_store'   => false,
00045                 'attributes' => array(
00046 //                    'entity_id'         => array('type'=>'static'),
00047 //                    'entity_type_id'    => array('type'=>'static'),
00048 //                    'attribute_set_id'  => array('type'=>'static'),
00049 //                    'increment_id'      => array('type'=>'static'),
00050 //                    'created_at'        => array('type'=>'static'),
00051 //                    'updated_at'        => array('type'=>'static'),
00052 //                    'is_active'         => array('type'=>'static'),
00053 
00054                     'website_id' => array(
00055                         'type'          => 'static',
00056                         'label'         => 'Associate to Website',
00057                         'input'         => 'select',
00058                         'source'        => 'customer/customer_attribute_source_website',
00059                         'backend'       => 'customer/customer_attribute_backend_website',
00060                         'sort_order'    => 10,
00061                     ),
00062                     'store_id' => array(
00063                         'type'          => 'static',
00064                         'label'         => 'Create In',
00065                         'input'         => 'select',
00066                         'source'        => 'customer/customer_attribute_source_store',
00067                         'backend'       => 'customer/customer_attribute_backend_store',
00068                         'visible'       => false,
00069                         'sort_order'    => 20,
00070                     ),
00071                     'created_in' => array(
00072                         'type'          => 'varchar',
00073                         'label'         => 'Created From',
00074                         'sort_order'    => 30,
00075                     ),
00076                     'prefix' => array(
00077                         'label'         => 'Prefix',
00078                         'required'      => false,
00079                         'sort_order'    => 37,
00080                     ),
00081                     'firstname' => array(
00082                         'label'         => 'First Name',
00083                         'sort_order'    => 40,
00084                     ),
00085                     'middlename' => array(
00086                         'label'         => 'Middle Name/Initial',
00087                         'required'      => false,
00088                         'sort_order'    => 43,
00089                     ),
00090                     'lastname' => array(
00091                         'label'         => 'Last Name',
00092                         'sort_order'    => 50,
00093                     ),
00094                     'suffix' => array(
00095                         'label'         => 'Suffix',
00096                         'required'      => false,
00097                         'sort_order'    => 53,
00098                     ),
00099                     'email' => array(
00100                         'type'          => 'static',
00101                         'label'         => 'Email',
00102                         'class'         => 'validate-email',
00103                         'sort_order'    => 60,
00104                     ),
00105                     'group_id' => array(
00106                         'type'          => 'static',
00107                         'input'         => 'select',
00108                         'label'         => 'Customer Group',
00109                         'source'        => 'customer/customer_attribute_source_group',
00110                         'sort_order'    => 70,
00111                     ),
00112                     'dob' => array(
00113                         'type'          => 'datetime',
00114                         'input'         => 'date',
00115                         'backend'       => 'eav/entity_attribute_backend_datetime',
00116                         'required'      => false,
00117                         'label'         => 'Date Of Birth',
00118                         'sort_order'    => 80,
00119                     ),
00120                     'password_hash' => array(
00121                         'input'         => 'hidden',
00122                         'backend'       => 'customer/customer_attribute_backend_password',
00123                         'required'      => false,
00124                     ),
00125                     'default_billing' => array(
00126                         'type'          => 'int',
00127                         'visible'       => false,
00128                         'required'      => false,
00129                         'backend'       => 'customer/customer_attribute_backend_billing',
00130                     ),
00131                     'default_shipping' => array(
00132                         'type'          => 'int',
00133                         'visible'       => false,
00134                         'required'      => false,
00135                         'backend'       => 'customer/customer_attribute_backend_shipping',
00136                     ),
00137                     'taxvat' => array(
00138                         'label'         => 'Tax/VAT number',
00139                         'visible'       => true,
00140                         'required'      => false,
00141                         'position'      => 1,
00142                     ),
00143                     'confirmation' => array(
00144                         'label'         => 'Is confirmed',
00145                         'visible'       => false,
00146                         'required'      => false,
00147                     ),
00148                 ),
00149             ),
00150 
00151             'customer_address'=>array(
00152                 'entity_model'  =>'customer/customer_address',
00153                 'table' => 'customer/address_entity',
00154                 'attributes' => array(
00155 //                    'entity_id'         => array('type'=>'static'),
00156 //                    'entity_type_id'    => array('type'=>'static'),
00157 //                    'attribute_set_id'  => array('type'=>'static'),
00158 //                    'increment_id'      => array('type'=>'static'),
00159 //                    'parent_id'         => array('type'=>'static'),
00160 //                    'created_at'        => array('type'=>'static'),
00161 //                    'updated_at'        => array('type'=>'static'),
00162 //                    'is_active'         => array('type'=>'static'),
00163 
00164                     'prefix' => array(
00165                         'label'         => 'Prefix',
00166                         'required'      => false,
00167                         'sort_order'    => 7,
00168                     ),
00169                     'firstname' => array(
00170                         'label'         => 'First Name',
00171                         'sort_order'    => 10,
00172                     ),
00173                     'middlename' => array(
00174                         'label'         => 'Middle Name/Initial',
00175                         'required'      => false,
00176                         'sort_order'    => 13,
00177                     ),
00178                     'lastname' => array(
00179                         'label'         => 'Last Name',
00180                         'sort_order'    => 20,
00181                     ),
00182                     'suffix' => array(
00183                         'label'         => 'Suffix',
00184                         'required'      => false,
00185                         'sort_order'    => 23,
00186                     ),
00187                     'company' => array(
00188                         'label'         => 'Company',
00189                         'required'      => false,
00190                         'sort_order'    => 30,
00191                     ),
00192                     'street' => array(
00193                         'type'          => 'text',
00194                         'backend'       => 'customer_entity/address_attribute_backend_street',
00195                         'input'         => 'multiline',
00196                         'label'         => 'Street Address',
00197                         'sort_order'    => 40,
00198                     ),
00199                     'city' => array(
00200                         'label'         => 'City',
00201                         'sort_order'    => 50,
00202                     ),
00203                     'country_id' => array(
00204                         'type'          => 'varchar',
00205                         'input'         => 'select',
00206                         'label'         => 'Country',
00207                         'class'         => 'countries',
00208                         'source'        => 'customer_entity/address_attribute_source_country',
00209                         'sort_order'    => 60,
00210                     ),
00211                     'region' => array(
00212                         'backend'       => 'customer_entity/address_attribute_backend_region',
00213                         'label'         => 'State/Province',
00214                         'class'         => 'regions',
00215                         'sort_order'    => 70,
00216                     ),
00217                     'region_id' => array(
00218                         'type'          => 'int',
00219                         'input'         => 'hidden',
00220                         'source'        => 'customer_entity/address_attribute_source_region',
00221                         'required'      => 'false',
00222                         'sort_order'    => 80,
00223                     ),
00224                     'postcode' => array(
00225                         'label'         => 'Zip/Postal Code',
00226                         'sort_order'    => 90,
00227                     ),
00228                     'telephone' => array(
00229                         'label'         => 'Telephone',
00230                         'sort_order'    => 100,
00231                     ),
00232                     'fax' => array(
00233                         'label'         => 'Fax',
00234                         'required'      => false,
00235                         'sort_order'    => 110,
00236                     ),
00237                 ),
00238             ),
00239         );
00240     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:04 2009 for Magento by  doxygen 1.5.8