[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [9465] property: get_locations_by_name
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [9465] property: get_locations_by_name |
Date: |
Tue, 29 May 2012 14:43:30 +0000 |
Revision: 9465
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9465
Author: sigurdne
Date: 2012-05-29 14:43:30 +0000 (Tue, 29 May 2012)
Log Message:
-----------
property: get_locations_by_name
Modified Paths:
--------------
trunk/property/inc/class.bolocation.inc.php
Modified: trunk/property/inc/class.bolocation.inc.php
===================================================================
--- trunk/property/inc/class.bolocation.inc.php 2012-05-29 12:21:39 UTC (rev
9464)
+++ trunk/property/inc/class.bolocation.inc.php 2012-05-29 14:43:30 UTC (rev
9465)
@@ -53,11 +53,12 @@
var $public_functions = array
(
- 'read' => true,
- 'read_single' => true,
- 'save' => true,
- 'delete' => true,
- 'check_perms' => true
+ 'read' => true,
+ 'read_single' => true,
+ 'save' => true,
+ 'delete' => true,
+ 'check_perms' => true,
+ 'get_locations_by_name' => true
);
function property_bolocation($session=false)
@@ -960,4 +961,20 @@
{
return $this->custom->prepare($values, 'property',
$location, $view_only);
}
+
+ /**
+ * Get location by name
+ *
+ * @return array array of hits
+ */
+ public function get_locations_by_name()
+ {
+ $data = array
+ (
+ 'level' =>
phpgw::get_var('level', 'int'),
+ 'location_name' =>
phpgw::get_var('location_name')
+ );
+
+ return $this->so->get_locations_by_name($data);
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [9465] property: get_locations_by_name,
Sigurd Nes <=