summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-04-09 17:48:27 -0400
committerMalf Furious <m@lfurio.us>2017-04-09 18:37:31 -0400
commit8a1a277c3cf747cbb82c9dcb660a925963f635a5 (patch)
treee42a72ae71cc625c2a62345dd38d81e7f951e58d /app
parent478504986a348bb53765e137a6ea8293929954aa (diff)
downloadscrott-8a1a277c3cf747cbb82c9dcb660a925963f635a5.tar.gz
scrott-8a1a277c3cf747cbb82c9dcb660a925963f635a5.zip
Add pad function getStages()
Diffstat (limited to 'app')
-rw-r--r--app/class/pad.class.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/class/pad.class.php b/app/class/pad.class.php
index d062b0c..a5c771b 100644
--- a/app/class/pad.class.php
+++ b/app/class/pad.class.php
@@ -85,6 +85,16 @@ class pad extends object
}
/*
+ * 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