diff options
author | Malf Furious <m@lfurio.us> | 2017-04-09 18:40:25 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-04-09 18:40:25 -0400 |
commit | c4c3b3f73b1750de703213a20664dea9742ac825 (patch) | |
tree | e42a72ae71cc625c2a62345dd38d81e7f951e58d /app/class/pad.class.php | |
parent | e6070d1314f3161a346371154beb02c24506454a (diff) | |
parent | 8a1a277c3cf747cbb82c9dcb660a925963f635a5 (diff) | |
download | scrott-c4c3b3f73b1750de703213a20664dea9742ac825.tar.gz scrott-c4c3b3f73b1750de703213a20664dea9742ac825.zip |
Merge branch 'feature/stages' into dev
Diffstat (limited to 'app/class/pad.class.php')
-rw-r--r-- | app/class/pad.class.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/class/pad.class.php b/app/class/pad.class.php index 7c53f30..a5c771b 100644 --- a/app/class/pad.class.php +++ b/app/class/pad.class.php @@ -14,6 +14,7 @@ require_once "class/object.class.php"; require_once "class/agent.class.php"; +require_once "class/stage.class.php"; /* * This class models Scrott pads. Pads are the space for projects to track @@ -82,6 +83,27 @@ class pad extends object $pad->issueNumb = 0; return $pad; } + + /* + * Get an array of all stages under this pad. The array is in + * proper sequential order. + */ + public function getStages() : array + { + $stage = new stage($this->stage); + return $stage->getArray(); + } + + /* + * Insert a stage object at the front of this pad's pipeline + */ + public function insertStage(stage $stage) : void + { + $stage->stage = $this->stage; + $this->stage = $stage->guid; + $stage->saveObj(); + $this->saveObj(); + } } ?> |