From dd3aeb526b497ccde45e7ba018e963f2e249387a Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 8 Apr 2017 23:00:56 -0400 Subject: Add stage function insertStage() --- app/class/stage.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app') 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(); + } } ?> -- cgit v1.2.3