Changeset 1418 for trunk/contactcenter
- Timestamp:
- 09/16/09 16:21:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.bo_people_catalog.inc.php
r1408 r1418 893 893 894 894 @return integer $id The Contact ID 895 */ 895 */ 896 //alterada para receber a informacao em 'notes' - Rommel Cysne - rommel.cysne@serpro.gov.br 896 897 function add_single_entry ( $data ) 897 898 { … … 1052 1053 ); 1053 1054 */ 1055 //alterada para receber os outros parametros existentes na adicao completa de contatos pessoais 1056 //Rommel Cysne - rommel.cysne@serpro.gov.br 1054 1057 function quick_add ( $data ) 1055 1058 { … … 1072 1075 1073 1076 $new_data = array( 1074 'alias' => $data['alias'], 1075 'id_status' => 1, 1076 'given_names' => $data['given_names'], 1077 'family_names' => $data['family_names'], 1078 'names_ordered' => $data['given_names'].' '.$data['family_names'], 1077 'alias' => $data['alias'], 1078 'id_status' => 1, 1079 'given_names' => $data['given_names'], 1080 'family_names' => $data['family_names'], 1081 'names_ordered' => $data['given_names'].' '.$data['family_names'], 1082 'birthdate' => $data['birthdate'], 1083 'notes' => $data['notes'], 1079 1084 ); 1080 1085 … … 1099 1104 'connection_is_default' => 1, 1100 1105 ); 1101 } 1106 $i++; 1107 } 1108 1109 if($data['connections']['fax']['connection_value']) 1110 { 1111 $new_data['connections']['connection'.$i] = array( 1112 'id_typeof_connection' => $preferences['personCardPhone'], 1113 'connection_name' => $data['connections']['fax']['connection_name'], 1114 'connection_value' => $data['connections']['fax']['connection_value'], 1115 'connection_is_default' => 'false', 1116 ); 1117 $i++; 1118 } 1119 1120 if($data['connections']['residencial_phone']['connection_value']) 1121 { 1122 $new_data['connections']['connection'.$i] = array( 1123 'id_typeof_connection' => $preferences['personCardPhone'], 1124 'connection_name' => $data['connections']['residencial_phone']['connection_name'], 1125 'connection_value' => $data['connections']['residencial_phone']['connection_value'], 1126 'connection_is_default' => 'false', 1127 ); 1128 $i++; 1129 } 1130 1131 if($data['connections']['cellular_phone']['connection_value']) 1132 { 1133 $new_data['connections']['connection'.$i] = array( 1134 'id_typeof_connection' => $preferences['personCardPhone'], 1135 'connection_name' => $data['connections']['cellular_phone']['connection_name'], 1136 'connection_value' => $data['connections']['cellular_phone']['connection_value'], 1137 'connection_is_default' => 'false', 1138 ); 1139 $i++; 1140 } 1141 1142 if($data['connections']['pager']['connection_value']) 1143 { 1144 $new_data['connections']['connection'.$i] = array( 1145 'id_typeof_connection' => $preferences['personCardPhone'], 1146 'connection_name' => $data['connections']['pager']['connection_name'], 1147 'connection_value' => $data['connections']['pager']['connection_value'], 1148 'connection_is_default' => 'false', 1149 ); 1150 $i++; 1151 } 1152 1153 if($data['connections']['alternative_email']['connection_value']) 1154 { 1155 $new_data['connections']['connection'.$i] = array( 1156 'id_typeof_connection' => $preferences['personCardEmail'], 1157 'connection_name' => $data['connections']['alternative_email']['connection_name'], 1158 'connection_value' => $data['connections']['alternative_email']['connection_value'], 1159 'connection_is_default' => 'false', 1160 ); 1161 $i++; 1162 } 1163 $j = 1; 1164 1165 if($data['addresses']['addr1']['address_value']) 1166 { 1167 $new_data['addresses']['address'.$j] = array( 1168 'id_typeof_address' => 1, //<id_typeof_address> - 1 - Comercial; 2 - Residencial 1169 'address1' => $data['addresses']['addr1']['address_value'], 1170 'address2' => $data['addresses']['addr2']['address_value'], 1171 'id_country' => 'BR', 1172 //'complement' => '<complement>', 1173 //'address_other' => '<address_other>', 1174 'postal_code' => $data['addresses']['cep']['address_value'], 1175 //'po_box' => '<po_box>', 1176 //'id_city' => '<city>', 1177 'address_is_default' => 'false', 1178 ); 1179 $j++; 1180 } 1181 1102 1182 1103 1183 return $this->add_single_entry($new_data);
Note: See TracChangeset
for help on using the changeset viewer.