ajout de la fonction fetch_contact pour rcuprer le dtail d'un contact propal, commande,
facture...
This commit is contained in:
parent
4b6b693aa3
commit
fc7dfdf863
@ -319,6 +319,19 @@ class CommonObject
|
|||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Retourne le détail d'un contact
|
||||||
|
* \param id id du contact
|
||||||
|
* \return array détail du contact
|
||||||
|
*/
|
||||||
|
function fetch_contact($id)
|
||||||
|
{
|
||||||
|
$idcontact = $id;
|
||||||
|
$contact = new Contact($this->db);
|
||||||
|
$contact->fetch($idcontact);
|
||||||
|
$this->contact = $contact;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user