[ Index ]
 

Code source de dotProject 2.1 RC1

Accédez au Source d'autres logiciels libres | Soutenez Angelica Josefina !

title

Body

[fermer]

/db/ -> upgrade_contacts_company.php (summary)

This script iterates all contacts and verify if the contact_company field has a text value; if it does, it searches of the company in the companies table, if it finds it then the contact is related to it by its id. If it doesn't find it, the it creates the company (only the name) and then it relates it to the contact using the new company's id.

Poids: 64 lignes (2 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Definit 5 fonctions

  updateContactCompany()
  getContactGeneralInformation()
  fetchCompanyId()
  checkCompanyId()
  insertCompany()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

updateContactCompany($contact_array, $company_id)   X-Ref
Pas de description

getContactGeneralInformation($contact_array)   X-Ref
Pas de description

fetchCompanyId($company_name)   X-Ref
Pas de description

checkCompanyId($company_id)   X-Ref
Pas de description

insertCompany($company_name)   X-Ref
Pas de description



Généré le : Sun Feb 18 19:46:52 2007 par Balluche grâce à PHPXref 0.7