Exemplo n.º 1
0
 /**
  * Gets the default mapping for a module
  *
  * @param  string $module
  * @return array field mappings
  */
 public function getMapping($module)
 {
     $return_array = parent::getMapping($module);
     switch ($module) {
         case 'Accounts':
             return $return_array + array("Company Name" => "name", "Website" => "website", "Corporate Phone" => "phone_office", "Address" => "billing_address_street", "City" => "billing_address_city", "State" => "billing_address_state", "Zip" => "billing_address_postalcode", "Country" => "billing_address_country", "Industry 1" => "Description", "SIC Code" => "sic_code", "Employees exact" => "employees", "Revenue exact" => "annual_revenue", "Ownership" => "ownership", "Stock Ticker" => "ticker_symbol");
             break;
         default:
             return $return_array;
     }
 }
Exemplo n.º 2
0
 /**
  * Gets the default mapping for a module
  *
  * @param  string $module
  * @return array field mappings
  */
 public function getMapping($module)
 {
     $return_array = parent::getMapping($module);
     switch ($module) {
         case 'Contacts':
         case 'Leads':
             return $return_array + array("Web Site" => "website", "Company" => "account_name", "Name Suffix" => "salutation", "Address 1" => "primary_address_street", "Address 2" => "primary_address_street_2", "Address 3" => "primary_address_street_3", "City" => "primary_address_city", "State" => "primary_address_state", "Zip" => "primary_address_postalcode", "Country" => "primary_address_country", "Phone" => "phone_work", "Phone Ext-" => "phone_work_ext", "Mobile Phone" => "phone_mobile", "Alt Phone" => "phone_other", "Fax" => "phone_fax", "E-mail Login" => "email1", "E-mail" => "email1", "Assistant" => "assistant", "Asst. Phone" => "assistant_phone", "Home Address 1" => "alt_address_street", "Home Address 2" => "alt_address_street_2", "Home Address 3" => "alt_address_street_3", "Home Zip" => "alt_address_postalcode", "Home Country" => "alt_address_country", "Home Phone" => "phone_home");
             break;
         case 'Accounts':
             return $return_array + array("Revenue" => "annual_revenue", "Number of Employees" => "employees", "Address 1" => "billing_address_street", "City" => "billing_address_city", "State" => "billing_address_state", "Zip Code" => "billing_address_postalcode", "Country" => "billing_address_country", "Phone" => "phone_office", "Fax Phone" => "phone_fax", "Ticker Symbol" => "ticker_symbol");
             break;
         default:
             return $return_array;
     }
 }
Exemplo n.º 3
0
 /**
  * Gets the default mapping for a module
  *
  * @param  string $module
  * @return array field mappings
  */
 public function getMapping($module)
 {
     $return_array = parent::getMapping($module);
     switch ($module) {
         case 'Contacts':
         case 'Leads':
             return $return_array + array("Job Title" => "title", "Home Country" => "alt_address_country", "E-mail 2 Address" => "email2");
             break;
         case 'Accounts':
             return $return_array;
             break;
         default:
             return $return_array;
     }
 }
 /**
  * Gets the default mapping for a module
  *
  * @param  string $module
  * @return array field mappings
  */
 public function getMapping($module)
 {
     $return_array = parent::getMapping($module);
     switch ($module) {
         case 'Contacts':
         case 'Leads':
             return $return_array + array("Description" => "description", "Birthdate" => "birthdate", "Lead Source" => "lead_source", "Assistant" => "assistant", "Asst. Phone" => "assistant_phone", "Contact ID" => "id", "Mailing Street" => "primary_address_street", "Mailing Address Line1" => "primary_address_street_2", "Mailing Address Line2" => "primary_address_street_3", "Mailing Address Line3" => "primary_address_street_4", "Mailing City" => "primary_address_city", "Mailing State" => "primary_address_state", "Mailing Zip/Postal Code" => "primary_address_postalcode", "Mailing Country" => "primary_address_country", "Other Street" => "alt_address_street", "Other Address Line 1" => "alt_address_street_2", "Other Address Line 2" => "alt_address_street_3", "Other Address Line 3" => "alt_address_street_4", "Other City" => "alt_address_city", "Other State" => "alt_address_state", "Other Zip/Postal Code" => "alt_address_postalcode", "Other Country" => "alt_address_country", "Phone" => "phone_work", "Mobile" => "phone_mobile", "Home Phone" => "phone_home", "Other Phone" => "phone_other", "Fax" => "phone_fax", "Email" => "email1", "Email Opt Out" => "email_opt_out", "Do Not Call" => "do_not_call", "Account Name" => "account_name", "Account ID" => "account_id");
             break;
         case 'Accounts':
             return array("Account Name" => "name", "Annual Revenue" => "annual_revenue", "Type" => "account_type", "Ticker Symbol" => "ticker_symbol", "Rating" => "rating", "Industry" => "industry", "SIC Code" => "sic_code", "Ownership" => "ownership", "Employees" => "employees", "Description" => "description", "Account ID" => "id", "Billing Street" => "billing_address_street", "Billing Address Line1" => "billing_address_street_2", "Billing Address Line2" => "billing_address_street_3", "Billing City" => "billing_address_city", "Billing State" => "billing_address_state", "Billing Zip/Postal Code" => "billing_address_postalcode", "Billing Country" => "billing_address_country", "Shipping Street" => "shipping_address_street", "Shipping Address Line1" => "shipping_address_street_2", "Shipping Address Line2" => "shipping_address_street_3", "Shipping City" => "shipping_address_city", "Shipping State" => "shipping_address_state", "Shipping Zip/Postal Code" => "shipping_address_postalcode", "Shipping Country" => "shipping_address_country", "Phone" => "phone_office", "Fax" => "phone_fax", "Website" => "website");
             break;
         default:
             return $return_array;
     }
 }
Exemplo n.º 5
0
 /**
  * @see ImportMapOther::getIgnoredFields()
  */
 public function getIgnoredFields($module)
 {
     return array_merge(parent::getIgnoredFields($module), array('id'));
 }