summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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