From 77d16dcad807e80e439d636301ccf588195f53fc Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Wed, 19 Apr 2017 21:50:58 -0400 Subject: Add object function getHeadImg() --- app/class/object.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/class/object.class.php') 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 @@ -161,6 +161,14 @@ class object extends table return true; } + /* + * 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 -- cgit v1.2.3