From 8a1a277c3cf747cbb82c9dcb660a925963f635a5 Mon Sep 17 00:00:00 2001
From: Malf Furious <m@lfurio.us>
Date: Sun, 9 Apr 2017 17:48:27 -0400
Subject: Add pad function getStages()

---
 app/class/pad.class.php | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'app')

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
@@ -84,6 +84,16 @@ class pad extends object
         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
      */
-- 
cgit v1.2.3