/** * Store the external ID of the given object * * @param CMbObject $object The MB to store the external ID of * @param string $db_id The Import ID to store on the MB Object * * @return string The external ID store error message */ function storeIdExt(CMbObject $object, $db_id) { $id_ext = new CIdSante400(); $id_ext->setObject($object); $id_ext->tag = $this->getImportTag(); $id_ext->id400 = $db_id; $id_ext->escapeValues(); $id_ext->loadMatchingObject(); $id_ext->last_update = CMbDT::dateTime(); $id_ext->unescapeValues(); return $id_ext->store(); }