Esempio n. 1
0
 public static function getAllCustomFields()
 {
     $base = array("summary" => ucwords(TextHelper::_("COBALT_SUMMARY")), "amount" => ucwords(TextHelper::_("COBALT_AMOUNT")), "name" => ucwords(TextHelper::_("COBALT_DEALS_NAME")), "owner_id" => ucwords(TextHelper::_("COBALT_DEAL_OWNER")), "stage_id" => ucwords(TextHelper::_("COBALT_DEAL_STAGE")), "probability" => ucwords(TextHelper::_("COBALT_DEAL_PROBABILITY")), "status_id" => ucwords(TextHelper::_("COBALT_DEAL_STATUS")), "expected_close" => ucwords(TextHelper::_("COBALT_DEAL_CLOSE")), "modified" => ucwords(TextHelper::_("COBALT_MODIFIED")), "created" => ucwords(TextHelper::_("COBALT_CREATED")), "source_id" => ucwords(TextHelper::_("COBALT_REPORTS_SOURCE")), "actual_close" => ucwords(TextHelper::_("COBALT_DEALS_ACTUAL_CLOSE")), "primary_contact_name" => ucwords(TextHelper::_("COBALT_PRIMARY_CONTACT_NAME")), "primary_contact_email" => ucwords(TextHelper::_("COBALT_PRIMARY_CONTACT_EMAIL")), "primary_contact_phone" => ucwords(TextHelper::_("COBALT_PRIMARY_CONTACT_PHONE")), "primary_contact_city" => ucwords(TextHelper::_("COBALT_PRIMARY_CONTACT_CITY")), "primary_contact_state" => ucwords(TextHelper::_("COBALT_PRIMARY_CONTACT_STATE")), "primary_contact_company_name" => ucwords(TextHelper::_("COBALT_PRIMARY_CONTACT_COMPANY_NAME")), "company_name" => ucwords(TextHelper::_("COBALT_DEAL_COMPANY")));
     $custom = DealHelper::getUserCustomFields();
     for ($i = 0; $i < count($custom); $i++) {
         $field = $custom[$i];
         $base["custom_" . $field['id']] = $field['name'];
     }
     return $base;
 }