GraphDatasource: allow to enable/disable single ones

This commit is contained in:
Thomas Gelf 2015-06-22 16:34:00 +02:00
parent fa379e0e32
commit c75e75848b

View file

@ -42,6 +42,8 @@ class GraphDatasource
protected $stacked = false;
protected $enabled = true;
public function __construct($path)
{
$this->path = $path;
@ -77,6 +79,17 @@ class GraphDatasource
return $this;
}
public function isEnabled()
{
return $this->enabled;
}
public function disable()
{
$this->enabled = false;
return $this;
}
public function getName()
{
if ($this->alias !== null) {