summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-04-08 23:00:56 -0400
committerMalf Furious <m@lfurio.us>2017-04-09 18:37:31 -0400
commitdd3aeb526b497ccde45e7ba018e963f2e249387a (patch)
treeb61a5593efb4b57d396f3dbd90a3e9159d73b496
parentdb7ad4f8943625e5c79fc09dae94a865f655493d (diff)
downloadscrott-dd3aeb526b497ccde45e7ba018e963f2e249387a.tar.gz
scrott-dd3aeb526b497ccde45e7ba018e963f2e249387a.zip
Add stage function insertStage()
-rw-r--r--app/class/stage.class.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/class/stage.class.php b/app/class/stage.class.php
index 2616bee..1d21dcb 100644
--- a/app/class/stage.class.php
+++ b/app/class/stage.class.php
@@ -133,6 +133,17 @@ class stage extends object
return $prev->moveForward();
}
+
+ /*
+ * Insert a stage object in this pipeline, following $this object
+ */
+ public function insertStage(stage $stage) : void
+ {
+ $stage->stage = $this->stage;
+ $this->stage = $stage->guid;
+ $stage->saveObj();
+ $this->saveObj();
+ }
}
?>