fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13237] more on controller


From: Sigurd Nes
Subject: [Fmsystem-commits] [13237] more on controller
Date: Wed, 20 May 2015 11:16:17 +0000

Revision: 13237
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13237
Author:   sigurdne
Date:     2015-05-20 11:16:16 +0000 (Wed, 20 May 2015)
Log Message:
-----------
more on controller

Modified Paths:
--------------
    trunk/controller/inc/class.uicomponent.inc.php

Modified: trunk/controller/inc/class.uicomponent.inc.php
===================================================================
--- trunk/controller/inc/class.uicomponent.inc.php      2015-05-20 09:31:49 UTC 
(rev 13236)
+++ trunk/controller/inc/class.uicomponent.inc.php      2015-05-20 11:16:16 UTC 
(rev 13237)
@@ -347,6 +347,7 @@
                public function query()
                {
                        static $_location_name = array();
+                       static $cache_component_descr = array();
                        $entity_group_id = phpgw::get_var('entity_group_id', 
'int');
                        $location_id = phpgw::get_var('location_id', 'int');
                        $control_area = phpgw::get_var('control_area', 'int');
@@ -425,6 +426,8 @@
                                $short_desc_arr = 
execMethod('property.soentity.get_short_description', array(
                                'location_id' => $location_id, 'id' => 
$component_id));
 
+                               
$cache_component_descr[$location_id][$component_id] = $short_desc_arr;
+
                                
if(!isset($_location_name[$_component['location_code']]))
                                {
                                        $_location               = 
execMethod('property.solocation.read_single', $_component['location_code']);
@@ -632,8 +635,8 @@
                                                'active_tab'    => 'controller'
                                        );
 
-                                       $short_desc_arr = 
execMethod('property.soentity.get_short_description', array(
-                                               'location_id' => $location_id, 
'id' => $component['id'], 'entity_id' =>$component['entity_id'], 'cat_id' => 
$component['cat_id']));
+                                       $short_desc_arr = 
$cache_component_descr[$location_id][$component['id']];//execMethod('property.soentity.get_short_description',
 array(
+                                               //'location_id' => 
$location_id, 'id' => $component['id'], 'entity_id' =>$component['entity_id'], 
'cat_id' => $component['cat_id']));
 
                                        
if(!isset($_location_name[$component['location_code']]))
                                        {




reply via email to

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