fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10091] Logistic: Removed get_single


From: Torstein
Subject: [Fmsystem-commits] [10091] Logistic: Removed get_single
Date: Wed, 03 Oct 2012 07:08:22 +0000

Revision: 10091
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10091
Author:   vator
Date:     2012-10-03 07:08:22 +0000 (Wed, 03 Oct 2012)
Log Message:
-----------
Logistic: Removed get_single

Modified Paths:
--------------
    trunk/logistic/inc/class.soactivity.inc.php

Modified: trunk/logistic/inc/class.soactivity.inc.php
===================================================================
--- trunk/logistic/inc/class.soactivity.inc.php 2012-10-02 12:18:53 UTC (rev 
10090)
+++ trunk/logistic/inc/class.soactivity.inc.php 2012-10-03 07:08:22 UTC (rev 
10091)
@@ -135,40 +135,6 @@
 
                        return $ret;
                }
-/*
-               public function get_single(int $id)
-               {
-                       $sql = "SELECT * FROM lg_activity WHERE id = {$id}";
-                       $this->db->query( $sql, __LINE__, __FILE__ );
-                       $this->db->next_record();
-                       
-                       $activity = $this->populate( 
$this->unmarshal($this->db->f('id'), 'int') );
-                               
-                       return $activity;
-               }
-       */      
-               /**
-                * Get activity items
-                * @return array containing activities
-               */
-               public function get_activities()
-               {
-                       $results = array();
-                       
-                       $sql = "SELECT * FROM lg_activity";
-                       $db_loc            = clone $GLOBALS['phpgw']->db;
-                       $db_loc->query( $sql, __LINE__, __FILE__ );
-
-                       while( $db_loc->next_record() )
-                       {
-                               echo "dsfsdf";
-                               $activity = $this->populate( 
$this->unmarshal($this->db->f('id'), 'int') );
-                               
-                               $results[] = $activity->toArray();
-                       }
-                       print_r($results);
-                       return $results;
-               }
                
                protected function get_query(string $sort_field, boolean 
$ascending, string $search_for, string $search_type, array $filters, boolean 
$return_count)
                {




reply via email to

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