[ghelda-devel] [46] Add RequestsFieldsList functionality to People.php

[ Thread Index | Date Index | More lists.tuxfamily.org/ghelda-devel Archives ]


Revision: 46
Author:   odyx
Date:     2009-05-20 13:48:23 +0200 (Wed, 20 May 2009)

Log Message:
-----------
Add RequestsFieldsList functionality to People.php

Modified Paths:
--------------
    trunk/plugins/People.php


Modified: trunk/plugins/People.php
===================================================================
--- trunk/plugins/People.php	2009-05-20 11:48:21 UTC (rev 45)
+++ trunk/plugins/People.php	2009-05-20 11:48:23 UTC (rev 46)
@@ -94,6 +94,9 @@
     {
         switch($funcStr) {
             case "main":    $this->main();      break;
+            case "Requests.FieldsList":
+                return $this->RequestsFieldsList();
+                break;
         }
         return false;
     }
@@ -349,5 +352,19 @@
             $this->output->displayFields($this->fields,$fieldsContents,array('id'=>'People_view','command'=>T_('Confirm deletion'),'target'=>$this->url->getURL(),'action'=>'confirm','title'=>T_('Do you really want to delete the following entry?')),$this->name);
         }
     }
+
+    private function RequestsFieldsList()
+    {   $this->startTrad();
+    
+        // Fill the necessary attributes
+        $this->fields       = $this->configH[$this->name]['fields'];
+        $this->fieldsCore   = $this->configH[$this->name]['fields_core'];
+
+        $to_return['name'] = T_('People');
+        $to_return['fieldsList'] = array_merge($this->fields,$this->fieldsCore);
+        
+        $this->stopTrad();
+        return $to_return;
+    }
 }
 ?>
\ No newline at end of file


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/