[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12522] change read_vendor()
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [12522] change read_vendor() |
Date: |
Fri, 02 Jan 2015 23:09:28 +0000 |
Revision: 12522
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12522
Author: nelson224
Date: 2015-01-02 23:09:27 +0000 (Fri, 02 Jan 2015)
Log Message:
-----------
change read_vendor()
Modified Paths:
--------------
branches/dev-syncromind/property/inc/class.bolookup.inc.php
Modified: branches/dev-syncromind/property/inc/class.bolookup.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.bolookup.inc.php 2015-01-02
15:29:43 UTC (rev 12521)
+++ branches/dev-syncromind/property/inc/class.bolookup.inc.php 2015-01-02
23:09:27 UTC (rev 12522)
@@ -268,15 +268,16 @@
return $persons;
}
- function read_vendor($filter = array())
+ function read_vendor($data = array())
{
$sogeneric = CreateObject('property.sogeneric');
$location_info =
$sogeneric->get_location_info('vendor');
- $this->order = $this->order ? $this->order : 'org_name';
- $this->sort = $this->sort ? $this->sort : 'ASC';
-
+ $data['order'] = $data['order'] ? $data['order'] :
'org_name';
+ $data['sort'] = $data['sort'] ? $data['sort'] : 'ASC';
+
+ $filter = $data['filter'];
if (! $filter )
{
foreach ( $location_info['fields'] as $field )
@@ -295,8 +296,7 @@
}
}
- $values = $sogeneric->read(array('start' =>
$this->start,'query' => $this->query,'sort' => $this->sort,'order' =>
$this->order,
- 'allrows'=>$this->allrows),$filter);
+ $values = $sogeneric->read($data,$filter);
$this->total_records = $sogeneric->total_records;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12522] change read_vendor(),
Nelson Guerra <=