diff options
author | Malf Furious <m@lfurio.us> | 2017-04-19 21:50:58 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-04-19 21:50:58 -0400 |
commit | 77d16dcad807e80e439d636301ccf588195f53fc (patch) | |
tree | 48b44e1a3fb533f1aa3bdfbc7dc5edc6974dcf96 /app/class | |
parent | ae94f42a59c1f308d973dc91214a63a1afb6cae3 (diff) | |
download | scrott-77d16dcad807e80e439d636301ccf588195f53fc.tar.gz scrott-77d16dcad807e80e439d636301ccf588195f53fc.zip |
Add object function getHeadImg()
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/object.class.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/object.class.php b/app/class/object.class.php index 55d0874..8d889e7 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -162,6 +162,14 @@ class object extends table } /* + * Get the URL to the head image resource for this object + */ + public function getHeadImg() : string + { + return ar() . "/df.php?d=heads&f=" . $this->guid; + } + + /* * Set the head image for this object, overwriting any existing * image. $image should be an uploaded file to PHP, still * unhandled. |