[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8709]
From: |
Erik Holm-Larsen |
Subject: |
[Fmsystem-commits] [8709] |
Date: |
Mon, 30 Jan 2012 11:30:43 +0000 |
Revision: 8709
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8709
Author: erikhl
Date: 2012-01-30 11:30:42 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Modified Paths:
--------------
trunk/controller/inc/class.socontrol.inc.php
Modified: trunk/controller/inc/class.socontrol.inc.php
===================================================================
--- trunk/controller/inc/class.socontrol.inc.php 2012-01-30 11:27:15 UTC
(rev 8708)
+++ trunk/controller/inc/class.socontrol.inc.php 2012-01-30 11:30:42 UTC
(rev 8709)
@@ -518,4 +518,16 @@
return preg_split('/,/', $result);
}
}
+
+ public function getLocationCodeFromControl($control_id)
+ {
+ $sql = "select location_code from
controller_control_location_list where control_id={$control_id}";
+ $this->db->query($sql,__LINE__,__FILE__);
+ if($this->db->num_rows() > 0)
+ {
+ $this->db->next_record();
+ $result = $this->db->f(location_code);
+ return $result;
+ }
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8709],
Erik Holm-Larsen <=