Begin work on project pages
Also store project owners' emails as contact info
This commit is contained in:
@@ -2,14 +2,15 @@
|
||||
namespace pvv\side;
|
||||
|
||||
class Project{
|
||||
private $id, $name, $owner, $owneruname, $descr, $active;
|
||||
private $id, $name, $owner, $owneruname, $owneremail, $descr, $active;
|
||||
|
||||
public function __construct($id, $name, $descr, $owner, $owneruname, $active){
|
||||
public function __construct($id, $name, $descr, $owner, $owneruname, $owneremail, $active){
|
||||
$this->id = $id;
|
||||
$this->name = $name;
|
||||
$this->descr = explode("\n", $descr);
|
||||
$this->owner = $owner;
|
||||
$this->owneruname = $owneruname;
|
||||
$this->owneremail = $owneremail;
|
||||
$this->active = $active;
|
||||
}
|
||||
|
||||
@@ -33,6 +34,10 @@ class Project{
|
||||
return $this->owneruname;
|
||||
}
|
||||
|
||||
public function getOwnerEmail(){
|
||||
return $this->owneremail;
|
||||
}
|
||||
|
||||
public function getActive(){
|
||||
return $this->active;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user