phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] tts/inc class.subcategories.inc.php


From: Dave Hall
Subject: [Phpgroupware-cvs] tts/inc class.subcategories.inc.php
Date: Wed, 27 Dec 2006 03:10:29 +0000

CVSROOT:        /cvsroot/phpgroupware
Module name:    tts
Changes by:     Dave Hall <skwashd>     06/12/27 03:10:29

Removed files:
        inc            : class.subcategories.inc.php 

Log message:
        no longer used

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/tts/inc/class.subcategories.inc.php?cvsroot=phpgroupware&r1=1.3&r2=0

Patches:
Index: class.subcategories.inc.php
===================================================================
RCS file: class.subcategories.inc.php
diff -N class.subcategories.inc.php
--- class.subcategories.inc.php 10 May 2005 16:12:38 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,98 +0,0 @@
-<?php
-       /**
-       * Trouble Ticket System - Subcategory manager
-       *
-       * @author Joseph Engo <address@hidden>
-       * @author Bettina Gille address@hidden
-       * @author Lars Piepho <address@hidden>
-       * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc. 
http://www.fsf.org/
-       * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General 
Public License
-       * @package tts
-       * @version $Id: class.subcategories.inc.php,v 1.3 2005/05/10 16:12:38 
powerstat Exp $
-       */
-
-       /**
-        * Include apis category class
-        */
-       require_once constant('PHPGW_INCLUDE_ROOT') . 
"/phpgwapi/inc/class.categories.inc.php";
-
-       /**
-       * Subcategory manager
-       * 
-       * Adds ability for applications to make use of subcategories
-       * @package tts
-       */      
-       class subcategories extends categories
-       {
-               var $platform_id = 0;
-               var $type_id = 0;
-               /*!
-               @function subcategories
-               @abstract constructor for subcategories class
-               @param $accountid account id
-               @param $app_name app name defaults to current app
-               */
-               function subcategories($accountid = '',$app_name = '')
-               {
-                       parent::categories($accountid,$app_name);
-                       $this->platform_id = $this->getSubCatId('platform');
-                       $this->type_id = $this->getSubCatId('type');            
        
-               }
-
-               /*!
-               @function filter
-               @abstract ?
-               @param $type string
-               @result string either subs or mains
-               */
-               function filter($type)
-               {
-                       $s = parent::filter($type);
-                       switch ($type)
-                       {
-                               case 'appandplatform': $s = " OR 
(cat_appname='phpgw' AND cat_parent=" . $this->platform_id . ')'; break;
-                               case 'appandtype': $s = " OR 
(cat_appname='phpgw' AND cat_parent=" . $this->type_id . ')'; break;
-                               default:                        return False;
-                       }                       
-                       return $s;
-               }
-               
-               function getSubCatId($subcat_name)
-               {
-                       $sql = "SELECT cat_id FROM phpgw_categories WHERE 
cat_name='tts' AND cat_appname='phpgw'";                      
-                       $this->db->query($sql,__LINE__,__FILE__);
-                       if(!$this->db->num_rows())
-                       {
-                               return 0;
-                       }
-                       $this->db->next_record();
-                       $tts_id = $this->db->f('cat_id');
-                       
-                       
-                       $sql = "SELECT cat_id FROM phpgw_categories WHERE 
cat_name='" . $this->db->db_addslashes($subcat_name) . "' "
-                                                       ."AND 
cat_appname='phpgw' AND cat_parent=" . $tts_id;                                 
  
-                       $this->db->query($sql,__LINE__,__FILE__);
-                       if(!$this->db->num_rows())
-                       {
-                               return 0;
-                       }
-                       $this->db->next_record();                       
-                       return $this->db->f('cat_id');
-               }
-
-               
-               function getSubCatElementId($subcat_name,$subcatelement_name)
-               {         
-         $cat_id = $this->getSubCatId($subcat_name);
-                $sql = "SELECT cat_id FROM phpgw_categories WHERE cat_parent=" 
. $cat_id . " AND cat_name='" . $subcatelement_name . "'";                      
                
-                $this->db->query($sql,__LINE__,__FILE__);
-                if(!$this->db->num_rows())
-                {
-                 return 0;
-                }
-                $this->db->next_record();               
-                return $this->db->f('cat_id'); 
-               }
-               
-       }
-?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]