[Care2x-general] Fw: Re: [Care2002-developers] about patients and
personnel in the same table
Walter Nunez
admin en ciberneticamedica.com
Mar Nov 9 22:01:20 CET 2004
Subject: Re: [Care2002-developers] about patients and personnel in the same table
----
Hello Juan and Walter,
you can create a new class that inherits the person class and then in its
constructor function you just define the new table name for your personnel
table (granting the table structure is the same as care_person).:
class Personnel extends Person {
function Personnel(){
$this->tb_person = 'care_person_personnel';
}
}
Then in your scripts, you have to use the Personnel class and not the Person
class.
Elpidio
--
Walter Alfonso Núnez Rivera
Médico - Programador
Pascual de Andagoya 140 Lima 32 Perú
Más información sobre la lista de distribución Care2x-general