DataObjects/Person.php
authorAlan Knowles <alan@roojs.com>
Thu, 19 Mar 2015 02:29:28 +0000 (10:29 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 19 Mar 2015 02:29:28 +0000 (10:29 +0800)
DataObjects/Person.php [deleted file]

diff --git a/DataObjects/Person.php b/DataObjects/Person.php
deleted file mode 100644 (file)
index ec4fda9..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-require_once 'Pman/Core/DataObjects/Person.php';
-
-
-/**
- *
- * This class should probably only be used on the web version of mtrack, not on the modular verison..?
- * 
- */
-
-class Pman_MTrack_DataObjects_Person extends Pman_Core_DataObjects_Person
-{
-    
-    
-    
-    
-    function applyFilters($q, $au, $roo)
-    {
-        parent::applyFilters($q,$au,$roo);
-        $tn = $this->tableName();
-        
-        // when a ticket is selected, then only allow people who are members of the project related to thtat ticket...
-        if (isset($q['query']['ticket_id'])) {  
-            // find out what state the ticket is in.
-            $t = DB_DataObject::Factory('mtrack_ticket');
-            $t->autoJoin();
-            $t->get($q['query']['ticket_id']);
-            
-            if (!$this->checkPerm('S', $au)) {
-                $roo->jerr("permssion denied to query state of ticket");
-            }
-            
-            $p = DB_DataObject::factory('ProjectDirectory');
-            $pids = array($t->project_id);
-           
-            $peps = $p->people($pids);
-            
-            $this->whereAddIn($this->tableName().'.id', $peps, 'int');
-            
-            //$this->whereAdd('join_prole != ''");
-            
-        }  
-        
-        
-        
-        // not owner.. can only see people involved in projects that they are part of..
-        //DB_DataObject::debugLevel(1);
-       
-       
-        
-        
-        
-        //if ($au->company()->comptype == 'OWNER') {
-        //    return;
-        //}
-        
-    }
-    
-}
\ No newline at end of file