diff options
author | Malf Furious <m@lfurio.us> | 2017-04-08 23:00:56 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-04-09 18:37:31 -0400 |
commit | dd3aeb526b497ccde45e7ba018e963f2e249387a (patch) | |
tree | b61a5593efb4b57d396f3dbd90a3e9159d73b496 /app | |
parent | db7ad4f8943625e5c79fc09dae94a865f655493d (diff) | |
download | scrott-dd3aeb526b497ccde45e7ba018e963f2e249387a.tar.gz scrott-dd3aeb526b497ccde45e7ba018e963f2e249387a.zip |
Add stage function insertStage()
Diffstat (limited to 'app')
-rw-r--r-- | app/class/stage.class.php | 11 |
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(); + } } ?> |