From a1d98b85baf42ff8990e1899a1ec5ae4af58ffb9 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Mon, 18 Feb 2013 12:47:05 -0500
Subject: [PATCH] Add method to get number of closed tickets.

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

diff --git a/include/class.client.php b/include/class.client.php
index a650adbbe..6d62798d1 100644
--- a/include/class.client.php
+++ b/include/class.client.php
@@ -114,6 +114,10 @@ class Client {
         return ($stats=$this->getTicketStats())?$stats['open']:0;
     }
 
+    function getNumClosedTickets() {
+        return ($stats=$this->getTicketStats())?$stats['closed']:0;
+    }
+
     /* ------------- Static ---------------*/
     function getLastTicketIdByEmail($email) {
         $sql='SELECT ticketID FROM '.TICKET_TABLE
-- 
GitLab