fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16548]


From: nelson . guerra
Subject: [Fmsystem-commits] [16548]
Date: Thu, 6 Apr 2017 00:25:31 -0400 (EDT)

Revision: 16548
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16548
Author:   nelson224
Date:     2017-04-06 00:25:30 -0400 (Thu, 06 Apr 2017)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/property/inc/class.boreport.inc.php

Modified: branches/dev-syncromind-2/property/inc/class.boreport.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.boreport.inc.php       
2017-04-06 04:25:16 UTC (rev 16547)
+++ branches/dev-syncromind-2/property/inc/class.boreport.inc.php       
2017-04-06 04:25:30 UTC (rev 16548)
@@ -39,8 +39,16 @@
                public function __construct()
                {
                        $this->so = CreateObject('property.soreport');
+                       $this->bocommon = CreateObject('property.bocommon');
                }
 
+               function read_single( $id = '' )
+               {
+                       $report = $this->so->read_single($id);
+
+                       return $report;
+               }
+               
                public function read($data = array())
                {                       
                        $values =  $this->so->read($data);
@@ -55,6 +63,13 @@
                        return $values;
                }
                
+               function get_datasets()
+               {
+                       $values = $this->so->get_datasets();
+
+                       return $values;
+               }
+               
                function get_columns($table)
                {
                        $values = $this->so->get_columns($table);
@@ -61,7 +76,6 @@
 
                        return $values;
                }
-               
 
                function read_single_dataset( $dataset_id = '' )
                {
@@ -78,6 +92,26 @@
                        return $dataset;
                }
                
+               function save( $values )
+               {
+                       if ($values['id'])
+                       {
+                               $receipt = $this->so->update($values);
+                       }
+                       else
+                       {
+                               $receipt = $this->so->add($values);
+                       }
+                       
+                       return $receipt;
+               }
+               
+               function delete( $id )
+               {
+                       $receipt = $this->so->delete($id);
+                       return $receipt;
+               }
+               
                function save_dataset( $values )
                {
                        if ($values['id'])
@@ -92,9 +126,10 @@
                        return $receipt;
                }
                
-               function delete_dataset( $dataset_id )
+               function delete_dataset( $id )
                {
-                       $this->so->delete_dataset($dataset_id);
+                       $receipt = $this->so->delete_dataset($id);
+                       return $receipt;
                }
                
        }
\ No newline at end of file




reply via email to

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