fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13406] class.uigroup.inc


From: Saul
Subject: [Fmsystem-commits] [13406] class.uigroup.inc
Date: Wed, 10 Jun 2015 22:51:01 +0000

Revision: 13406
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13406
Author:   psaul
Date:     2015-06-10 22:51:00 +0000 (Wed, 10 Jun 2015)
Log Message:
-----------
class.uigroup.inc

Modified Paths:
--------------
    branches/dev-syncromind/booking/inc/class.uigroup.inc.php

Modified: branches/dev-syncromind/booking/inc/class.uigroup.inc.php
===================================================================
--- branches/dev-syncromind/booking/inc/class.uigroup.inc.php   2015-06-10 
22:21:56 UTC (rev 13405)
+++ branches/dev-syncromind/booking/inc/class.uigroup.inc.php   2015-06-10 
22:51:00 UTC (rev 13406)
@@ -216,41 +216,41 @@
                        return $results;
                }
         
-               public function index_json()
-               {
-                       $groups = $this->bo->read();
-                       array_walk($groups["results"], array($this, 
"_add_links"), $this->module.".uigroup.show");
-                       foreach($groups["results"] as &$group) {
-                               
-                               $contact = (isset($group['contacts']) && 
isset($group['contacts'][0])) ? $group['contacts'][0] : null;
-                               $contact2 = (isset($group['contacts']) && 
isset($group['contacts'][1])) ? $group['contacts'][1] : null;
-                               
-                               if ($contact) {
-                                       $group += array(
-                                                               
"primary_contact_name"  => ($contact["name"])  ? $contact["name"] : '',
-                                                               
"primary_contact_phone" => ($contact["phone"]) ? $contact["phone"] : '',
-                                                               
"primary_contact_email" => ($contact["email"]) ? $contact["email"] : '',
-                                       );
-                               }
-                               if ($contact2) {
-                                       $group += array(
-                                                               
"secondary_contact_name"  => ($contact2["name"])  ? $contact2["name"] : '',
-                                                               
"secondary_contact_phone" => ($contact2["phone"]) ? $contact2["phone"] : '',
-                                                               
"secondary_contact_email" => ($contact2["email"]) ? $contact2["email"] : '',
-                                       );
-                               }
-                       }
-                       
-                       $results = $this->yui_results($groups);
-                       
-                       if (is_array($parent_entity = 
$this->get_parent_if_inline())) {
-                               if 
($this->bo->allow_create(array($this->get_current_parent_type().'_id' => 
$parent_entity['id']))) {
-                                       $results['Actions']['add'] = 
array('text' => lang('Add Group'), 'href' => $this->link_to('edit'));
-                               }
-                       }
-                       
-                       return $results;
-               }
+//             public function index_json()
+//             {
+//                     $groups = $this->bo->read();
+//                     array_walk($groups["results"], array($this, 
"_add_links"), $this->module.".uigroup.show");
+//                     foreach($groups["results"] as &$group) {
+//                             
+//                             $contact = (isset($group['contacts']) && 
isset($group['contacts'][0])) ? $group['contacts'][0] : null;
+//                             $contact2 = (isset($group['contacts']) && 
isset($group['contacts'][1])) ? $group['contacts'][1] : null;
+//                             
+//                             if ($contact) {
+//                                     $group += array(
+//                                                             
"primary_contact_name"  => ($contact["name"])  ? $contact["name"] : '',
+//                                                             
"primary_contact_phone" => ($contact["phone"]) ? $contact["phone"] : '',
+//                                                             
"primary_contact_email" => ($contact["email"]) ? $contact["email"] : '',
+//                                     );
+//                             }
+//                             if ($contact2) {
+//                                     $group += array(
+//                                                             
"secondary_contact_name"  => ($contact2["name"])  ? $contact2["name"] : '',
+//                                                             
"secondary_contact_phone" => ($contact2["phone"]) ? $contact2["phone"] : '',
+//                                                             
"secondary_contact_email" => ($contact2["email"]) ? $contact2["email"] : '',
+//                                     );
+//                             }
+//                     }
+//                     
+//                     $results = $this->yui_results($groups);
+//                     
+//                     if (is_array($parent_entity = 
$this->get_parent_if_inline())) {
+//                             if 
($this->bo->allow_create(array($this->get_current_parent_type().'_id' => 
$parent_entity['id']))) {
+//                                     $results['Actions']['add'] = 
array('text' => lang('Add Group'), 'href' => $this->link_to('edit'));
+//                             }
+//                     }
+//                     
+//                     return $results;
+//             }
 
                public function edit()
                {




reply via email to

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