Add Theme class and some new functions in Exercice class
This commit is contained in:
parent
edd8eb45a5
commit
dc0f544e2b
2 changed files with 164 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in a new issue