diff --git a/include/class.dept.php b/include/class.dept.php
index f11a264ec677e0b2109e83d4f5465c51e68b1288..f11727ba4a0ccd155e36649a980e31acd476ed4f 100644
--- a/include/class.dept.php
+++ b/include/class.dept.php
@@ -59,6 +59,10 @@ class Dept {
         return $this->load();
     }
 
+    function asVar() {
+        return $this->getName();
+    }
+
     function getId() {
         return $this->id;
     }
diff --git a/include/class.team.php b/include/class.team.php
index 60301e26712543a024e7176b7b8b272774d2f348..7c9ac03f972d11a09a83fd0a6cf1e983980d96c4 100644
--- a/include/class.team.php
+++ b/include/class.team.php
@@ -51,6 +51,10 @@ class Team {
         return $this->load($this->getId());
     }
 
+    function asVar() {
+        return $this->getName();
+    }
+
     function getId() {
         return $this->id;
     }
diff --git a/include/class.ticket.php b/include/class.ticket.php
index 16d55865ef4e8b498709e04f35ce7b9b5f1621f9..356ff26999173cc4866cabc53eb1478878f32100 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -25,10 +25,11 @@ include_once(INCLUDE_DIR.'class.attachment.php');
 include_once(INCLUDE_DIR.'class.pdf.php');
 include_once(INCLUDE_DIR.'class.banlist.php');
 include_once(INCLUDE_DIR.'class.template.php');
+include_once(INCLUDE_DIR.'class.variable.php');
 include_once(INCLUDE_DIR.'class.priority.php');
 include_once(INCLUDE_DIR.'class.sla.php');
 
-class Ticket{
+class Ticket {
 
     var $id;
     var $extid;
@@ -197,14 +198,23 @@ class Ticket{
             && $client->getTicketId()==$this->getExtId());
     }
 
+    //.
+    function asVar() {
+        return $this->getNumber();
+    }
+   
     //Getters
-    function getId(){
+    function getId() {
         return  $this->id;
     }
 
-    function getExtId(){
+    function getExtId() {
         return  $this->extid;
     }
+
+    function getNumber() {
+        return $this->getExtId();
+    }
    
     function getEmail(){
         return $this->email;