diff options
author | Malf Furious <m@lfurio.us> | 2017-04-09 15:01:54 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-04-09 18:37:31 -0400 |
commit | 478504986a348bb53765e137a6ea8293929954aa (patch) | |
tree | 2c0df599f27a78d21243acfb7244b7f1d5dc03b8 /app | |
parent | d23eeb18e1604210dd55570c595fd184d8038f58 (diff) | |
download | scrott-478504986a348bb53765e137a6ea8293929954aa.tar.gz scrott-478504986a348bb53765e137a6ea8293929954aa.zip |
Add pad function insertStage()
Diffstat (limited to 'app')
-rw-r--r-- | app/class/pad.class.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/class/pad.class.php b/app/class/pad.class.php index 7c53f30..d062b0c 100644 --- a/app/class/pad.class.php +++ b/app/class/pad.class.php @@ -14,6 +14,7 @@ require_once "class/object.class.php"; require_once "class/agent.class.php"; +require_once "class/stage.class.php"; /* * This class models Scrott pads. Pads are the space for projects to track @@ -82,6 +83,17 @@ class pad extends object $pad->issueNumb = 0; return $pad; } + + /* + * Insert a stage object at the front of this pad's pipeline + */ + public function insertStage(stage $stage) : void + { + $stage->stage = $this->stage; + $this->stage = $stage->guid; + $stage->saveObj(); + $this->saveObj(); + } } ?> |