Skip to content
Snippets Groups Projects
Commit 325b55ab authored by goujonpa's avatar goujonpa
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents 3db210ff 3dbb66c8
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,8 @@ class Ordonnance extends Objet
}
public function str() {
return $this->animal." ".$this->date;
$animal = new Animal()
$fields = $animal->select($this->id)
return $fields["nom"]." ".$this->date;
}
}
\ No newline at end of file
......@@ -64,7 +64,9 @@ class Race extends Objet
}
public function str() {
$tostr = $this->nom.' '.$this->espece;
$esp = new Espece();
$esp->select($this->espece);
$tostr = $esp->str().' : '.$this->nom;
return $tostr;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment