updating database code and testscripts

This commit is contained in:
2019-10-03 13:24:56 +02:00
parent 5148406147
commit e815ac9777
3 changed files with 52 additions and 7 deletions

View File

@@ -3,10 +3,24 @@ namespace model\forum;
class Board {
public $id;
public $name;
public $description;
public $permLevel;
function __construct($id, $name, $permLevel){
function __construct($id, $name, $description, $permLevel){
$this->id = $id;
$this->name = $name;
$this->description = $description;
$this->permLevel = $permLevel;
}
function setId($id){
$this->id = $id;
}
function setName($name){
$this->name = $name;
}
function setDescription($description){
$this->description = $description;
}
function setPermLevel($permLevel){
$this->permLevel = $permLevel;
}
function getId(){
@@ -15,6 +29,9 @@ class Board {
function getName(){
return $this->name;
}
function getDescription(){
return $this->description;
}
function getPermLevel(){
return $this->permLevel;
}