From 0ed3cf913678b82d740d6acd08d0dbb7b7bf9de9 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Sun, 9 Sep 2012 18:21:07 -0400
Subject: [PATCH] Add 'asVar' function - returns staff's name

---
 include/class.staff.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/class.staff.php b/include/class.staff.php
index 672782dad..e83a40307 100644
--- a/include/class.staff.php
+++ b/include/class.staff.php
@@ -73,6 +73,10 @@ class Staff {
         return $this->load();
     }
 
+    function asVar() {
+        return $this->getName();
+    }
+
     function getHastable() {
         return $this->ht;
     }
-- 
GitLab