/[cvs]/nfo/php/libs/org.netfrag.patches/phphtmllib/drivers/MemoryDataSource.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.patches/phphtmllib/drivers/MemoryDataSource.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by joko, Fri Apr 18 13:48:27 2003 UTC revision 1.6 by jonen, Thu May 6 17:11:55 2004 UTC
# Line 21  Line 21 
21   * $Id$   * $Id$
22   *   *
23   * $Log$   * $Log$
24     * Revision 1.6  2004/05/06 17:11:55  jonen
25     * bugfix related to new phphtmllib-v2.4.1 of Apr 01, 2004
26     *
27     * Revision 1.5  2003/07/14 10:07:07  jonen
28     * clean up
29     *
30     * Revision 1.4  2003/04/18 17:26:14  joko
31     * minor fix: updated log api
32     *
33   * Revision 1.3  2003/04/18 13:48:27  joko   * Revision 1.3  2003/04/18 13:48:27  joko
34   * minor updates to comments   * minor updates to comments
35   *   *
# Line 192  class MemoryDataSource extends DataListS Line 201  class MemoryDataSource extends DataListS
201          function O_do_prequery() {          function O_do_prequery() {
202                  $this->_read_schema();                  $this->_read_schema();
203          }          }
         function O_do_prequery() {  
    }  
204        
205          /**          /**
206           * This function does the query           * This function does the query
# Line 207  class MemoryDataSource extends DataListS Line 214  class MemoryDataSource extends DataListS
214    
215          function handle_result() {          function handle_result() {
216            $this->debug("handle_result", "HANDLE RESULT!<br>");            $this->debug("handle_result", "HANDLE RESULT!<br>");
217         $this->propagate_result();         return $this->propagate_result();
218      }      }
219    
220      function propagate_result() {      function propagate_result() {
# Line 222  class MemoryDataSource extends DataListS Line 229  class MemoryDataSource extends DataListS
229            }            }
230          }          }
231        }        }
232                   if ($count > 0) {
233        $this->set_total_rows( $count );              $this->set_total_rows($count);
234        $this->sort();              $this->sort();
235                      return true;
236            } else {
237                return false;
238            }
239      }      }
240    
241          /**          /**
# Line 281  class MemoryDataSource extends DataListS Line 291  class MemoryDataSource extends DataListS
291  */  */
292    
293      if (!is_array($this->_schema[labels] )) {      if (!is_array($this->_schema[labels] )) {
294        logp(get_class($this) . "->propagate_schema: No schema data could be read from result.", PEAR_LOG_WARNING);        php::log(get_class($this) . "->propagate_schema: No schema data could be read from result.", PEAR_LOG_WARNING);
295        return;        return;
296      }      }
297    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed