Add Theme class and some new functions in Exercice class

This commit is contained in:
Quentin Grosyeux 2013-10-10 03:44:46 +02:00
commit dc0f544e2b
2 changed files with 164 additions and 0 deletions

View file

@ -53,4 +53,18 @@ class Theme {
{
return $this->title;
}
function get_id()
{
return $this->id;
}
function add_exercice($exercice)
{
if (isset($exercice))
{
$exercice->theme = $this;
$exercice->update(true);
}
}
}