updating database code and testscripts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user