fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14950]


From: Nelson Guerra
Subject: [Fmsystem-commits] [14950]
Date: Fri, 29 Apr 2016 00:18:51 +0000

Revision: 14950
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14950
Author:   nelson224
Date:     2016-04-29 00:18:51 +0000 (Fri, 29 Apr 2016)
Log Message:
-----------


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

Modified: 
branches/dev-syncromind-2/property/inc/class.sogeneric_document.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.sogeneric_document.inc.php     
2016-04-29 00:18:37 UTC (rev 14949)
+++ branches/dev-syncromind-2/property/inc/class.sogeneric_document.inc.php     
2016-04-29 00:18:51 UTC (rev 14950)
@@ -139,4 +139,25 @@
 
                        return $values;
                }
+               
+               public function get_file_relations($location_id, $file_id) 
+               {
+                       $filtermethod = "WHERE location_id = {$location_id} AND 
file_id = {$file_id}";
+                       
+                       $sql = "SELECT * FROM phpgw_vfs_file_relation " ." 
{$filtermethod} ";
+                       $this->db->query($sql, __LINE__, __FILE__);
+
+                       $values = array();
+
+                       while ($this->db->next_record())
+                       {
+                               $values[] = array
+                                       (
+                                       'id' => $this->db->f('relation_id'),
+                                       'location_item_id' => 
$this->db->f('location_item_id')
+                               );
+                       }
+                       
+                       return $values;
+               }
        }
\ No newline at end of file




reply via email to

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