diff --git a/library/Graphite/GraphDatasource.php b/library/Graphite/GraphDatasource.php index fc45236..39a3df8 100644 --- a/library/Graphite/GraphDatasource.php +++ b/library/Graphite/GraphDatasource.php @@ -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) {