Pman/Login.php
authorAlan Knowles <alan@akbkhome.com>
Sun, 13 Mar 2011 14:32:34 +0000 (22:32 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 13 Mar 2011 14:32:34 +0000 (22:32 +0800)
Pman/Login.php

index 9954ebf..f8e36d8 100644 (file)
@@ -110,6 +110,8 @@ class Pman_Login extends Pman
         
         // basically calls Pman_MODULE_Login::sendAuthUserDetails($aur) on all the modules
         //echo '<PRE>'; print_r($this->modules());
+        // technically each module should only add properties to an array named after that module..
+        
         foreach($this->modules() as $m) {
             if (!file_exists($this->rootDir.'/Pman/'.$m.'/Login.php')) {
                 continue;
@@ -121,23 +123,7 @@ class Pman_Login extends Pman
             $aur = $x->sendAuthUserDetails($aur);
         }
         
-                
-        if ($this->hasModule('Fax')) {
-            // should check fax module???
-            $f = DB_DataObject::factory('Fax_Queue');
-            $aur['faxMax'] = $f->getMaxId();
-            $aur['faxNumPending'] = $f->getNumPending();
-        }
-        
-        if ($this->hasModule('Documents')) {
-        // inbox...
-            $d = DB_DataObject::factory('Documents_Tracking');
-            $d->person_id = $au->id;
-            //$d->status = 0; // unread
-            $d->whereAdd('date_read IS NULL');
-            $d->applyFilters(array('query'=> array('unread' => 1)), $au);
-            $aur['inbox_unread'] = $d->count();
-        }
+                 
         
         //echo '<PRE>';print_r($aur);