template caching disabled in debug mode, cleanup projects page

This commit is contained in:
2018-12-16 13:38:46 +01:00
parent a565438c8f
commit 665e9eedc3
5 changed files with 72 additions and 76 deletions

View File

@@ -30,26 +30,40 @@
namespace Magdev\Dossier\Model;
use Magdev\Dossier\Model\Base\BaseModel;
use Mni\FrontYAML\Document;
/**
* Model for projects page
*
* @author magdev
*/
class Project extends BaseModel
{
/**
* Project name
* @var string
*/
protected $name = '';
protected $status = '';
protected $url = '';
/**
* Public URLs
* @var array
*/
protected $urls = array();
/**
* Short Description
* @var string
*/
protected $shortDescription = '';
/**
* Project stack
* @var string
*/
protected $stack = '';
protected $role = '';
public function getRole(): string
{
return $this->role;
}
public function getStack(): string
{
@@ -57,35 +71,26 @@ class Project extends BaseModel
}
public function getName(): string
{
return $this->name;
}
public function getStatus(): string
public function hasUrls(): bool
{
return $this->status;
return sizeof($this->urls) > 0;
}
public function getUrl(): string
public function getUrls(): array
{
return $this->url;
return $this->urls;
}
public function getShortDescription(): string
{
return $this->shortDescription;
}
}